remove some obsolete cruft from the spec file

This commit is contained in:
Nils Philippsen 2016-10-07 19:51:04 +02:00
parent f9aa117670
commit c5176ac812

View File

@ -38,7 +38,6 @@ Release: 2%{?dist}
# Tools are GPLv2+, docs are public domain # Tools are GPLv2+, docs are public domain
# see LICENSE for details # see LICENSE for details
License: GPLv2+ and GPLv2+ with exceptions and Public Domain License: GPLv2+ and GPLv2+ with exceptions and Public Domain
Group: System Environment/Libraries
# Alioth Download URLs are amazing. # Alioth Download URLs are amazing.
Source0: https://alioth.debian.org/frs/download.php/latestfile/176/sane-backends-%{version}.tar.gz Source0: https://alioth.debian.org/frs/download.php/latestfile/176/sane-backends-%{version}.tar.gz
Source1: sane.png Source1: sane.png
@ -81,7 +80,6 @@ hand-held scanner, video and still cameras, frame-grabbers, etc.).
%package doc %package doc
Summary: SANE backends documentation Summary: SANE backends documentation
Group: Documentation
BuildArch: noarch BuildArch: noarch
# Don't drag around obsoletes forever # Don't drag around obsoletes forever
%if 0%{?fedora}%{?rhel} && (0%{?fedora} < 25 || 0%{?rhel} <= 8) %if 0%{?fedora}%{?rhel} && (0%{?fedora} < 25 || 0%{?rhel} <= 8)
@ -94,7 +92,6 @@ This package contains documentation for SANE backends.
%package libs %package libs
Summary: SANE libraries Summary: SANE libraries
Group: System Environment/Libraries
Recommends: %{name}-backends-drivers-cameras%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Recommends: %{name}-backends-drivers-cameras%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Recommends: %{name}-backends-drivers-scanners%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Recommends: %{name}-backends-drivers-scanners%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
@ -104,7 +101,6 @@ want to access scanners.
%package devel %package devel
Summary: SANE development toolkit Summary: SANE development toolkit
Group: Development/Libraries
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release} 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}
%if %needs_multilib_quirk %if %needs_multilib_quirk
@ -127,7 +123,6 @@ Easy (SANE) modules.
%package drivers-scanners %package drivers-scanners
Summary: SANE backend drivers for scanners Summary: SANE backend drivers for scanners
Group: System Environment/Libraries
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release} 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}
# Don't drag around obsoletes forever # Don't drag around obsoletes forever
@ -143,7 +138,6 @@ This package contains backend drivers to access scanner hardware through SANE.
%package drivers-cameras %package drivers-cameras
Summary: Scanner backend drivers for digital cameras Summary: Scanner backend drivers for digital cameras
Group: System Environment/Libraries
Requires: sane-backends = %{?epoch:%{epoch}:}%{version}-%{release} 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}
# Don't drag around obsoletes forever # Don't drag around obsoletes forever
@ -240,7 +234,6 @@ udevadm hwdb --update >/dev/null 2>&1 || :
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root)
%docdir %{_maindocdir} %docdir %{_maindocdir}
%doc %{_maindocdir}/AUTHORS %doc %{_maindocdir}/AUTHORS
%doc %{_maindocdir}/ChangeLog %doc %{_maindocdir}/ChangeLog
@ -267,15 +260,12 @@ udevadm hwdb --update >/dev/null 2>&1 || :
%dir %{_libdir}/sane %dir %{_libdir}/sane
%files doc %files doc
%defattr(-, root, root)
%doc %{_docdocdir} %doc %{_docdocdir}
%files libs %files libs
%defattr(-, root, root)
%{_libdir}/libsane*.so.* %{_libdir}/libsane*.so.*
%files devel %files devel
%defattr(-,root,root)
%{_bindir}/sane-config %{_bindir}/sane-config
%{_mandir}/man1/sane-config.1* %{_mandir}/man1/sane-config.1*
%{_includedir}/sane %{_includedir}/sane
@ -283,17 +273,16 @@ udevadm hwdb --update >/dev/null 2>&1 || :
%{_libdir}/pkgconfig/sane-backends.pc %{_libdir}/pkgconfig/sane-backends.pc
%files drivers-scanners %files drivers-scanners
%defattr(-, root, root)
%{_libdir}/sane/*.so* %{_libdir}/sane/*.so*
%exclude %{_libdir}/sane/*gphoto2.so* %exclude %{_libdir}/sane/*gphoto2.so*
%files drivers-cameras %files drivers-cameras
%defattr(-, root, root)
%{_libdir}/sane/*gphoto2.so* %{_libdir}/sane/*gphoto2.so*
%changelog %changelog
* Fri Oct 07 2016 Nils Philippsen <nils@redhat.com> * Fri Oct 07 2016 Nils Philippsen <nils@redhat.com>
- use %%license for license files - use %%license for license files
- remove some obsolete cruft from the spec file
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.25-2 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.25-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild