Add a tmpfiles.d config file to avoid AVCs

This commit is contained in:
Petr Muller 2014-05-31 10:29:16 +02:00
parent dc34fdcda9
commit 94b63f9ba2
2 changed files with 6 additions and 1 deletions

1
beakerlib-tmpfiles.conf Normal file
View File

@ -0,0 +1 @@
x /var/tmp/beakerlib-*

View File

@ -6,6 +6,7 @@ License: GPLv2
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source0: https://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}-tmpfiles.conf
BuildArch: noarch
URL: https://fedorahosted.org/%{name}
Requires: nfs-utils
@ -30,9 +31,11 @@ make build
%install
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%{!?_tmpfilesdir: %global _tmpfilesdir %{_prefix}/lib/tmpfiles.d/}
rm -rf $RPM_BUILD_ROOT
make PKGDOCDIR=%{_pkgdocdir} DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT/%{_tmpfilesdir}
install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
@ -53,6 +56,7 @@ rm -rf $RPM_BUILD_ROOT
%doc %{_pkgdocdir}/VERSION
%doc %{_pkgdocdir}/MAINTENANCE
%doc %{_pkgdocdir}/examples/*/*
%config %{_tmpfilesdir}/%{name}.conf
%changelog
* Tue Aug 20 2013 Petr Muller <muller@redhat.com> - 1.8-4