[packages/man-db] - use PLD permissions on cache dir in tmpfile.d conf - rel. 2

kiesiu kiesiu at pld-linux.org
Fri Feb 13 22:45:22 CET 2015


commit a07e8d497162cb1b2f37460e552fcee3412d8ad5
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Fri Feb 13 22:44:21 2015 +0100

    - use PLD permissions on cache dir in tmpfile.d conf
    - rel. 2

 man-db.spec | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/man-db.spec b/man-db.spec
index 3f6f3a4..2e04892 100644
--- a/man-db.spec
+++ b/man-db.spec
@@ -6,7 +6,7 @@ Summary:	Tools for searching and reading man pages
 Summary(pl.UTF-8):	Narzędzia do przeszukiwania i czytania stron podręcznika man
 Name:		man-db
 Version:	2.7.1
-Release:	1
+Release:	2
 # project man-db  GPLv2+
 # Gnulib part     GPLv3+
 License:	GPL v2+ and GPL v3+
@@ -89,7 +89,7 @@ rm -rf $RPM_BUILD_ROOT
 	DESTDIR=$RPM_BUILD_ROOT
 
 # move the documentation to relevant place
-mv $RPM_BUILD_ROOT%{_datadir}/doc/man-db/* ./
+mv $RPM_BUILD_ROOT%{_docdir}/man-db/* ./
 
 # remove libtool archives
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/man-db/*.la
@@ -103,6 +103,10 @@ install -D -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.daily/man-db.cron
 # config for cron script
 install -D -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/man-db
 
+cat <<EOF > $RPM_BUILD_ROOT%{systemdtmpfilesdir}/man-db.conf
+d %{cache} 2755 root root 1w
+EOF
+
 %find_lang %{name}
 %find_lang %{name}-gnulib
 cat %{name}-gnulib.lang >> %{name}.lang
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/man-db.git/commitdiff/a07e8d497162cb1b2f37460e552fcee3412d8ad5



More information about the pld-cvs-commit mailing list