[packages/php-pear] v1.4: add symfony dirs
glen
glen at pld-linux.org
Wed Nov 25 23:01:19 CET 2015
commit 01f9775566c2308c2aa3f4cb8f834f7433c36ea7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Nov 26 00:01:14 2015 +0200
v1.4: add symfony dirs
php-pear.spec | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/php-pear.spec b/php-pear.spec
index 55ad68f..1d6cc3c 100644
--- a/php-pear.spec
+++ b/php-pear.spec
@@ -1,7 +1,7 @@
Summary: PEAR - PHP Extension and Application Repository
Summary(pl.UTF-8): PEAR - rozszerzenie PHP i repozytorium aplikacji
Name: php-pear
-Version: 1.3.17
+Version: 1.4
Release: 1
Epoch: 4
License: Public Domain
@@ -83,6 +83,8 @@ done
install -d $RPM_BUILD_ROOT%{php_pear_dir}/{.registry,bin,data,tests}
cp -a pear/.??* $RPM_BUILD_ROOT%{php_pear_dir}
+install -d $RPM_BUILD_ROOT%{php_data_dir}/Symfony/{Bridge,Component}
+
while read dir; do
install -d $RPM_BUILD_ROOT$dir
done <<EOF
@@ -147,7 +149,11 @@ check_channel_dirs() {
find $RPM_BUILD_ROOT%{php_pear_dir} | LC_ALL=C sort > $installed
sed -i -re "s#^$RPM_BUILD_ROOT%{php_pear_dir}/?##" $installed
- rpm -qpl %{_rpmdir}/$RPMFILE | LC_ALL=C sort > $rpmfiles
+ rpm -qpl %{_rpmdir}/$RPMFILE | LC_ALL=C sort > $rpmfiles
+
+ # temp hack to exclude non-pear dirs
+ %{__sed} -i -e 's#%{php_data_dir}/.*##' $rpmfiles
+
sed -i -re "s#^%{php_pear_dir}/?##" $rpmfiles
# find finds also '.', so use option -B for diff
@@ -173,6 +179,12 @@ check_channel_dirs
%dir %{php_pear_dir}
%{php_pear_dir}/*
+# other php dirs
+%dir %{php_data_dir}/Symfony
+%dir %{php_data_dir}/Symfony/Bridge
+%dir %{php_data_dir}/Symfony/Component
+
+# PEAR state files
%ghost %{php_pear_dir}/.depdblock
%ghost %{php_pear_dir}/.depdb
%ghost %{php_pear_dir}/.filemap
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-pear.git/commitdiff/01f9775566c2308c2aa3f4cb8f834f7433c36ea7
More information about the pld-cvs-commit
mailing list