split off saned into daemon subpackage

This commit is contained in:
Nils Philippsen 2016-10-07 19:54:50 +02:00
parent c5176ac812
commit 5c9ab2f7d6

View File

@ -67,9 +67,9 @@ BuildRequires: gphoto2-devel
Requires: systemd >= 196
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
# Don't drag around obsoletes forever
%if 0%{?fedora}%{?rhel} && (0%{?fedora} < 25 || 0%{?rhel} < 8)
Obsoletes: sane-backends < 1.0.23-10
Conflicts: sane-backends < 1.0.23-10
%if ! (0%{?fedora} >= 27 || 0%{?rhel} >= 8)
Obsoletes: sane-backends < 1.0.25-3
Conflicts: sane-backends < 1.0.25-3
%endif
%description
@ -151,6 +151,20 @@ Provides: sane-libs-gphoto2%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%description drivers-cameras
This package contains backend drivers to access digital cameras through SANE.
%package daemon
Summary: Scanner network daemon
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
# Split off saned from 1.0.25-3 on, don't drag around obsoletes forever
%if ! (0%{?fedora} >= 27 || 0%{?rhel} >= 8)
Obsoletes: sane-backends < 1.0.25-3
Conflicts: sane-backends < 1.0.25-3
%endif
%description daemon
This package contains saned which is the daemon that allows remote clients to
access image acquisition devices available on the local host.
%prep
%setup -q
@ -252,7 +266,6 @@ udevadm hwdb --update >/dev/null 2>&1 || :
%{_bindir}/sane-find-scanner
%{_bindir}/scanimage
%{_bindir}/umax_pp
%{_sbindir}/*
%exclude %{_mandir}/man1/sane-config.1*
%{_mandir}/*/*
@ -279,10 +292,14 @@ udevadm hwdb --update >/dev/null 2>&1 || :
%files drivers-cameras
%{_libdir}/sane/*gphoto2.so*
%files daemon
%{_sbindir}/saned
%changelog
* Fri Oct 07 2016 Nils Philippsen <nils@redhat.com>
- use %%license for license files
- remove some obsolete cruft from the spec file
- split off saned into daemon subpackage
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild