Accepting request 440826 from home:weberho:branches:Printing
- Version upgrade to 3.16.10: * Added Support for the Following New Printers: - HP officejetPro7740 wide Format All in one - HP Office jet 6950 All-in-One printer - HP ScanJet Pro 3000 s3 Sheet-feed Scanner - HP ScanJet Enterprise Flow 5000 s4 Sheet-feed Scanner - HP Scanjet Entrprise Flow 7000 s3 sheetfeed Scanner - HP Color LaserJet Pro MFP M277c6 * Notes to follow: - For scanjets scan using command "hp-scan --adf --size=size_name" - "hp-scan --help" for all size_name OBS-URL: https://build.opensuse.org/request/show/440826 OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=132
This commit is contained in:
115
hplip.spec
115
hplip.spec
@@ -21,9 +21,19 @@
|
||||
%else
|
||||
%define is_leap 0
|
||||
%endif
|
||||
|
||||
# For udev macros
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%else
|
||||
# For older suse_version (in particular for SLE11) define needed udev macros manually:
|
||||
%{!?_udevrulesdir: %global _udevrulesdir %{_prefix}/lib/udev/rules.d }
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1110
|
||||
# For SLE11 redefine _libexecdir because on SLE11 _libexecdir is "/usr/lib64":
|
||||
%global _libexecdir %{_prefix}/lib
|
||||
%endif
|
||||
Name: hplip
|
||||
Version: 3.16.8
|
||||
Version: 3.16.10
|
||||
Release: 0
|
||||
Summary: HP's Printing, Scanning, and Faxing Software
|
||||
License: BSD-3-Clause and GPL-2.0+ and MIT
|
||||
@@ -60,43 +70,6 @@ Patch108: add_missing_includes_and_define_GNU_SOURCE.patch
|
||||
Patch200: hplip-mdns.patch
|
||||
# Patch201 makes MDNS lookups more robust by retrying queries:
|
||||
Patch201: hplip-mdns-retry-query.patch
|
||||
# HPLIP's Python module cupsext.so has a build-time dependancy on the CUPS version:
|
||||
# It needs symbols (like ippFirstAttribute, ippNextAttribute, ippSetOperation etc)
|
||||
# that are defined only in libcups.so version > 1.5. For backward compatibility
|
||||
# cupsext.c has a macro (CUPS_VERSION_1_6) which defines those undefined function names
|
||||
# if CUPS version is <= 1.5. To check the CUPS version the CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR
|
||||
# macros from cups/cups.h are used which means it depends on the CUPS version during build-time
|
||||
# whether or not cupsext will work with CUPS <= 1.5 at run-time.
|
||||
# See https://bugs.launchpad.net/hplip/+bug/1423220
|
||||
# and https://bugzilla.opensuse.org/show_bug.cgi?id=918387
|
||||
# Therefore it BuildRequires the CUPS version as provided in the openSUSE/SLE versions.
|
||||
# Up to openSUSE 13.2 and SLE11 CUPS < 1.6 is provided (from CUPS 1.3.9 for SLE11 up to CUPS 1.5.4 for openSUSE 13.2).
|
||||
# For SLE12 by default CUPS 1.7.5 is provided and alternatively CUPS 1.5.4 is provided in the "legacy" module.
|
||||
# After openSUSE 13.2 (i.e. for current openSUSE Factory) CUPS 2.0 is provided.
|
||||
# Up to openSUSE 13.2 and SLE12 it BuildRequires CUPS < 1.6 to ensure it even works on SLE12 with CUPS 1.5.4.
|
||||
# When it was built with CUPS > 1.5 it must also require CUPS > 1.5 during run-time.
|
||||
# In contrast when it was built with CUPS < 1.6 there must not be a run-time requirement
|
||||
# for a CUPS version to ensure it works on SLE12 both with CUPS 1.7.5 and CUPS 1.5.4.
|
||||
# For suse_version values see https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||||
%if 0%{?suse_version} > 1320 || %{is_leap}
|
||||
# For openSUSE after 13.2 (i.e. for current openSUSE Factory) CUPS > 1.5 is provided and required:
|
||||
BuildRequires: cups > 1.5
|
||||
BuildRequires: cups-devel > 1.5
|
||||
Requires: cups > 1.5
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1315 && !%{is_leap}
|
||||
# For SLE12 build it with traditional CUPS 1.5.4 to ensure it works on SLE12 both with CUPS 1.7.5 and CUPS 1.5.4.
|
||||
# Only in the Printing project for SLE12 use cups154 and cups154-devel (from the cups154-SLE12 source package):
|
||||
BuildRequires: cups154
|
||||
BuildRequires: cups154-devel
|
||||
Requires: cups
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1320 || 0%{?suse_version} < 1315
|
||||
# For openSUSE 13.2 and for openSUSE 13.1 and older openSUSE and SLE11 versions CUPS < 1.6 is provided:
|
||||
BuildRequires: cups < 1.6
|
||||
BuildRequires: cups-devel < 1.6
|
||||
Requires: cups
|
||||
%endif
|
||||
BuildRequires: dbus-1-devel
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: hicolor-icon-theme
|
||||
@@ -118,22 +91,6 @@ BuildRequires: python-openssl
|
||||
BuildRequires: python-qt4
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: readline-devel
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: sane-backends-devel
|
||||
%else
|
||||
BuildRequires: sane-backends
|
||||
%endif
|
||||
# For udev macros
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%else
|
||||
# For older suse_version (in particular for SLE11) define needed udev macros manually:
|
||||
%{!?_udevrulesdir: %global _udevrulesdir /usr/lib/udev/rules.d }
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1110
|
||||
# For SLE11 redefine _libexecdir because on SLE11 _libexecdir is "/usr/lib64":
|
||||
%global _libexecdir /usr/lib
|
||||
%endif
|
||||
BuildRequires: update-desktop-files
|
||||
# Require the exact matching version-release of the hpijs sub-package to make sure
|
||||
# to have the exact matching version of libhpip and libhpmud installed.
|
||||
@@ -193,6 +150,48 @@ Provides: hplip3 = 3.9.5
|
||||
Obsoletes: hplip3 < 3.9.5
|
||||
# Install into this non-root directory (required when norootforbuild is used):
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# HPLIP's Python module cupsext.so has a build-time dependancy on the CUPS version:
|
||||
# It needs symbols (like ippFirstAttribute, ippNextAttribute, ippSetOperation etc)
|
||||
# that are defined only in libcups.so version > 1.5. For backward compatibility
|
||||
# cupsext.c has a macro (CUPS_VERSION_1_6) which defines those undefined function names
|
||||
# if CUPS version is <= 1.5. To check the CUPS version the CUPS_VERSION_MAJOR, CUPS_VERSION_MINOR
|
||||
# macros from cups/cups.h are used which means it depends on the CUPS version during build-time
|
||||
# whether or not cupsext will work with CUPS <= 1.5 at run-time.
|
||||
# See https://bugs.launchpad.net/hplip/+bug/1423220
|
||||
# and https://bugzilla.opensuse.org/show_bug.cgi?id=918387
|
||||
# Therefore it BuildRequires the CUPS version as provided in the openSUSE/SLE versions.
|
||||
# Up to openSUSE 13.2 and SLE11 CUPS < 1.6 is provided (from CUPS 1.3.9 for SLE11 up to CUPS 1.5.4 for openSUSE 13.2).
|
||||
# For SLE12 by default CUPS 1.7.5 is provided and alternatively CUPS 1.5.4 is provided in the "legacy" module.
|
||||
# After openSUSE 13.2 (i.e. for current openSUSE Factory) CUPS 2.0 is provided.
|
||||
# Up to openSUSE 13.2 and SLE12 it BuildRequires CUPS < 1.6 to ensure it even works on SLE12 with CUPS 1.5.4.
|
||||
# When it was built with CUPS > 1.5 it must also require CUPS > 1.5 during run-time.
|
||||
# In contrast when it was built with CUPS < 1.6 there must not be a run-time requirement
|
||||
# for a CUPS version to ensure it works on SLE12 both with CUPS 1.7.5 and CUPS 1.5.4.
|
||||
# For suse_version values see https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
|
||||
%if 0%{?suse_version} > 1320 || %{is_leap}
|
||||
# For openSUSE after 13.2 (i.e. for current openSUSE Factory) CUPS > 1.5 is provided and required:
|
||||
BuildRequires: cups > 1.5
|
||||
BuildRequires: cups-devel > 1.5
|
||||
Requires: cups > 1.5
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1315 && !%{is_leap}
|
||||
# For SLE12 build it with traditional CUPS 1.5.4 to ensure it works on SLE12 both with CUPS 1.7.5 and CUPS 1.5.4.
|
||||
# Only in the Printing project for SLE12 use cups154 and cups154-devel (from the cups154-SLE12 source package):
|
||||
BuildRequires: cups154
|
||||
BuildRequires: cups154-devel
|
||||
Requires: cups
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1320 || 0%{?suse_version} < 1315
|
||||
# For openSUSE 13.2 and for openSUSE 13.1 and older openSUSE and SLE11 versions CUPS < 1.6 is provided:
|
||||
BuildRequires: cups < 1.6
|
||||
BuildRequires: cups-devel < 1.6
|
||||
Requires: cups
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1130
|
||||
BuildRequires: sane-backends-devel
|
||||
%else
|
||||
BuildRequires: sane-backends
|
||||
%endif
|
||||
|
||||
%description
|
||||
The Hewlett-Packard Linux Imaging and Printing project (HPLIP) provides
|
||||
@@ -645,8 +644,8 @@ exit 0
|
||||
%defattr(-, root, root)
|
||||
%config %{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
||||
%if 0%{?suse_version} == 1110 || 0%{?suse_version} == 1320 || %{is_leap}
|
||||
%dir /usr/lib/udev
|
||||
%dir /usr/lib/udev/rules.d
|
||||
%dir %{_prefix}/lib/udev
|
||||
%dir %{_prefix}/lib/udev/rules.d
|
||||
%endif
|
||||
%config %{_udevrulesdir}/56-hpmud.rules
|
||||
%{_bindir}/hp-align
|
||||
@@ -710,7 +709,7 @@ exit 0
|
||||
%config %{_sysconfdir}/cups/pstotiff.convs
|
||||
%config %{_sysconfdir}/cups/pstotiff.types
|
||||
%{_bindir}/hpijs
|
||||
%doc %{_mandir}/man1/hpijs.1.gz
|
||||
%{_mandir}/man1/hpijs.1.gz
|
||||
%{_libdir}/libhpip.so.*
|
||||
%{_libdir}/libhpipp.so.*
|
||||
%{_libdir}/libhpmud.so.*
|
||||
|
Reference in New Issue
Block a user