remove redundant files
This commit is contained in:
parent
4769a36684
commit
f5837c16e5
1
.gitignore
vendored
1
.gitignore
vendored
@ -102,3 +102,4 @@ hplip-3.10.6.tar.gz
|
|||||||
/hplip-3.20.9.tar.gz
|
/hplip-3.20.9.tar.gz
|
||||||
/hplip-3.20.11.tar.gz
|
/hplip-3.20.11.tar.gz
|
||||||
/hplip-3.21.2.tar.gz
|
/hplip-3.21.2.tar.gz
|
||||||
|
/hplip-3.21.2-repack.tar.gz
|
||||||
|
22
hplip-repack.sh
Executable file
22
hplip-repack.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
VERSION=$1
|
||||||
|
|
||||||
|
if [ "${VERSION:="*"}" == "*" ]
|
||||||
|
then
|
||||||
|
echo "Define a version of hplip as an argument."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# extract the original tarball
|
||||||
|
tar -xaf hplip-$VERSION.tar.gz || exit 1
|
||||||
|
|
||||||
|
# remove unwanted files
|
||||||
|
rm hplip-$VERSION/prnt/hpcups/ErnieFilter.{cpp,h} hplip-$VERSION/prnt/hpijs/ernieplatform.h || exit 1
|
||||||
|
|
||||||
|
# compress into a new tarball
|
||||||
|
tar -cjvf hplip-$VERSION-repack.tar.gz hplip-$VERSION || exit 1
|
||||||
|
|
||||||
|
# upload a new source tarball
|
||||||
|
#fedpkg new-sources hplip-$VERSION-repack.tar.gz || exit 1
|
19
hplip.spec
19
hplip.spec
@ -7,16 +7,26 @@
|
|||||||
Summary: HP Linux Imaging and Printing Project
|
Summary: HP Linux Imaging and Printing Project
|
||||||
Name: hplip
|
Name: hplip
|
||||||
Version: 3.21.2
|
Version: 3.21.2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC
|
||||||
|
|
||||||
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
Url: https://developers.hp.com/hp-linux-imaging-and-printing
|
||||||
Source0: http://downloads.sourceforge.net/sourceforge/hplip/hplip-%{version}.tar.gz
|
# Original source tarball
|
||||||
|
# Source0: http://downloads.sourceforge.net/sourceforge/hplip/hplip-%%{version}.tar.gz
|
||||||
|
#
|
||||||
|
# Repacked source tarball without redundant files - always repack
|
||||||
|
# the original tarball once a new version arrives by:
|
||||||
|
#
|
||||||
|
# ./hplip-repack.sh <version>
|
||||||
|
#
|
||||||
|
|
||||||
|
Source0: hplip-%{version}-repack.tar.gz
|
||||||
Source1: hpcups-update-ppds.sh
|
Source1: hpcups-update-ppds.sh
|
||||||
Source2: copy-deviceids.py
|
Source2: copy-deviceids.py
|
||||||
Source3: %{name}.appdata.xml
|
Source3: %{name}.appdata.xml
|
||||||
Source4: hp-laserjet_cp_1025nw.ppd.gz
|
Source4: hp-laserjet_cp_1025nw.ppd.gz
|
||||||
Source5: hp-laserjet_professional_p_1102w.ppd.gz
|
Source5: hp-laserjet_professional_p_1102w.ppd.gz
|
||||||
|
|
||||||
Patch1: hplip-pstotiff-is-rubbish.patch
|
Patch1: hplip-pstotiff-is-rubbish.patch
|
||||||
Patch2: hplip-strstr-const.patch
|
Patch2: hplip-strstr-const.patch
|
||||||
Patch3: hplip-ui-optional.patch
|
Patch3: hplip-ui-optional.patch
|
||||||
@ -388,8 +398,6 @@ done
|
|||||||
# hplip appdata
|
# hplip appdata
|
||||||
%patch26 -p1 -b .appdata
|
%patch26 -p1 -b .appdata
|
||||||
|
|
||||||
rm prnt/hpcups/ErnieFilter.{cpp,h} prnt/hpijs/ernieplatform.h
|
|
||||||
|
|
||||||
# hp-check shows 'CUPS incompatible or not running' even if CUPS is running (bug #1456467)
|
# hp-check shows 'CUPS incompatible or not running' even if CUPS is running (bug #1456467)
|
||||||
%patch27 -p1 -b .check-cups
|
%patch27 -p1 -b .check-cups
|
||||||
|
|
||||||
@ -822,6 +830,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
|
|||||||
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 09 2021 Zdenek Dohnal <zdohnal@redhat.com> - 3.21.2-3
|
||||||
|
- remove redundant files
|
||||||
|
|
||||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.21.2-3
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.21.2-3
|
||||||
- Rebuilt for Python 3.10
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (hplip-3.21.2.tar.gz) = 73ba37275cfe34a58b81c9656514e15da67c1a69af5471ad132a1538d324efe640879cb7e60c359915607e41b63e653e7ae757661e553235f6e83e378ab46474
|
SHA512 (hplip-3.21.2-repack.tar.gz) = 294947275e9df31100496a84da2b8a17aa07d12ed7d9e622cd4e68082b4a42f59a20177cca91f42d410bcb31f183fd0c8474d8077c177a565c0eea26134b2418
|
||||||
|
Loading…
Reference in New Issue
Block a user