Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
icinga
:
production
>
phing
> phing.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File phing.spec of Package phing
#norootforbuild # # spec file for package phing (Version 2.3.3) # %define peardir %(pear config-get php_dir 2> /dev/null) %define xmldir /var/lib/pear Summary: A PHP unit testing framework Name: phing Version: 2.3.3 Release: 1 License: BSD Group: Development/Tools Source0: http://pear.phing.info/get/phing-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.phing.info/ BuildRequires: php-pear-channel-phing PreReq: php-pear-channel-phing php-pear Requires: php-dom php-pcre php-reflection php-spl %if 0%{?suse_version} > 1000 Recommends: php-xdebug php-json php-pdo php-tokenizer %endif BuildArch: noarch %description %prep %setup -q -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 \ -s %build %install pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} # Clean up unnecessary files %{__rm} pearrc %{__rm} -f %{buildroot}/%{peardir}/.filemap %{__rm} -f %{buildroot}/%{peardir}/.lock %{__rm} -rf %{buildroot}/%{peardir}/.registry %{__rm} -rf %{buildroot}%{peardir}/.channels %{__rm} %{buildroot}%{peardir}/.depdb %{__rm} %{buildroot}%{peardir}/.depdblock %{__mv} %{buildroot}/docs . # Install XML package description %{__mkdir_p} %{buildroot}%{xmldir} %{__tar} -xzf %{SOURCE0} package.xml %{__cp} -p package.xml %{buildroot}%{xmldir}/%{name}.xml %clean %{__rm} -rf %{buildroot} %post pear install --nodeps --soft --force --register-only %{xmldir}/%{name}.xml %postun if [ "$1" -eq "0" ]; then pear uninstall --nodeps --ignore-errors --register-only pear.phing.info/%{name} fi %files %defattr(-,root,root) %{_bindir}/%{name} %{peardir}/* %{xmldir}/%{name}.xml %changelog