Search
j0ke.net Open Build Service
>
Projects
>
server:php:applications
>
php-pear-net_dime
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Added
php-pear-net_dime.spec
@@ -0,0 +1,75 @@ +# norootforbuild + +%define peardir %(pear config-get php_dir 2> /dev/null) +%define xmldir %{_var}/lib/pear + +Name: php5-pear-net_dime +Version: 0.3 +Release: 0.kolab.0 +Summary: The PEAR::Net_DIME class implements DIME encoding +License: PHP License +Group: Productivity/Networking/Web/Servers +Url: http://pear.php.net/package/Net_DIME +Source0: http://pear.php.net/get/Net_DIME-%{version}.tgz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Packager: Marcus Hüwe <suse-tux@gmx.de> + +PreReq: php5-pear +BuildRequires: php5-pear + +%description +This is the initial independent release of the Net_DIME package. +Provides an implementation of DIME as defined at +http://search.ietf.org/internet-drafts/draft-nielsen-dime-02.txt + +Authors: +-------- + Jan Schneider + Shane Caraveo + +%prep +%setup -c -T +pear -v -c pearrc \ + -d php_dir=%{peardir} \ + -d doc_dir=/docs \ + -d bin_dir=%{_bindir} \ + -d data_dir=%{peardir}/data \ + -d test_dir=%{peardir}/tests \ + -d ext_dir=%{_libdir} \ + -s + +%build +%install +pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} +%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} + +# Install XML package description +%__mkdir_p %{buildroot}%{xmldir} +%__tar -xzf %{SOURCE0} package.xml +%__cp package.xml %{buildroot}%{xmldir}/Net_DIME.xml + +%clean +%__rm -rf %{buildroot} + +%post +pear install --nodeps --soft --force --register-only %{xmldir}/Net_DIME.xml + +%postun +if [ "$1" -eq "0" ]; then + pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Net_DIME +fi + +%files +%defattr(-, root, root) +%dir %{peardir}/Net +%dir %{peardir}/tests/Net_DIME +%dir %{peardir}/tests/Net_DIME/test +%{peardir}/Net/DIME.php +%{peardir}/tests/Net_DIME/test/*.php +%{_var}/lib/pear/Net_DIME.xml + + +%changelog +* Wed Oct 24 2007 Marcus Hüwe <suse-tux@gmx.de> +- initial build