[screen/f19] comply with http://fedoraproject.org/wiki/Packaging:Tmpfiles.d (#884673)

Petr Hracek phracek at fedoraproject.org
Tue Nov 11 15:16:37 UTC 2014


commit bb88bf4a106d2938173f4d68f52159f002fbc8ba
Author: Petr Hracek <phracek at redhat.com>
Date:   Tue Nov 11 16:15:58 2014 +0100

    comply with http://fedoraproject.org/wiki/Packaging:Tmpfiles.d (#884673)

 screen.spec |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/screen.spec b/screen.spec
index 0f1439e..f7f0732 100644
--- a/screen.spec
+++ b/screen.spec
@@ -4,7 +4,7 @@
 Summary: A screen manager that supports multiple logins on one terminal
 Name: screen
 Version: 4.1.0
-Release: 0.16.20120314git3c2946%{?dist}
+Release: 0.17.20120314git3c2946%{?dist}
 License: GPLv2+
 Group: Applications/System
 URL: http://www.gnu.org/software/screen
@@ -14,6 +14,7 @@ Requires(post): /sbin/install-info
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: ncurses-devel pam-devel libutempter-devel autoconf texinfo
 BuildRequires: automake
+BuildRequires: systemd
 
 #Source0: ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-%{version}.tar.gz
 # snapshot from git://git.savannah.gnu.org/screen.git
@@ -103,8 +104,8 @@ install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/screen
 mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/screen
 
 # And tell systemd to recreate it on start with tmpfs
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
-cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/screen.conf
+mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
+cat <<EOF > $RPM_BUILD_ROOT%{_tmpfilesdir}/screen.conf
 # screen needs directory in /var/run
 %if %{with multiuser}
 d %{_localstatedir}/run/screen 0755 root root
@@ -141,7 +142,7 @@ fi
 %{_datadir}/screen
 %config(noreplace) %{_sysconfdir}/screenrc
 %config(noreplace) %{_sysconfdir}/pam.d/screen
-%{_sysconfdir}/tmpfiles.d/screen.conf
+%{_tmpfilesdir}/screen.conf
 %if %{with multiuser}
 %attr(4755,root,root) %{_bindir}/screen
 %attr(755,root,root) %{_localstatedir}/run/screen
@@ -151,6 +152,9 @@ fi
 %endif
 
 %changelog
+* Tue Nov 11 2014 Petr Hracek <phracek at redhat.com> - 4.1.0-0.17.20120314git3c2946
+- comply with http://fedoraproject.org/wiki/Packaging:Tmpfiles.d (#884673)
+
 * Tue Jun 18 2013 Petr Hracek <phracek at redhat.com> - 4.1.0-0.16.20120314git3c2946
 - Fix: Segfault in alternate screen handling (#948617)
 


More information about the scm-commits mailing list