This commit is contained in:
committed by
Git OBS Bridge
parent
1c8d6f6d46
commit
da3545e2f8
26
hplip.spec
26
hplip.spec
@@ -17,7 +17,7 @@ Summary: HP's Printing, Scanning, and Faxing Software
|
||||
# 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: 1.7.1
|
||||
Release: 8
|
||||
Release: 10
|
||||
%define hpijsVersion 2.7.1
|
||||
Group: Hardware/Printing
|
||||
License: BSD License and BSD-like, GNU General Public License (GPL)
|
||||
@@ -52,7 +52,7 @@ Source102: hpijs.1.gz
|
||||
Patch100: %{name}-init-script.diff
|
||||
# Install into this non-root directory (required when norootforbuild is used):
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
PreReq: coreutils, /bin/grep, /bin/sed
|
||||
PreReq: coreutils, /bin/grep, /bin/sed, /usr/bin/find
|
||||
Requires: %{name}-hpijs, foomatic-filters, python-xml, python-qt
|
||||
# Skip testing devel dependencies required by libtool .la files by the following comment:
|
||||
# skip-check-libtool-deps
|
||||
@@ -261,6 +261,19 @@ then grep -q 'hpaio' /etc/sane.d/dll.conf || echo -e '# The hpaio backend is pro
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%preun
|
||||
# If the package was removed and if it was updated
|
||||
# remove all byte-compiled Python .pyc (and perhaps .pyo) files
|
||||
# which are created at run-time by Python in /usr/share/hplip/.
|
||||
# Use a generic method via "find" so that it works in any case
|
||||
# without the need to maintain a long list of individual files.
|
||||
# Even if this may accidentally remove "foreign" .pyc/.pyo files
|
||||
# which do not originate from matching .py files from this package
|
||||
# (e.g. third-party stuff in /usr/share/hplip/), there is no damage
|
||||
# because Python could re-create them or work only with .py files.
|
||||
find /usr/share/hplip/ -name '*.py[co]' -delete
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
# If the package was removed (but not if it was updated)
|
||||
@@ -323,7 +336,14 @@ exit 0
|
||||
%{_bindir}/hpijs
|
||||
%{_libdir}/libhpip.*
|
||||
|
||||
%changelog -n hplip
|
||||
%changelog
|
||||
* Fri Feb 16 2007 - jsmeix@suse.de
|
||||
- Added a fix for fat.c to fix-buffer-overflow.patch
|
||||
to aviod access when array subscript is above array bounds
|
||||
(Suse Bugzilla bug #243047).
|
||||
- Remove all byte-compiled Python .pyc (and perhaps .pyo)
|
||||
files which are created at run-time in /usr/share/hplip/
|
||||
via preun script (Suse Bugzilla bug #244451).
|
||||
* Mon Feb 05 2007 - jsmeix@suse.de
|
||||
- fix-buffer-overflow.patch fixes a too small string buffer
|
||||
which overflows in line 310 in ljcolor.cpp.
|
||||
|
Reference in New Issue
Block a user