Accepting request 36620 from home:jsmeix:branches:Printing
Copy from home:jsmeix:branches:Printing/hplip via accept of submit request 36620 revision 3. Request was accepted with message: Version upgrade to HPLIP 3.10.2 OBS-URL: https://build.opensuse.org/request/show/36620 OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=12
This commit is contained in:
96
hplip.spec
96
hplip.spec
@@ -24,27 +24,15 @@ Summary: HP's Printing, Scanning, and Faxing Software
|
||||
# HPLIP has reached 1.0 status. With this release a date encoded revision number is used:
|
||||
# x.y.m : x = major release number, y = year (eg: 6 = 2006), m = month (eg: 6a = second release in June)
|
||||
# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc
|
||||
Version: 3.9.8
|
||||
Version: 3.10.2
|
||||
Release: 3
|
||||
Group: Hardware/Printing
|
||||
License: BSD 3-clause (or similar) ; GPL v2 or later ; MIT License (or similar)
|
||||
Url: http://hplipopensource.com
|
||||
# Source0...Source9 is for sources from HP:
|
||||
# URL for Source0: http://surfnet.dl.sourceforge.net/sourceforge/hplip/hplip-3.9.8.tar.gz
|
||||
# URL for Source0: http://downloads.sourceforge.net/project/hplip/hplip/3.10.2/hplip-3.10.2.tar.gz?use_mirror=freefr
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
# Source1 hpcups-ppds-3.9.8-reorder.tar.bz2 contains the static PPDs which are fixed
|
||||
# according to what hpcups.drv.in-3.9.8-reorder.patch fixes for dynamic PPDs.
|
||||
# I got it on 14 Aug 2009 as mail attachment from linus.araque@hp.com:
|
||||
Source1: hpcups-ppds-3.9.8-reorder.tar.bz2
|
||||
# Patch0...Patch9 is for patches from HP:
|
||||
# URL for Patch0: http://surfnet.dl.sourceforge.net/sourceforge/hplip/hpcups.drv.in-3.9.8-reorder.patch
|
||||
# Patch0 hpcups.drv.in-3.9.8-reorder.patch addresses two issues in the 3.9.8 hpcups.drv.in file.
|
||||
# 1. Re-orders common paper sizes so that normal, fullbleed and duplex papers sizes are grouped together in the PPD.
|
||||
# 2. Changed the LJColor device class from RGBW to RGB color space. The K band was not being printed by hpcups.
|
||||
# Because we build it only with the static PPDs, hpcups.drv.in-3.9.8-reorder.patch
|
||||
# is actually not needed for us, nevertheless I like to provide this patch
|
||||
# to have it in our source RPM to be in full compliance to upstream.
|
||||
Patch0: hpcups.drv.in-3.9.8-reorder.patch
|
||||
# Patch10...Patch99 is for Suse patches for the sources from HP:
|
||||
# Patch10 fixes "... is used uninitialized ..." warnings:
|
||||
Patch10: fix-uninitialized-variables.diff
|
||||
@@ -58,20 +46,17 @@ Source100: %{name}.desktop
|
||||
Source101: hp-toolbox.wrapper
|
||||
# Source102 is a small man page for /usr/bin/hpijs:
|
||||
Source102: hpijs.1.gz
|
||||
# Source103 was the init script for hpssd which is obsolete since version 2.8.4
|
||||
# Source104 is a script which outputs a global HAL fdi file
|
||||
# for all HP USB devices which belong to HPLIP:
|
||||
Source104: create_hal_global_fdi_from_hpmud_rules
|
||||
# Source103 was the init script for hpssd which is obsolete since version 2.8.4.
|
||||
# Source104 was a script which outputs a global HAL fdi file which is obsolete
|
||||
# since openSUSE 11.2 where HAL is no longer used to manage ACLs,
|
||||
# see https://bugzilla.novell.com/show_bug.cgi?id=542473#c13
|
||||
# Source105 hplip.SuSEfirewall2 provides support
|
||||
# to open UDP ports 5353(mdns) and 427(svrloc) for mDNS support
|
||||
# according to the init-suse-firewall in the tar ball
|
||||
# (compare also Novell/Suse Bugzilla bnc#498429):
|
||||
Source105: hplip.SuSEfirewall2
|
||||
# Patch100... is for special Suse patches:
|
||||
# Patch101 changes in the udev rules file the mode from "0666" to "0664"
|
||||
# and for parallel port devices the owner from "lp" to "root" to avoid
|
||||
# that the permissions can be changed e.g. by any CUPS filter script
|
||||
# or CUPS backend (both run as user "lp"):
|
||||
# Patch101 changes the udev rules files 55-hpmud.rules and 56-hpmud_support.rules:
|
||||
Patch101: change-udev-rules.diff
|
||||
# Install into this non-root directory (required when norootforbuild is used):
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
@@ -255,17 +240,11 @@ Authors:
|
||||
%prep
|
||||
# Be quiet when unpacking:
|
||||
%setup -q
|
||||
# Unpack the fixed static PPDs in Source1 hpcups-ppds-3.9.8-reorder.tar.bz2
|
||||
# which overwrite the original static PPDs in Source0:
|
||||
tar -x --overwrite --no-overwrite-dir -j -f %{SOURCE1}
|
||||
# Patch0 hpcups.drv.in-3.9.8-reorder.patch
|
||||
# addresses two issues in the 3.9.8 hpcups.drv.in file:
|
||||
%patch0
|
||||
# Patch10 fix-uninitialized-variables.diff
|
||||
# fixes "... is used uninitialized ..." warnings:
|
||||
%patch10
|
||||
# Patch101 change-udev-rules.diff
|
||||
# changes in the udev rules file the mode from "0666" to "0664":
|
||||
# changes the udev rules files 55-hpmud.rules and 56-hpmud_support.rules:
|
||||
%patch101
|
||||
|
||||
%build
|
||||
@@ -312,9 +291,10 @@ export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
--enable-foomatic-ppd-install \
|
||||
--enable-foomatic-rip-hplip-install \
|
||||
--with-hpppddir=%{_datadir}/cups/model/manufacturer-PPDs/%{name} \
|
||||
--with-cupsbackenddir=%{_libdir}/cups/backend \
|
||||
--with-cupsfilterdir=%{_libdir}/cups/filter \
|
||||
--with-drvdir=%{_libdir}/cups/driver \
|
||||
--with-cupsbackenddir=/usr/lib/cups/backend \
|
||||
--with-cupsfilterdir=/usr/lib/cups/filter \
|
||||
--with-drvdir=/usr/lib/cups/driver \
|
||||
--with-mimedir=%{_sysconfdir}/cups \
|
||||
--with-docdir=%{_defaultdocdir}/%{name}
|
||||
make
|
||||
|
||||
@@ -323,7 +303,9 @@ make install DESTDIR=%{buildroot}
|
||||
# Remove the installed /etc/sane.d/dll.conf
|
||||
# because this is provided by the sane-backends package:
|
||||
rm %{buildroot}%{_sysconfdir}/sane.d/dll.conf
|
||||
# Make some general tests and adjustments for all PPDs (see manufacturer-PPDs.spec):
|
||||
# Remove the installed HAL fdi file because HAL is no longer used (HAL is deprecated):
|
||||
rm %{buildroot}%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
|
||||
# Begin "General tests and adjustments for all PPDs" (see manufacturer-PPDs.spec):
|
||||
pushd %{buildroot}%{_datadir}/cups/model/manufacturer-PPDs/%{name}
|
||||
gunzip *.ppd.gz
|
||||
# Add a line-feed to the end of all PPDs to fix those PPDs where it is missing.
|
||||
@@ -385,13 +367,8 @@ do egrep -v '^\*UIConstraints:|^\*NonUIConstraints:' $p | cupstestppd - || true
|
||||
gzip $p
|
||||
done
|
||||
popd
|
||||
# End of the general tests and adjustments for all PPDs.
|
||||
# Run the script which outputs a global HAL fdi file for all HP USB devices which belong to HPLIP
|
||||
# and install its output as /usr/share/hal/fdi/information/20thirdparty/70-hpmud.fdi
|
||||
bash %{SOURCE104} data/rules/55-hpmud.rules >70-hpmud.fdi
|
||||
install -d %{buildroot}%{_datadir}/hal/fdi/information/20thirdparty
|
||||
install -m644 70-hpmud.fdi %{buildroot}%{_datadir}/hal/fdi/information/20thirdparty/70-hpmud.fdi
|
||||
# Desktop menue entry stuff:
|
||||
# End of "General tests and adjustments for all PPDs".
|
||||
# Begin "Desktop menue entry stuff":
|
||||
# Install the wrapper for hp-toolbox:
|
||||
install -m 755 %{SOURCE101} %{buildroot}%{_bindir}/hp-toolbox.wrapper
|
||||
# Install /usr/share/hplip/data/images/64x64/hp_logo.png as desktop icon file
|
||||
@@ -406,6 +383,7 @@ rm %{buildroot}%{_datadir}/applications/%{name}*.desktop
|
||||
# Let suse_update_desktop_file add X-SuSE-translate key to /etc/xdg/autostart/hplip-systray.desktop
|
||||
# so that we can update its translations with translation-only packages.
|
||||
%suse_update_desktop_file %{buildroot}/etc/xdg/autostart/hplip-systray.desktop
|
||||
# End of "Desktop menue entry stuff".
|
||||
# Install the man page for /usr/bin/hpijs:
|
||||
install -d %{buildroot}%{_mandir}/man1
|
||||
install -m 644 %{SOURCE102} %{buildroot}%{_mandir}/man1/
|
||||
@@ -482,14 +460,6 @@ exit 0
|
||||
%dir %{_sysconfdir}/udev/rules.d
|
||||
%config %{_sysconfdir}/udev/rules.d/55-hpmud.rules
|
||||
%config %{_sysconfdir}/udev/rules.d/56-hpmud_support.rules
|
||||
%dir %{_datadir}/hal
|
||||
%dir %{_datadir}/hal/fdi
|
||||
%dir %{_datadir}/hal/fdi/information
|
||||
%dir %{_datadir}/hal/fdi/information/20thirdparty
|
||||
%{_datadir}/hal/fdi/information/20thirdparty/70-hpmud.fdi
|
||||
%dir %{_datadir}/hal/fdi/preprobe
|
||||
%dir %{_datadir}/hal/fdi/preprobe/10osvendor
|
||||
%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi
|
||||
%{_bindir}/hp-align
|
||||
%{_bindir}/hp-check
|
||||
%{_bindir}/hp-clean
|
||||
@@ -526,11 +496,11 @@ exit 0
|
||||
%{_libdir}/python%{py_ver}/site-packages/scanext.*
|
||||
%dir %{_libdir}/sane
|
||||
%{_libdir}/sane/libsane-hpaio.*
|
||||
%dir %{_libdir}/cups
|
||||
%dir %{_libdir}/cups/backend
|
||||
%{_libdir}/cups/backend/hpfax
|
||||
%dir %{_libdir}/cups/filter
|
||||
%{_libdir}/cups/filter/hpcupsfax
|
||||
%dir /usr/lib/cups
|
||||
%dir /usr/lib/cups/backend
|
||||
/usr/lib/cups/backend/hpfax
|
||||
%dir /usr/lib/cups/filter
|
||||
/usr/lib/cups/filter/hpcupsfax
|
||||
%dir /var/lib/hp
|
||||
/var/lib/hp/hplip.state
|
||||
%doc %{_defaultdocdir}/%{name}/
|
||||
@@ -543,18 +513,21 @@ exit 0
|
||||
%files hpijs
|
||||
%defattr(-, root, root)
|
||||
%config %{_sysconfdir}/hp/
|
||||
%config %{_sysconfdir}/cups/pstotiff.convs
|
||||
%config %{_sysconfdir}/cups/pstotiff.types
|
||||
%{_bindir}/hpijs
|
||||
%doc %{_mandir}/man1/hpijs.1.gz
|
||||
%{_libdir}/libhpip.*
|
||||
%{_libdir}/libhpmud.*
|
||||
%dir %{_libdir}/cups
|
||||
%dir %{_libdir}/cups/backend
|
||||
%{_libdir}/cups/backend/hp
|
||||
%dir %{_libdir}/cups/filter
|
||||
%{_libdir}/cups/filter/foomatic-rip-hplip
|
||||
%{_libdir}/cups/filter/hpcac
|
||||
%{_libdir}/cups/filter/hpcups
|
||||
%{_libdir}/cups/filter/hplipjs
|
||||
%dir /usr/lib/cups
|
||||
%dir /usr/lib/cups/backend
|
||||
/usr/lib/cups/backend/hp
|
||||
%dir /usr/lib/cups/filter
|
||||
/usr/lib/cups/filter/foomatic-rip-hplip
|
||||
/usr/lib/cups/filter/hpcac
|
||||
/usr/lib/cups/filter/hpcups
|
||||
/usr/lib/cups/filter/hplipjs
|
||||
/usr/lib/cups/filter/pstotiff
|
||||
%dir %{_datadir}/cups
|
||||
%dir %{_datadir}/cups/model
|
||||
%dir %{_datadir}/cups/model/manufacturer-PPDs
|
||||
@@ -562,3 +535,4 @@ exit 0
|
||||
%{_datadir}/%{name}/data/models/models.dat
|
||||
|
||||
%changelog
|
||||
|
||||
|
Reference in New Issue
Block a user