[inn] using of %{_tmpfilesdir} instaead of %{_sysconfdir}/tmpfiles.d/

Jochen Schmitt s4504kr at fedoraproject.org
Wed Jan 23 16:12:28 UTC 2013


commit 2aca17cecb0272311757158cd933de23540b31d4
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date:   Wed Jan 23 17:12:17 2013 +0100

    using of %{_tmpfilesdir} instaead of %{_sysconfdir}/tmpfiles.d/

 inn.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/inn.spec b/inn.spec
index 924e223..77dd038 100644
--- a/inn.spec
+++ b/inn.spec
@@ -1,7 +1,7 @@
 Summary: The InterNetNews system, an Usenet news server
 Name: inn
 Version: 2.5.3
-Release: 6%{?dist}
+Release: 7%{?dist}
 #see LICENSE file for details
 License: GPLv2+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -211,8 +211,8 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
 rm -rf $RPM_BUILD_ROOT/usr/doc/
 
 # Use tmpfiles.d to create /var/run/news
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
-cat <<EOF >$RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/inn.conf
+install -d $RPM_BUILD_ROOT%{_tmpfilesdir}
+cat <<EOF >$RPM_BUILD_ROOT%{_tmpfilesdir}/inn.conf
 D %{_localstatedir}/run/news 0755 news news -
 EOF
 install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/news
@@ -314,7 +314,7 @@ fi
 %{_unitdir}/innd-rnews.timer
 %defattr(-,news,news,-)
 # tmpfile.d files
-%config(noreplace) %attr(-,root,root) %{_sysconfdir}/tmpfiles.d/inn.conf
+%{_tmpfilesdir}/inn.conf
 %dir %{_localstatedir}/run/news
 # /etc/news config files
 %dir %{_sysconfdir}/news
@@ -542,6 +542,9 @@ fi
 %{_mandir}/man1/inews*
 
 %changelog
+* Wed Jan 23 2013 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-7
+- using of %%{_tmpfilesdir} instaead of %%{_sysconfdir}/tmpfiles.d/
+
 * Tue Jan 22 2013 Jochen Schmitt <Jochen herr-schmitt de> - 2.5.3-6
 - Fix some issues with the systemd timer units
 


More information about the scm-commits mailing list