SPECS: php-pear-System_Daemon.spec - don't include package trash - unify do...
glen
glen at pld-linux.org
Tue Feb 3 00:03:25 CET 2009
Author: glen Date: Mon Feb 2 23:03:25 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- don't include package trash
- unify docs and examples dirs
---- Files affected:
SPECS:
php-pear-System_Daemon.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/php-pear-System_Daemon.spec
diff -u SPECS/php-pear-System_Daemon.spec:1.2 SPECS/php-pear-System_Daemon.spec:1.3
--- SPECS/php-pear-System_Daemon.spec:1.2 Sat Dec 27 02:22:02 2008
+++ SPECS/php-pear-System_Daemon.spec Tue Feb 3 00:03:20 2009
@@ -69,8 +69,8 @@
Summary: Tests for PEAR::%{_pearname}
Summary(pl.UTF-8): Testy dla PEAR::%{_pearname}
Group: Development/Languages/PHP
-AutoReq: no
Requires: %{name} = %{version}-%{release}
+AutoReq: no
AutoProv: no
%description tests
@@ -82,11 +82,25 @@
%prep
%pear_package_setup
+# examples fixups
+mv docs/%{_pearname}/examples .
+
+# pear/docs -> docs
+mv docs/%{_pearname}/docs/* docs
+rmdir docs/System_Daemon/docs docs/System_Daemon
+
+# not part of the package, some tools to make _this_ pear package.
+rm -rf ./%{php_pear_dir}/tools
+rm -f ./%{php_pear_dir}/{package,test}.php
+
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{php_pear_dir}
+install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir}}
%pear_package_install
+install -d $RPM_BUILD_ROOT{%{php_pear_dir},%{_bindir},%{_examplesdir}/%{name}-%{version}}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -98,16 +112,14 @@
%files
%defattr(644,root,root,755)
%doc install.log
-%doc docs/System_Daemon/{docs,examples}
+%doc docs/*
%{php_pear_dir}/.registry/*.reg
%{php_pear_dir}/System/Daemon
%{php_pear_dir}/System/Daemon.php
-%{php_pear_dir}/tools/changelog_gen.php
-%{php_pear_dir}/tools/package_gen.php
-%{php_pear_dir}/package.php
-%{php_pear_dir}/test.php
%{php_pear_dir}/data/System_Daemon
+%{_examplesdir}/%{name}-%{version}
+
%files tests
%defattr(644,root,root,755)
%{php_pear_dir}/tests/System_Daemon
@@ -118,6 +130,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2009/02/02 23:03:20 glen
+- don't include package trash
+- unify docs and examples dirs
+
Revision 1.2 2008/12/27 01:22:02 adamg
- updated to 0.5.0
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/php-pear-System_Daemon.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list