[slim] fix #708693 - added tmfiles.d config to create /var/run/slim directory
Jan Kaluža
jkaluza at fedoraproject.org
Wed Jun 1 12:57:59 UTC 2011
commit 2b901316f1ad90cfe761aa5e5b0044a59a15a9dc
Author: Jan Kaluza <hanzz.k at gmail.com>
Date: Wed Jun 1 14:57:44 2011 +0200
fix #708693 - added tmfiles.d config to create /var/run/slim directory
slim-tmpfiles.conf | 1 +
slim.spec | 14 +++++++++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/slim-tmpfiles.conf b/slim-tmpfiles.conf
new file mode 100644
index 0000000..8ccb38b
--- /dev/null
+++ b/slim-tmpfiles.conf
@@ -0,0 +1 @@
+d /var/run/slim
diff --git a/slim.spec b/slim.spec
index 52b4f20..8e83a59 100644
--- a/slim.spec
+++ b/slim.spec
@@ -1,6 +1,6 @@
Name: slim
Version: 1.3.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Simple Login Manager
Group: User Interface/X
License: GPLv2+
@@ -14,6 +14,7 @@ Source3: slim-dynwm
Source4: slim-fedora.txt
# logrotate entry (see bz#573743)
Source5: slim.logrotate.d
+Source6: slim-tmpfiles.conf
# Fedora-specific patches
Patch0: slim-1.3.2-make.patch
Patch1: slim-1.3.2-fedora.patch
@@ -67,6 +68,10 @@ ln -s ../../../backgrounds/tiles/default_blue.jpg %{buildroot}%{_datadir}/slim/t
# install logrotate entry
install -m0644 -D %{SOURCE5} %{buildroot}/%{_sysconfdir}/logrotate.d/slim
+%if 0%{?fedora} >= 15
+install -p -D %{SOURCE6} %{buildroot}%{_sysconfdir}/tmpfiles.d/slim.conf
+%endif
+
%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog README* THEMES TODO
@@ -80,7 +85,14 @@ install -m0644 -D %{SOURCE5} %{buildroot}/%{_sysconfdir}/logrotate.d/slim
%dir %{_datadir}/slim
%{_datadir}/slim/themes/
+%if 0%{?fedora} >= 15
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/slim.conf
+%endif
+
%changelog
+* Wed Jun 01 2011 Jan Kaluza <jkaluza at redhat.com> - 1.3.2-6
+- fix #708693 - added tmfiles.d config to create /var/run/slim directory
+
* Tue Mar 01 2011 Petr Sabata <psabata at redhat.com> - 1.3.2-5
- General spec cleanup
- Moved slim-dynwm to a separate source file
More information about the scm-commits
mailing list