create /usr/lib/tmpfiles.d/hplip.conf (bug #1015831).
This commit is contained in:
parent
1d762f96af
commit
f5abfcbffd
22
hplip.spec
22
hplip.spec
@ -7,7 +7,7 @@
|
||||
Summary: HP Linux Imaging and Printing Project
|
||||
Name: hplip
|
||||
Version: 3.13.11
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv2+ and MIT
|
||||
Group: System Environment/Daemons
|
||||
|
||||
@ -52,6 +52,9 @@ BuildRequires: dbus-devel
|
||||
# Make sure we get postscriptdriver tags.
|
||||
BuildRequires: python-cups, cups
|
||||
|
||||
# macros: %%{_tmpfilesdir}, %%{_udevrulesdir}
|
||||
BuildRequires: systemd
|
||||
|
||||
%description
|
||||
The Hewlett-Packard Linux Imaging and Printing Project provides
|
||||
drivers for HP printers and multi-function peripherals.
|
||||
@ -257,6 +260,15 @@ make install DESTDIR=%{buildroot}
|
||||
# Create /var/run/hplip
|
||||
mkdir -p %{buildroot}%{_localstatedir}/run/hplip
|
||||
|
||||
# install /usr/lib/tmpfiles.d/hplip.conf (bug #1015831)
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
cat > %{buildroot}%{_tmpfilesdir}/hplip.conf <<EOF
|
||||
# See tmpfiles.d(5) for details
|
||||
|
||||
d /run/hplip 0775 root lp -
|
||||
EOF
|
||||
|
||||
|
||||
# Remove unpackaged files
|
||||
rm -rf %{buildroot}%{_sysconfdir}/sane.d \
|
||||
%{buildroot}%{_docdir} \
|
||||
@ -399,11 +411,12 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%{_datadir}/hplip/prnt
|
||||
%{_datadir}/hplip/scan
|
||||
%{_localstatedir}/lib/hp
|
||||
%dir %attr(0775,root,lp) %{_localstatedir}/run/hplip
|
||||
%ghost %dir %attr(0775,root,lp) %{_localstatedir}/run/hplip
|
||||
%{_tmpfilesdir}/hplip.conf
|
||||
|
||||
%files common
|
||||
%doc COPYING
|
||||
%{_prefix}/lib/udev/rules.d/*.rules
|
||||
%{_udevrulesdir}/*.rules
|
||||
%dir %{_sysconfdir}/hp
|
||||
%config(noreplace) %{_sysconfdir}/hp/hplip.conf
|
||||
%dir %{_datadir}/hplip
|
||||
@ -454,6 +467,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%postun libs -p /sbin/ldconfig
|
||||
|
||||
%changelog
|
||||
* Thu Nov 21 2013 Jiri Popelka <jpopelka@redhat.com> - 3.13.11-2
|
||||
- create /usr/lib/tmpfiles.d/hplip.conf (bug #1015831).
|
||||
|
||||
* Wed Nov 06 2013 Jiri Popelka <jpopelka@redhat.com> - 3.13.11-1
|
||||
- 3.13.11
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user