]> git.pld-linux.org Git - packages/php-dirs.git/blobdiff - php-dirs.spec
- do not R fucking tmpwatch!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[packages/php-dirs.git] / php-dirs.spec
index e820c419e03ac9fbe54f3a8515187cdb1c8bdd8c..ab97e98bfe8125580876331f58227a952f9e65ee 100644 (file)
@@ -1,33 +1,34 @@
 Summary:       Common dirs for different PHP versions
-Summary(pl):   Wspólne katalogi dla ró¿nych wersji PHP
+Summary(pl.UTF-8):     Wspólne katalogi dla różnych wersji PHP
 Name:          php-dirs
-Version:       1.0
-Release:       1
+Version:       1.1
+Release:       8
 License:       GPL
 Group:         Base
-BuildRequires: rpmbuild(macros) >= 1.202
+Source0:       php-session.sh
+BuildRequires: rpmbuild(macros) >= 1.461
 Requires(postun):      /usr/sbin/groupdel
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
+Suggests:      tmpwatch
 Provides:      group(http)
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _tmpwatchdir    /etc/tmpwatch
-
 %description
 Common directories for PHP version 4 and version 5.
 
-%description -l pl
-Wspólne katalogi dla PHP w wersji 4 oraz 5.
+%description -l pl.UTF-8
+Wspólne katalogi dla PHP w wersji 4 oraz 5.
 
 %prep
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_datadir}/php,/var/run/php,%{_tmpwatchdir}}
+install -d $RPM_BUILD_ROOT{%{php_data_dir}/tests,/etc/cron.hourly,/var/run/php}
+install -d $RPM_BUILD_ROOT%{_docdir}/phpdoc
 
-echo '/var/run/php 720' > $RPM_BUILD_ROOT%{_tmpwatchdir}/php.conf
+install %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -42,6 +43,10 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%dir %{_datadir}/php
-%attr(770,root,http) %dir %verify(not group mode) /var/run/php
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_tmpwatchdir}/php.conf
+%dir %{php_data_dir}
+%dir %{php_data_dir}/tests
+%dir %{_docdir}/phpdoc
+# http needs only x for directory (otherwise it knows session file
+# names and can read it contents)
+%attr(730,root,http) %dir %verify(not group mode) /var/run/php
+%attr(755,root,root) %{_sysconfdir}/cron.hourly/php-session.sh
This page took 0.063106 seconds and 4 git commands to generate.