SPECS: cowiki.spec - include php.ini settings into the package

glen glen at pld-linux.org
Thu Jul 13 12:23:34 CEST 2006


Author: glen                         Date: Thu Jul 13 10:23:34 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- include php.ini settings into the package

---- Files affected:
SPECS:
   cowiki.spec (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/cowiki.spec
diff -u SPECS/cowiki.spec:1.16 SPECS/cowiki.spec:1.17
--- SPECS/cowiki.spec:1.16	Wed Jun 21 15:37:15 2006
+++ SPECS/cowiki.spec	Thu Jul 13 12:23:29 2006
@@ -4,7 +4,7 @@
 #  - theoretically mysql,mysqli,pgsql,sqlite connectors are possible.
 
 %define _snap 2006-03-17
-%define _rel 0.7
+%define _rel 0.8
 Summary:	Web collaboration tool
 Summary(pl):	Narzędzie do współpracy i współtworzenia w sieci
 Name:		cowiki
@@ -84,15 +84,25 @@
 ';
 EOF
 
+cat <<'EOF' > php.ini
+[PHP]
+; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
+allow_url_fopen = On
+EOF
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir},/var/cache/%{name}}
+install -d $RPM_BUILD_ROOT/etc/php/apache{,2handler}.d
 
 cp -a htdocs includes misc $RPM_BUILD_ROOT%{_appdir}
 install core.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/core.conf
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 
+cp -a php.ini $RPM_BUILD_ROOT/etc/php/apache.d/%{name}.ini
+cp -a php.ini $RPM_BUILD_ROOT/etc/php/apache2handler.d/%{name}.ini
+
 # for setup
 install LICENSE $RPM_BUILD_ROOT%{_appdir}/htdocs/setup
 install core.conf-dist $RPM_BUILD_ROOT%{_appdir}/includes/cowiki/core.conf-dist
@@ -188,6 +198,8 @@
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/core.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/php/apache.d/%{name}.ini
+%config(noreplace) %verify(not md5 mtime size) /etc/php/apache2handler.d/%{name}.ini
 
 %dir %{_appdir}
 %{_appdir}/misc
@@ -222,6 +234,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2006/07/13 10:23:29  glen
+- include php.ini settings into the package
+
 Revision 1.16  2006/06/21 13:37:15  glen
 - req diffutils
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cowiki.spec?r1=1.16&r2=1.17&f=u



More information about the pld-cvs-commit mailing list