import sane-backends-1.0.32-7.el9
This commit is contained in:
parent
78afbb6911
commit
6875be1456
1
SOURCES/sane-backends.sysusers
Normal file
1
SOURCES/sane-backends.sysusers
Normal file
@ -0,0 +1 @@
|
||||
u saned - "SANE scanner daemon user" /usr/share/sane /sbin/nologin
|
@ -14,7 +14,7 @@
|
||||
Summary: Scanner access software
|
||||
Name: sane-backends
|
||||
Version: 1.0.32
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||
# Tools are GPLv2+, docs are public domain
|
||||
# see LICENSE for details
|
||||
@ -27,6 +27,7 @@ Source2: saned.socket
|
||||
Source3: saned@.service.in
|
||||
Source4: README.Fedora
|
||||
Source5: 66-saned.rules
|
||||
Source6: sane-backends.sysusers
|
||||
|
||||
# Fedora-specific, probably not generally applicable:
|
||||
Patch0: sane-backends-1.0.25-udev.patch
|
||||
@ -147,8 +148,6 @@ Summary: Scanner network daemon
|
||||
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
|
||||
Requires(pre): shadow-utils
|
||||
|
||||
%description daemon
|
||||
This package contains saned which is the daemon that allows remote clients to
|
||||
access image acquisition devices available on the local host.
|
||||
@ -191,6 +190,8 @@ popd
|
||||
%install
|
||||
%make_install
|
||||
|
||||
install -p -D -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/sane-backends.conf
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
|
||||
rm -f %{buildroot}%{_bindir}/gamma4scanimage
|
||||
@ -257,11 +258,7 @@ udevadm hwdb --update >/dev/null 2>&1 || :
|
||||
%ldconfig_scriptlets libs
|
||||
|
||||
%pre daemon
|
||||
getent group saned >/dev/null || groupadd -r saned
|
||||
getent passwd saned >/dev/null || \
|
||||
useradd -r -g saned -d %{_datadir}/sane -s /sbin/nologin \
|
||||
-c "SANE scanner daemon user" saned
|
||||
exit 0
|
||||
%sysusers_create_compat %{SOURCE6}
|
||||
|
||||
%post daemon
|
||||
%systemd_post saned.socket
|
||||
@ -428,11 +425,15 @@ exit 0
|
||||
%files daemon
|
||||
%{_sbindir}/saned
|
||||
%{_mandir}/man8/saned*
|
||||
%{_sysusersdir}/sane-backends.conf
|
||||
%{_udevrulesdir}/66-saned.rules
|
||||
%{_unitdir}/saned.socket
|
||||
%{_unitdir}/saned@.service
|
||||
|
||||
%changelog
|
||||
* Thu Jul 21 2022 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.32-7
|
||||
- 2095461 - [RFE] sane-backends use systems-sysusers
|
||||
|
||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.32-6
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
Loading…
Reference in New Issue
Block a user