|
Steven Moix |
0dccbf3 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
Steven Moix |
0dccbf3 |
%define pear_name Net_DNS
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
Name: php-pear-Net-DNS
|
|
Steven Moix |
0dccbf3 |
Version: 1.0.0
|
|
Steven Moix |
0dccbf3 |
Release: 2%{?dist}
|
|
Steven Moix |
0dccbf3 |
Summary: Resolver library used to communicate with a DNS server
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
Group: Development/Libraries
|
|
Steven Moix |
0dccbf3 |
License: PHP
|
|
Steven Moix |
0dccbf3 |
URL: http://pear.php.net/package/Net_DNS
|
|
Steven Moix |
0dccbf3 |
Source: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
Steven Moix |
0dccbf3 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
BuildRequires: php-pear >= 1:1.4.9-1.2
|
|
Steven Moix |
0dccbf3 |
BuildArch: noarch
|
|
Steven Moix |
0dccbf3 |
Requires: php-pear(PEAR)
|
|
Steven Moix |
0dccbf3 |
Requires: php-mhash
|
|
Steven Moix |
0dccbf3 |
Requires(post): %{__pear}
|
|
Steven Moix |
0dccbf3 |
Requires(postun): %{__pear}
|
|
Steven Moix |
0dccbf3 |
Provides: php-pear(%{pear_name}) = %{version}
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%description
|
|
Steven Moix |
0dccbf3 |
A resolver library used to communicate with a name server to perform DNS
|
|
Steven Moix |
0dccbf3 |
queries, zone transfers, dynamic DNS updates, etc. Creates an object
|
|
Steven Moix |
0dccbf3 |
hierarchy from a DNS server response, which allows you to view all of
|
|
Steven Moix |
0dccbf3 |
the information given by the DNS server. It bypasses the system
|
|
Steven Moix |
0dccbf3 |
resolver library and communicates directly with the server.
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%prep
|
|
Steven Moix |
0dccbf3 |
%setup -qc
|
|
Steven Moix |
0dccbf3 |
%{__pear} convert package.xml package2.xml
|
|
Steven Moix |
0dccbf3 |
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
|
|
Steven Moix |
0dccbf3 |
cd %{pear_name}-%{version}
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%build
|
|
Steven Moix |
0dccbf3 |
cd %{pear_name}-%{version}
|
|
Steven Moix |
0dccbf3 |
# Empty build section, most likely nothing required.
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%install
|
|
Steven Moix |
0dccbf3 |
cd %{pear_name}-%{version}
|
|
Steven Moix |
0dccbf3 |
rm -rf $RPM_BUILD_ROOT docdir
|
|
Steven Moix |
0dccbf3 |
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
# Clean up unnecessary files
|
|
Steven Moix |
0dccbf3 |
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
# Install XML package description
|
|
Steven Moix |
0dccbf3 |
install -d $RPM_BUILD_ROOT%{pear_xmldir}
|
|
Steven Moix |
0dccbf3 |
install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%clean
|
|
Steven Moix |
0dccbf3 |
rm -rf $RPM_BUILD_ROOT
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%post
|
|
Steven Moix |
0dccbf3 |
%{__pear} install --nodeps --soft --force --register-only \
|
|
Steven Moix |
0dccbf3 |
%{pear_xmldir}/%{pear_name}.xml >/dev/null || :
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%postun
|
|
Steven Moix |
0dccbf3 |
if [ $1 -eq 0 ] ; then
|
|
Steven Moix |
0dccbf3 |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
Steven Moix |
0dccbf3 |
%{pear_name} >/dev/null || :
|
|
Steven Moix |
0dccbf3 |
fi
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%files
|
|
Steven Moix |
0dccbf3 |
%defattr(-,root,root,-)
|
|
Steven Moix |
0dccbf3 |
%{pear_xmldir}/%{pear_name}.xml
|
|
Steven Moix |
0dccbf3 |
%dir %{pear_phpdir}/Net
|
|
Steven Moix |
0dccbf3 |
%dir %{pear_phpdir}/Net/DNS
|
|
Steven Moix |
0dccbf3 |
%{pear_phpdir}/Net/DNS
|
|
Steven Moix |
0dccbf3 |
%{pear_phpdir}/Net/DNS.php
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
%changelog
|
|
Steven Moix |
0dccbf3 |
* Thu Jul 3 2008 Steven Moix <steven.moix@axianet.ch> 1.0.0-2
|
|
Steven Moix |
0dccbf3 |
- Corrected the spec file thanks to Remi Collet
|
|
Steven Moix |
0dccbf3 |
|
|
Steven Moix |
0dccbf3 |
* Sat May 24 2008 Steven Moix <steven.moix@axianet.ch> 1.0.0-1
|
|
Steven Moix |
0dccbf3 |
- Initial Release
|