|
|
@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
Name: lprint
|
|
|
|
Name: lprint
|
|
|
|
Version: 1.3.1
|
|
|
|
Version: 1.3.1
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: A Label Printer Application
|
|
|
|
Summary: A Label Printer Application
|
|
|
|
|
|
|
|
|
|
|
|
License: Apache-2.0
|
|
|
|
License: Apache-2.0
|
|
|
@ -40,8 +40,6 @@ BuildRequires: systemd-rpm-macros
|
|
|
|
# lprint server can run as a systemd service, but to don't require systemd by default,
|
|
|
|
# lprint server can run as a systemd service, but to don't require systemd by default,
|
|
|
|
# require filesystem (provides /usr/lib/systemd/system too)
|
|
|
|
# require filesystem (provides /usr/lib/systemd/system too)
|
|
|
|
Requires: filesystem
|
|
|
|
Requires: filesystem
|
|
|
|
# RHEL-67908 lprint requires avahi-daemon.socket, but does not install avahi
|
|
|
|
|
|
|
|
Requires: avahi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
LPrint is a label printer application for macOS and Linux. Basically,
|
|
|
|
LPrint is a label printer application for macOS and Linux. Basically,
|
|
|
@ -73,35 +71,16 @@ export CC=%{__cc}
|
|
|
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/lprint.conf
|
|
|
|
install -p -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/lprint.conf
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
%pre
|
|
|
|
# migration scriptlet to take care of incorrect conf locations
|
|
|
|
|
|
|
|
if [ $1 -gt 1 ]
|
|
|
|
if [ $1 -gt 1 ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
# daemon moved /etc/lprint.conf into /var/lib/lprint.state if the latter was missing and
|
|
|
|
|
|
|
|
# no HOME env set - this is incorrect, move it back to /etc (server-options are present only in
|
|
|
|
|
|
|
|
# system conf file). It was daemon solution for migration of configuration after fixing the bug
|
|
|
|
|
|
|
|
# which gets fixed by next scriptlet (the state was written into /etc)
|
|
|
|
|
|
|
|
if test -f /var/lib/lprint.state
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
! grep -q "^server-options" /var/lib/lprint.state || mv -f /var/lib/lprint.state /etc/lprint.conf
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# the original issue - state was written into /etc instead of /var/lib - check if the /etc/lprint.conf
|
|
|
|
|
|
|
|
# is an actual state file, and if it is, move it into right directory if state file does not exist.
|
|
|
|
|
|
|
|
if test ! -f /var/lib/lprint.state -a -f /etc/lprint.conf
|
|
|
|
if test ! -f /var/lib/lprint.state -a -f /etc/lprint.conf
|
|
|
|
then
|
|
|
|
then
|
|
|
|
# if the lprint.conf is the default one from RPM, do not move
|
|
|
|
# if the lprint.conf is the default one from RPM, do not move
|
|
|
|
grep -q "^server-options" /etc/lprint.conf || mv -f /etc/lprint.conf /var/lib/lprint.state
|
|
|
|
grep -q "^# Fedora default configuration" lprint.conf || mv -f /etc/lprint.conf /var/lib/lprint.state
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
# generate an empty state file to prevent /etc config file being moved into
|
|
|
|
|
|
|
|
# /var/lib/ - it will be rewritten by the daemon either way
|
|
|
|
|
|
|
|
if test ! -f /var/lib/lprint.state
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
touch /var/lib/lprint.state
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%systemd_post lprint.service
|
|
|
|
%systemd_post lprint.service
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%preun
|
|
|
@ -132,26 +111,9 @@ fi
|
|
|
|
%{_mandir}/man1/lprint.1*
|
|
|
|
%{_mandir}/man1/lprint.1*
|
|
|
|
%{_mandir}/man5/lprint.conf.5*
|
|
|
|
%{_mandir}/man5/lprint.conf.5*
|
|
|
|
%{_unitdir}/lprint.service
|
|
|
|
%{_unitdir}/lprint.service
|
|
|
|
%ghost %verify(not mode) %{_sharedstatedir}/lprint.state
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Nov 18 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-8
|
|
|
|
|
|
|
|
- RHEL-62834 ignore the mode on lprint.state
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 18 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-7
|
|
|
|
|
|
|
|
- RHEL-62834 Fix post scriptlet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Nov 18 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-6
|
|
|
|
|
|
|
|
- RHEL-67908 lprint requires avahi-daemon.socket, but does not install avahi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.3.1-5
|
|
|
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Oct 16 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-4
|
|
|
|
|
|
|
|
- RHEL-62834 Fix post scriptlet
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 08 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-3
|
|
|
|
* Thu Aug 08 2024 Zdenek Dohnal <zdohnal@redhat.com> - 1.3.1-3
|
|
|
|
- rebuilt with updated pappl
|
|
|
|
- rebuilt with updated pappl
|
|
|
|
|
|
|
|
|
|
|
|