X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=php-dirs.spec;h=56de6c59baf829279a586cf5b7ef0e2c673b962d;hb=42381f64b9f7c9ca6f59b73a1fee7130c398da56;hp=ce8883181d496030aa097b2b8f07a74c05ae60e9;hpb=410ddf974588759926a908e409b162349f2ff860;p=packages%2Fphp-dirs.git diff --git a/php-dirs.spec b/php-dirs.spec index ce88831..56de6c5 100644 --- a/php-dirs.spec +++ b/php-dirs.spec @@ -1,12 +1,12 @@ # 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) # - 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.7 -Release: 1 +Version: 1.10 +Release: 2 License: GPL Group: Base Source0: php-session.sh @@ -15,7 +15,7 @@ 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 @@ -34,11 +34,19 @@ Wspólne katalogi dla PHP. %install rm -rf $RPM_BUILD_ROOT 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%{_docdir}/phpdoc $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}/php \ $RPM_BUILD_ROOT%{_libexecdir} $RPM_BUILD_ROOT%{php_data_dir} install -p %{SOURCE0} $RPM_BUILD_ROOT%{_libexecdir} -cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/php-session +sed -e 's,@libexecdir@,%{_libexecdir},' %{SOURCE1} >$RPM_BUILD_ROOT/etc/cron.d/php-session + +while read dir; do + install -d $RPM_BUILD_ROOT$dir +done <