[packages/php-bartlett-PHP_CompatInfo] install phpcompatinfo binary, add provide by that name, package license

glen glen at pld-linux.org
Sun Apr 19 14:36:00 CEST 2015


commit 3079e341a7017dab89fa1149edfbbc4b9ce359f0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Apr 19 15:33:47 2015 +0300

    install phpcompatinfo binary, add provide by that name, package license

 php-bartlett-PHP_CompatInfo.spec | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/php-bartlett-PHP_CompatInfo.spec b/php-bartlett-PHP_CompatInfo.spec
index cbb744c..6070bb2 100644
--- a/php-bartlett-PHP_CompatInfo.spec
+++ b/php-bartlett-PHP_CompatInfo.spec
@@ -28,6 +28,7 @@ Requires:	php-pear-Console_CommandLine >= 1.2.0
 Suggests:	php-pear-Net_Growl
 Suggests:	php-phpunit-PHPUnit
 Suggests:	php-phpunit-PHP_Timer
+Provides:	phpcompatinfo = %{version}-%{release}
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -45,13 +46,16 @@ and ability to show content of dictionary references.
 %prep
 %pear_package_setup
 
+mv docs/%{pearname}/* .
+
 %build
 packagexml2cl package.xml > ChangeLog
 
 %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 -p ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,12 +65,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog install.log
-%doc optional-packages.txt
-%doc docs/PHP_CompatInfo/*
-%{php_pear_dir}/.registry/.channel.*/*.reg
+%doc LICENSE ChangeLog install.log optional-packages.txt
 #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pear/PHP_CompatInfo/phpcompatinfo.xml.dist
-#%attr(755,root,root) %{_bindir}/phpcompatinfo
+%attr(755,root,root) %{_bindir}/phpcompatinfo
+%{php_pear_dir}/.registry/.channel.*/*.reg
 %{php_pear_dir}/Bartlett/PHP/CompatInfo.php
 %{php_pear_dir}/Bartlett/PHP/CompatInfo
 %{php_pear_dir}/data/PHP_CompatInfo
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-bartlett-PHP_CompatInfo.git/commitdiff/51e95f4c866c50a8d8d178b7046611e3b9abd209



More information about the pld-cvs-commit mailing list