From ce4069ed7300035dd0ed3d393c5c4bd53427e900 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 10 Jun 2012 07:17:36 +0200 Subject: repo reorg --- php-pear-Net-DNS.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 php-pear-Net-DNS.spec (limited to 'php-pear-Net-DNS.spec') diff --git a/php-pear-Net-DNS.spec b/php-pear-Net-DNS.spec new file mode 100644 index 0000000..cd9b6c4 --- /dev/null +++ b/php-pear-Net-DNS.spec @@ -0,0 +1,107 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%define pear_name Net_DNS + +Name: php-pear-Net-DNS +Version: 1.0.7 +Release: 1%{?dist} +Summary: Resolver library used to communicate with a DNS server + +Group: Development/Libraries +License: PHP +URL: http://pear.php.net/package/Net_DNS +Source: http://download.pear.php.net/package/%{pear_name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: php-pear >= 1:1.4.9-1.2 +BuildArch: noarch +Requires: php-pear(PEAR) +Requires(post): %{__pear} +Requires(postun): %{__pear} +Provides: php-pear(%{pear_name}) = %{version} + +%description +A resolver library used to communicate with a name server to perform DNS +queries, zone transfers, dynamic DNS updates, etc. Creates an object +hierarchy from a DNS server response, which allows you to view all of +the information given by the DNS server. It bypasses the system +resolver library and communicates directly with the server. + + +%prep +%setup -qc +# Package.xml is V2 +mv package.xml %{pear_name}-%{version}/%{name}.xml +cd %{pear_name}-%{version} + + +%build +cd %{pear_name}-%{version} +# Empty build section, most likely nothing required. + + +%install +cd %{pear_name}-%{version} +rm -rf $RPM_BUILD_ROOT docdir +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml + +# Clean up unnecessary files +rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??* + +# Install XML package description +install -d $RPM_BUILD_ROOT%{pear_xmldir} +install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{name}.xml >/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + %{pear_name} >/dev/null || : +fi + + +%files +%defattr(-,root,root,-) +%{pear_xmldir}/%{name}.xml +%dir %{pear_phpdir}/Net +%{pear_phpdir}/Net/DNS +%{pear_phpdir}/Net/DNS.php +%{pear_testdir}/%{pear_name} + +%changelog +* Sun Aug 21 2011 Remi Collet - 1.0.7-1 +- update to 1.0.7 for remi repo + +* Sun Aug 15 2010 Remi Collet - 1.0.5-1 +- rebuild for remi repository + +* Thu Aug 14 2010 Steven Moix 1.0.5-1 +- New upstream release +- Corrects https://bugzilla.redhat.com/show_bug.cgi?id=595462 + +* Sun Jul 26 2009 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Sun Jul 18 2009 Remi Collet - 1.0.1-1 +- rebuild for remi repository + +* Mon Jul 13 2009 Remi Collet - 1.0.1-1 +- update to 1.0.1 +- remove mhash dependency (now optional, and not provided by php 5.3.0) +- rename Net_DNS.xml to php-pear-Net-DNS.xml + +* Thu Feb 26 2009 Fedora Release Engineering - 1.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Thu Jul 3 2008 Steven Moix 1.0.0-2 +- Corrected the spec file thanks to Remi Collet + +* Sat May 24 2008 Steven Moix 1.0.0-1 +- Initial Release -- cgit