allow installing the libraries without the drivers (#736310)
split off drivers into -drivers-scanners, rename -libs-gphoto2 to -drivers-cameras
This commit is contained in:
parent
07f2601761
commit
a1208f5b4e
@ -1,7 +1,7 @@
|
|||||||
Summary: Scanner access software
|
Summary: Scanner access software
|
||||||
Name: sane-backends
|
Name: sane-backends
|
||||||
Version: 1.0.22
|
Version: 1.0.22
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
|
||||||
# Tools are GPLv2+, docs are public domain
|
# Tools are GPLv2+, docs are public domain
|
||||||
# see LICENSE for details
|
# see LICENSE for details
|
||||||
@ -37,6 +37,8 @@ BuildRequires: gettext
|
|||||||
BuildRequires: gphoto2-devel
|
BuildRequires: gphoto2-devel
|
||||||
Requires: udev >= 143
|
Requires: udev >= 143
|
||||||
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Obsoletes: sane-backends < 1.0.22-4
|
||||||
|
Conflicts: sane-backends < 1.0.22-4
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Scanner Access Now Easy (SANE) is a universal scanner interface. The
|
Scanner Access Now Easy (SANE) is a universal scanner interface. The
|
||||||
@ -44,23 +46,6 @@ SANE application programming interface (API) provides standardized
|
|||||||
access to any raster image scanner hardware (flatbed scanner,
|
access to any raster image scanner hardware (flatbed scanner,
|
||||||
hand-held scanner, video and still cameras, frame-grabbers, etc.).
|
hand-held scanner, video and still cameras, frame-grabbers, etc.).
|
||||||
|
|
||||||
%package devel
|
|
||||||
Summary: SANE development toolkit
|
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: sane-backends = %{version}-%{release}
|
|
||||||
Requires: libusb-devel
|
|
||||||
Requires: libieee1284-devel
|
|
||||||
Requires: libjpeg-devel
|
|
||||||
Requires: libtiff-devel
|
|
||||||
Requires: pkgconfig
|
|
||||||
Requires: gphoto2-devel
|
|
||||||
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
Requires: sane-backends-libs-gphoto2%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
|
||||||
This package contains libraries and header files for writing Scanner Access Now
|
|
||||||
Easy (SANE) modules.
|
|
||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Summary: SANE libraries
|
Summary: SANE libraries
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -73,14 +58,44 @@ Provides: sane-backends-docs = %{?epoch:%{epoch}:}%{version}-%{release}
|
|||||||
This package contains the SANE libraries which are needed by applications that
|
This package contains the SANE libraries which are needed by applications that
|
||||||
want to access scanners.
|
want to access scanners.
|
||||||
|
|
||||||
%package libs-gphoto2
|
%package devel
|
||||||
Summary: SANE libraries for gphoto2
|
Summary: SANE development toolkit
|
||||||
Group: System Environment/Libraries
|
Group: Development/Libraries
|
||||||
|
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: libusb-devel
|
||||||
|
Requires: libieee1284-devel
|
||||||
|
Requires: libjpeg-devel
|
||||||
|
Requires: libtiff-devel
|
||||||
|
Requires: pkgconfig
|
||||||
|
|
||||||
%description libs-gphoto2
|
%description devel
|
||||||
This package contains the SANE libraries which are needed by applications that
|
This package contains libraries and header files for writing Scanner Access Now
|
||||||
want to access digital cameras.
|
Easy (SANE) modules.
|
||||||
|
|
||||||
|
%package drivers-scanners
|
||||||
|
Summary: SANE backend drivers for scanners
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Obsoletes: sane-backends < 1.0.22-4
|
||||||
|
Conflicts: sane-backends < 1.0.22-4
|
||||||
|
|
||||||
|
%description drivers-scanners
|
||||||
|
This package contains backend drivers to access scanner hardware through SANE.
|
||||||
|
|
||||||
|
%package drivers-cameras
|
||||||
|
Summary: Scanner backend drivers for digital cameras
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: sane-backends-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Obsoletes: sane-backends-libs-gphoto2 < 1.0.22-4
|
||||||
|
Conflicts: sane-backends-libs-gphoto2 < 1.0.22-4
|
||||||
|
Provides: sane-libs-gphoto2 = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Provides: sane-libs-gphoto2%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description drivers-cameras
|
||||||
|
This package contains backend drivers to access digital cameras through SANE.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -126,7 +141,6 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
|
|||||||
|
|
||||||
%find_lang %name
|
%find_lang %name
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
@ -147,20 +161,13 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%doc %{_docdir}/*
|
%doc %{_docdir}/*
|
||||||
%exclude %{_mandir}/man1/sane-config.1*
|
%exclude %{_mandir}/man1/sane-config.1*
|
||||||
|
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
|
||||||
|
%dir %{_libdir}/sane
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/libsane*.so.*
|
%{_libdir}/libsane*.so.*
|
||||||
%dir %{_libdir}/sane
|
|
||||||
%{_libdir}/sane/*.so*
|
|
||||||
|
|
||||||
%exclude %{_libdir}/sane/*gphoto2.so*
|
|
||||||
|
|
||||||
%files libs-gphoto2
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_libdir}/sane/*gphoto2.so.*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -170,7 +177,20 @@ rm -rf %{buildroot}
|
|||||||
%{_libdir}/libsane*.so
|
%{_libdir}/libsane*.so
|
||||||
%{_libdir}/pkgconfig/sane-backends.pc
|
%{_libdir}/pkgconfig/sane-backends.pc
|
||||||
|
|
||||||
|
%files drivers-scanners
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/sane/*.so*
|
||||||
|
%exclude %{_libdir}/sane/*gphoto2.so*
|
||||||
|
|
||||||
|
%files drivers-cameras
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_libdir}/sane/*gphoto2.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 15 2011 Nils Philippsen <nils@redhat.com> - 1.0.22-4
|
||||||
|
- allow installing the libraries without the drivers (#736310): split off
|
||||||
|
drivers into -drivers-scanners, rename -libs-gphoto2 to -drivers-cameras
|
||||||
|
|
||||||
* Tue May 10 2011 Nils Philippsen <nils@redhat.com> - 1.0.22-3
|
* Tue May 10 2011 Nils Philippsen <nils@redhat.com> - 1.0.22-3
|
||||||
- fix detection/handling of USB devices in xerox_mfp (#702983)
|
- fix detection/handling of USB devices in xerox_mfp (#702983)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user