SPECS: pearize.sh - more magic
glen
glen at pld-linux.org
Thu Sep 29 01:03:53 CEST 2005
Author: glen Date: Wed Sep 28 23:03:53 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- more magic
---- Files affected:
SPECS:
pearize.sh (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/pearize.sh
diff -u SPECS/pearize.sh:1.3 SPECS/pearize.sh:1.4
--- SPECS/pearize.sh:1.3 Thu Sep 29 00:55:50 2005
+++ SPECS/pearize.sh Thu Sep 29 01:03:48 2005
@@ -26,7 +26,7 @@
# simple changes
s/^%setup -q -c/%pear_package_setup/
/^BuildRequires:/s/rpm-php-pearprov >= 4.0.2-98/rpm-php-pearprov >= 4.4.2-11/g
-s#^%doc %{_pearname}-%{version}#%doc docs/%{_pearname}#g
+/^%doc %{_pearname}-%{version}/d
# make new %install section
/^%install$/,/^%clean$/{
@@ -43,11 +43,23 @@
' $spec
-doc=$(grep '^%doc install' $template)
+instdoc=$(grep '^%doc install' $template)
sed -i -e "
/%defattr(644,root,root,755)/a\
-$doc
+$instdoc
" $spec
+doc=$(grep '^%doc docs/%{_pearname}/' $template)
+if [ "$doc" ]; then
+sed -i -e '/^%doc/a\
+%doc docs/%{_pearname}/*
+' $spec
+fi
+
+sed -i -e '/^%{php_pear_dir}/i\
+%{php_pear_dir}/.registry/*.reg
+' $spec
+
vim -o $spec $template
+
exit 1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pearize.sh?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list