version 1.0.18 unify spec file between OS releases
This commit is contained in:
parent
5102455ddc
commit
08b24c04d2
@ -1,13 +1,27 @@
|
|||||||
# Disable gphoto2 backend by using "--without gphoto2"
|
# --with/--without options:
|
||||||
%define gphoto2_support 0%{!?_without_gphoto2:1}
|
# gphoto2: support gphoto2 backend
|
||||||
|
# gphoto2_split: ship gphoto2 backend in separate subpackage
|
||||||
|
# libs_split: ship libraries in separate subpackage
|
||||||
|
# docs_split: ship documentation in separate subpackage
|
||||||
|
# programs_split: ship programs in separate subpackage
|
||||||
|
|
||||||
# Enable splitting out gphoto2 backends by using "--with gphoto2_split"
|
%define gphoto2_support 0%{!?_without_gphoto2:1}
|
||||||
%define gphoto2_split 0%{!?_without_gphoto2:%{?_with_gphoto2_split:1}}
|
%define gphoto2_split 0%{!?_without_gphoto2:%{?_with_gphoto2_split:1}}
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 6 || 0%{?redhat} >= 5
|
||||||
|
%define libs_split 0%{?!_without_libs_split:1}
|
||||||
|
%define docs_split 0%{?_with_docs_split:1}
|
||||||
|
%define programs_split 0%{?_with_programs_split:1}
|
||||||
|
%else
|
||||||
|
%define libs_split 0%{?_with_libs_split:1}
|
||||||
|
%define docs_split 0%{?!_without_docs_split:1}
|
||||||
|
%define programs_split 0%{?!_without_programs_split:1}
|
||||||
|
%endif
|
||||||
|
|
||||||
Summary: Scanner access software
|
Summary: Scanner access software
|
||||||
Name: sane-backends
|
Name: sane-backends
|
||||||
Version: 1.0.17
|
Version: 1.0.18
|
||||||
Release: 13.1
|
Release: 1%{?dist}
|
||||||
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
|
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||||
@ -28,8 +42,12 @@ BuildRequires: gphoto2-devel
|
|||||||
Requires: pam >= 0.78-2
|
Requires: pam >= 0.78-2
|
||||||
Requires: udev
|
Requires: udev
|
||||||
Requires: libsane-hpaio
|
Requires: libsane-hpaio
|
||||||
|
%if 0%{?fedora} >= 5 || 0%{?redhat} >= 5
|
||||||
|
%if ! %{docs_split}
|
||||||
Obsoletes: sane-backends-docs <= 1.0.17-12
|
Obsoletes: sane-backends-docs <= 1.0.17-12
|
||||||
Provides: sane-backends-docs
|
Provides: sane-backends-docs = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -53,6 +71,16 @@ Provides: sane-devel
|
|||||||
This package contains static libraries and header files for writing Scanner
|
This package contains static libraries and header files for writing Scanner
|
||||||
Access Now Easy (SANE) modules.
|
Access Now Easy (SANE) modules.
|
||||||
|
|
||||||
|
%if %{docs_split}
|
||||||
|
%package docs
|
||||||
|
Summary: Additional documentation for SANE
|
||||||
|
Group: Documentation
|
||||||
|
|
||||||
|
%description docs
|
||||||
|
Additional documentation for SANE, a universal scanner interface.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{libs_split}
|
||||||
%package libs
|
%package libs
|
||||||
Summary: SANE libraries
|
Summary: SANE libraries
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -73,7 +101,9 @@ Requires: sane-backends-libs = %{?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 digital cameras.
|
want to access digital cameras.
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{programs_split}
|
||||||
%package programs
|
%package programs
|
||||||
Summary: SANE programs
|
Summary: SANE programs
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
@ -81,6 +111,7 @@ Group: Applications/Multimedia
|
|||||||
%description programs
|
%description programs
|
||||||
This package contains SANE Utilities and the SANE daemon needed for scanning
|
This package contains SANE Utilities and the SANE daemon needed for scanning
|
||||||
over a network.
|
over a network.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -138,9 +169,13 @@ sed 's|MODE="660", GROUP="scanner"|SYMLINK+="scanner-%k"|g' libsane.rules > %{bu
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%if %{libs_split}
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun libs -p /sbin/ldconfig
|
%postun libs -p /sbin/ldconfig
|
||||||
|
%else
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -148,10 +183,50 @@ rm -rf %{buildroot}
|
|||||||
%config(noreplace) /etc/sane.d/*
|
%config(noreplace) /etc/sane.d/*
|
||||||
%{_sysconfdir}/udev/rules.d/*
|
%{_sysconfdir}/udev/rules.d/*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
|
%{_datadir}/pixmaps/sane.png
|
||||||
|
|
||||||
|
%if ! %{libs_split}
|
||||||
|
%{_libdir}/libsane*.so.*
|
||||||
|
%dir %{_libdir}/sane
|
||||||
|
%{_libdir}/sane/*.so.*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{docs_split}
|
||||||
|
%{_docdir}/*
|
||||||
|
%exclude %{_docdir}/%{name}-%{version}/sane-backends.html
|
||||||
|
%exclude %{_docdir}/%{name}-%{version}/sane-backends-external.html
|
||||||
|
%exclude %{_docdir}/%{name}-%{version}/sane-mfgs.html
|
||||||
|
%exclude %{_docdir}/%{name}-%{version}/sane-mfgs-external.html
|
||||||
|
%exclude %{_docdir}/%{name}-%{version}/sane.dvi
|
||||||
|
%exclude %{_docdir}/%{name}-%{version}/sane.ps
|
||||||
|
%else
|
||||||
|
%doc %{_docdir}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{programs_split}
|
||||||
%exclude %{_mandir}/man1/*
|
%exclude %{_mandir}/man1/*
|
||||||
%exclude %{_mandir}/man8/*
|
%exclude %{_mandir}/man8/*
|
||||||
%{_datadir}/pixmaps/sane.png
|
|
||||||
%doc %{_docdir}/*
|
%files programs
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_mandir}/man1/sane-find-scanner.1*
|
||||||
|
%{_mandir}/man1/scanimage.1*
|
||||||
|
%{_mandir}/man8/saned.8*
|
||||||
|
%endif
|
||||||
|
%{_bindir}/sane-find-scanner
|
||||||
|
%{_bindir}/scanimage
|
||||||
|
%{_sbindir}/*
|
||||||
|
|
||||||
|
%if %{docs_split}
|
||||||
|
%files docs
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%{_docdir}/%{name}-%{version}/sane-backends.html
|
||||||
|
%{_docdir}/%{name}-%{version}/sane-backends-external.html
|
||||||
|
%{_docdir}/%{name}-%{version}/sane-mfgs.html
|
||||||
|
%{_docdir}/%{name}-%{version}/sane-mfgs-external.html
|
||||||
|
%{_docdir}/%{name}-%{version}/sane.dvi
|
||||||
|
%{_docdir}/%{name}-%{version}/sane.ps
|
||||||
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -163,6 +238,7 @@ rm -rf %{buildroot}
|
|||||||
%dir %{_libdir}/pkgconfig
|
%dir %{_libdir}/pkgconfig
|
||||||
%{_libdir}/pkgconfig/sane-backends.pc
|
%{_libdir}/pkgconfig/sane-backends.pc
|
||||||
|
|
||||||
|
%if %{libs_split}
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/libsane*.so.*
|
%{_libdir}/libsane*.so.*
|
||||||
@ -175,18 +251,14 @@ rm -rf %{buildroot}
|
|||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_libdir}/sane/*gphoto2.so.*
|
%{_libdir}/sane/*gphoto2.so.*
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
%files programs
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%{_bindir}/sane-find-scanner
|
|
||||||
%{_bindir}/scanimage
|
|
||||||
%{_mandir}/man1/sane-find-scanner.1*
|
|
||||||
%{_mandir}/man1/scanimage.1*
|
|
||||||
%{_sbindir}/*
|
|
||||||
%{_mandir}/man8/saned.8*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
|
* Mon Jul 24 2006 Nils Philippsen <nphilipp@redhat.com> - 1.0.18-1
|
||||||
|
- version 1.0.18
|
||||||
|
- unify spec file between OS releases
|
||||||
|
|
||||||
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.0.17-13.1
|
||||||
- rebuild
|
- rebuild
|
||||||
|
|
||||||
* Fri Jun 09 2006 Nils Philippsen <nphilipp@redhat.com> 1.0.17-13
|
* Fri Jun 09 2006 Nils Philippsen <nphilipp@redhat.com> 1.0.17-13
|
||||||
|
Loading…
Reference in New Issue
Block a user