X-Git-Url: https://git.tld-linux.org/?p=packages%2Fphp-dirs.git;a=blobdiff_plain;f=php-dirs.spec;h=f5730f181e89541bbf5ec7b5d25818dbe6f7e1fc;hp=cf0b01cf47946e234571149a612b3db8980b1cb4;hb=6a30d02c2a3009fa3e0d2bd3e08b9c785f2ac312;hpb=20e49c321e8b5a1df19d4625f4d4fdda41cb7e2e diff --git a/php-dirs.spec b/php-dirs.spec index cf0b01c..f5730f1 100644 --- a/php-dirs.spec +++ b/php-dirs.spec @@ -1,40 +1,52 @@ # TODO -# - move tmpwatch S: to php-session package (as session files file storage no +# - move tmpwatch R: to php-session package (as session files file storage no # longer can cleanup itself due dir perms) -Summary: Common dirs for different PHP versions -Summary(pl.UTF-8): Wspólne katalogi dla różnych wersji PHP +# - https://fedorahosted.org/tmpwatch/ticket/7 is implemented in tmpwatch-2.9.16, see 3467603 todo +Summary: Common dirs for PHP +Summary(pl.UTF-8): Wspólne katalogi dla PHP Name: php-dirs -Version: 1.5 -Release: 2 +Version: 1.10 +Release: 1 License: GPL Group: Base Source0: php-session.sh -Source1: %{name}.tmpfiles +Source1: crontab BuildRequires: rpmbuild(macros) >= 1.644 Requires(postun): /usr/sbin/groupdel Requires(pre): /usr/bin/getgid Requires(pre): /usr/sbin/groupadd -Suggests: tmpwatch +Requires: tmpwatch +Conflicts: php-pear < 4:1.4-2 Provides: group(http) BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _libexecdir %{_prefix}/lib + %description -Common directories for PHP version 4 and version 5. +Common directories for PHP. %description -l pl.UTF-8 -Wspólne katalogi dla PHP w wersji 4 oraz 5. +Wspólne katalogi dla PHP. %prep %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{php_data_dir}/tests,/etc/cron.hourly,/var/{cache,log,run}/php,/var/log/archive/php} \ - $RPM_BUILD_ROOT%{_docdir}/phpdoc \ - $RPM_BUILD_ROOT%{systemdtmpfilesdir} +install -d $RPM_BUILD_ROOT{/etc/cron.d,/var/{cache,log,run}/php,/var/log/archive/php} \ + $RPM_BUILD_ROOT%{_docdir}/phpdoc $RPM_BUILD_ROOT%{_includedir}/php \ + $RPM_BUILD_ROOT%{_libexecdir} $RPM_BUILD_ROOT%{php_data_dir} + +install -p %{SOURCE0} $RPM_BUILD_ROOT%{_libexecdir} +sed -e 's,@libexecdir@,%{_libexecdir},' %{SOURCE1} >$RPM_BUILD_ROOT/etc/cron.d/php-session -install -p %{SOURCE0} $RPM_BUILD_ROOT/etc/cron.hourly -cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf +while read dir; do + install -d $RPM_BUILD_ROOT$dir +done <