|
|
@@ -15,6 +15,7 @@
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: hplip
|
|
|
|
Name: hplip
|
|
|
|
# BuildRequires foomatic-filters to avoid /usr/lib/rpm/brp-symlink ERROR:
|
|
|
|
# BuildRequires foomatic-filters to avoid /usr/lib/rpm/brp-symlink ERROR:
|
|
|
|
# link target doesn't exist (neither in build root nor in installed system):
|
|
|
|
# link target doesn't exist (neither in build root nor in installed system):
|
|
|
@@ -58,7 +59,7 @@ Group: Hardware/Printing
|
|
|
|
# where 'a' or 'b' do not mean 'alpha' or 'beta' but 'second' or 'third' release in the month
|
|
|
|
# where 'a' or 'b' do not mean 'alpha' or 'beta' but 'second' or 'third' release in the month
|
|
|
|
# (usually bugfix releases have the suffix like 3.12.10a = first bugfix release for 3.12.10).
|
|
|
|
# (usually bugfix releases have the suffix like 3.12.10a = first bugfix release for 3.12.10).
|
|
|
|
# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc
|
|
|
|
# Official releases have a 3 digit number and release candidates have a 4 digit number: x.y.m.rc
|
|
|
|
Version: 3.13.10
|
|
|
|
Version: 3.13.11
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
Url: http://hplipopensource.com
|
|
|
|
Url: http://hplipopensource.com
|
|
|
|
# Source0...Source9 is for sources from HP:
|
|
|
|
# Source0...Source9 is for sources from HP:
|
|
|
@@ -77,10 +78,10 @@ Source2: hplip.keyring
|
|
|
|
# Patch11 fix_gcc44_glib.diff is obsolete since version 3.9.6b because it is fixed in the source.
|
|
|
|
# Patch11 fix_gcc44_glib.diff is obsolete since version 3.9.6b because it is fixed in the source.
|
|
|
|
# Patch12 hplip-3.9.8-CVE-2010-4267.patch fixeed a remote buffer overflow in hpmud/pml.c which
|
|
|
|
# Patch12 hplip-3.9.8-CVE-2010-4267.patch fixeed a remote buffer overflow in hpmud/pml.c which
|
|
|
|
# is no longer needed because it is fixed in the upstream sources in HPLIP version 3.13.7
|
|
|
|
# is no longer needed because it is fixed in the upstream sources in HPLIP version 3.13.7
|
|
|
|
# Source100... is for special Suse sources:
|
|
|
|
# Source100... is for special SUSE sources:
|
|
|
|
# Source100 is the primary source for the suse_update_desktop_file stuff.
|
|
|
|
# Source100 is obsolete as upstream provides .desktop files now
|
|
|
|
# It is found automatically in $RPM_SOURCE_DIR by 'suse_update_desktop_file -i hplip':
|
|
|
|
# It is found automatically in $RPM_SOURCE_DIR by 'suse_update_desktop_file -i hplip':
|
|
|
|
Source100: hplip.desktop
|
|
|
|
# Source100: hplip.desktop
|
|
|
|
# Source101 hp-toolbox.wrapper was a wrapper for hp-toolbox which is no longer needed
|
|
|
|
# Source101 hp-toolbox.wrapper was a wrapper for hp-toolbox which is no longer needed
|
|
|
|
# see https://bugzilla.novell.com/show_bug.cgi?id=755820
|
|
|
|
# see https://bugzilla.novell.com/show_bug.cgi?id=755820
|
|
|
|
# Source102 is a small man page for /usr/bin/hpijs:
|
|
|
|
# Source102 is a small man page for /usr/bin/hpijs:
|
|
|
@@ -314,6 +315,16 @@ This sub-package includes only what is needed for plain scanning
|
|
|
|
with the scan drivers in HPLIP for standard HP all-in-one printers.
|
|
|
|
with the scan drivers in HPLIP for standard HP all-in-one printers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
|
|
|
Summary: Development files for hplip
|
|
|
|
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
|
|
|
|
Requires: %{name}-hpijs = %{version}-%{release}
|
|
|
|
|
|
|
|
Requires: %{name}-sane = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
|
|
|
This sub-package is only required by developers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
# first thing is to verify the GPG signed tarball, starting with openSUSE 12.3.
|
|
|
|
# first thing is to verify the GPG signed tarball, starting with openSUSE 12.3.
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
|
%if 0%{?suse_version} > 1220
|
|
|
@@ -486,18 +497,8 @@ popd
|
|
|
|
# /usr/lib/cups/filter/foomatic-rip-hplip
|
|
|
|
# /usr/lib/cups/filter/foomatic-rip-hplip
|
|
|
|
# which points to foomatic-rip is installed:
|
|
|
|
# which points to foomatic-rip is installed:
|
|
|
|
ln -s ../../../bin/foomatic-rip %{buildroot}/usr/lib/cups/filter/foomatic-rip-hplip
|
|
|
|
ln -s ../../../bin/foomatic-rip %{buildroot}/usr/lib/cups/filter/foomatic-rip-hplip
|
|
|
|
# Begin "Desktop menue entry stuff":
|
|
|
|
# Replace the invalid Desktop categories
|
|
|
|
# Install /usr/share/hplip/data/images/64x64/hp_logo.png as desktop icon file
|
|
|
|
%suse_update_desktop_file -r %{buildroot}%{_datadir}/applications/hplip.desktop System HardwareSettings
|
|
|
|
# because it is used in the hplip.desktop.in and hplip-systray.desktop.in sources:
|
|
|
|
|
|
|
|
install -D -m 644 %{buildroot}%{_datadir}/hplip/data/images/32x32/hp_logo.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/HPmenu.png
|
|
|
|
|
|
|
|
install -D -m 644 %{buildroot}%{_datadir}/hplip/data/images/64x64/hp_logo.png %%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/HPmenu.png
|
|
|
|
|
|
|
|
install -D -m 644 %{buildroot}%{_datadir}/hplip/data/images/128x128/hp_logo.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/HPmenu.png
|
|
|
|
|
|
|
|
install -D -m 644 %{buildroot}%{_datadir}/hplip/data/images/256x256/hp_logo.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/HPmenu.png
|
|
|
|
|
|
|
|
# Set up and install the desktop menue entry stuff using "Categories=System;Monitor;"
|
|
|
|
|
|
|
|
# and remove HP's hplip.desktop and hplip-systray.desktop files before because we use Source100:
|
|
|
|
|
|
|
|
# (additionally there is/was a typo in HP's install because of the trailing blank at 'applications ')
|
|
|
|
|
|
|
|
rm %{buildroot}%{_datadir}/applications/hplip*.desktop
|
|
|
|
|
|
|
|
%suse_update_desktop_file -i %{name} System HardwareSettings Printing
|
|
|
|
|
|
|
|
# Let suse_update_desktop_file add X-SuSE-translate key to /etc/xdg/autostart/hplip-systray.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.
|
|
|
|
# so that we can update its translations with translation-only packages.
|
|
|
|
%suse_update_desktop_file %{buildroot}/etc/xdg/autostart/hplip-systray.desktop
|
|
|
|
%suse_update_desktop_file %{buildroot}/etc/xdg/autostart/hplip-systray.desktop
|
|
|
@@ -517,6 +518,9 @@ install -m 644 %{SOURCE102} %{buildroot}%{_mandir}/man1/
|
|
|
|
%fdupes -s %{buildroot}/%{_datadir}/hplip/data/images
|
|
|
|
%fdupes -s %{buildroot}/%{_datadir}/hplip/data/images
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@@ -551,6 +555,9 @@ find /usr/share/hplip/ -name '*.py[co]' -delete
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%postun
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
|
|
|
|
%desktop_database_postun
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%if 0%{?suse_version} > 1130
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%else
|
|
|
|
%else
|
|
|
@@ -636,7 +643,6 @@ exit 0
|
|
|
|
%dir /usr/lib/cups/filter
|
|
|
|
%dir /usr/lib/cups/filter
|
|
|
|
/usr/lib/cups/filter/hpcupsfax
|
|
|
|
/usr/lib/cups/filter/hpcupsfax
|
|
|
|
%doc %{_defaultdocdir}/%{name}/
|
|
|
|
%doc %{_defaultdocdir}/%{name}/
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/HPmenu.png
|
|
|
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/hplip/
|
|
|
|
%{_datadir}/hplip/
|
|
|
|
%exclude %{_datadir}/hplip/data/models/models.dat
|
|
|
|
%exclude %{_datadir}/hplip/data/models/models.dat
|
|
|
@@ -648,8 +654,8 @@ exit 0
|
|
|
|
%config %{_sysconfdir}/cups/pstotiff.types
|
|
|
|
%config %{_sysconfdir}/cups/pstotiff.types
|
|
|
|
%{_bindir}/hpijs
|
|
|
|
%{_bindir}/hpijs
|
|
|
|
%doc %{_mandir}/man1/hpijs.1.gz
|
|
|
|
%doc %{_mandir}/man1/hpijs.1.gz
|
|
|
|
%{_libdir}/libhpip.*
|
|
|
|
%{_libdir}/libhpip.so.*
|
|
|
|
%{_libdir}/libhpmud.*
|
|
|
|
%{_libdir}/libhpmud.so.*
|
|
|
|
%dir /usr/lib/cups
|
|
|
|
%dir /usr/lib/cups
|
|
|
|
%dir /usr/lib/cups/backend
|
|
|
|
%dir /usr/lib/cups/backend
|
|
|
|
/usr/lib/cups/backend/hp
|
|
|
|
/usr/lib/cups/backend/hp
|
|
|
@@ -676,6 +682,14 @@ exit 0
|
|
|
|
%files sane
|
|
|
|
%files sane
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%dir %{_libdir}/sane
|
|
|
|
%dir %{_libdir}/sane
|
|
|
|
%{_libdir}/sane/libsane-hpaio.*
|
|
|
|
%{_libdir}/sane/libsane-hpaio.so.*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%{_libdir}/libhpip.so
|
|
|
|
|
|
|
|
%{_libdir}/libhpmud.so
|
|
|
|
|
|
|
|
%{_libdir}/*.la
|
|
|
|
|
|
|
|
%{_libdir}/sane/libsane-hpaio.so
|
|
|
|
|
|
|
|
%{_libdir}/sane/*.la
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|