rebase to 3.17.6

This commit is contained in:
Zdenek Dohnal 2017-08-04 14:45:23 +02:00
commit 12bca7af1f
6 changed files with 40 additions and 32 deletions

1
.gitignore vendored
View File

@ -81,3 +81,4 @@ hplip-3.10.6.tar.gz
/hplip-3.16.10.tar.gz /hplip-3.16.10.tar.gz
/hplip-3.16.11.tar.gz /hplip-3.16.11.tar.gz
/hplip-3.17.4.tar.gz /hplip-3.17.4.tar.gz
/hplip-3.17.6.tar.gz

View File

@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEABECAAYFAljty0kACgkQc9dwzaWQR7mRAwCcCeOnZPH22yBMH8TKVCAk5vRC
tmQAn3uTUnklynBYgqC18ZuHQYhMw1+h
=UQnM
-----END PGP SIGNATURE-----

7
hplip-3.17.6.tar.gz.asc Normal file
View File

@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEABECAAYFAlkw9OYACgkQc9dwzaWQR7mVOQCgxM3Lh1itLq5ST456mgq4RosT
brAAoJtZIVXXp+A/HQV0uyG7ljJ4SYKJ
=32fJ
-----END PGP SIGNATURE-----

25
hplip-rebase.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
if [ "$1" == "-h" -o "$1" == "--help" ]
then
echo "Usage: ./hplip-rebase.sh X.Y.Z"
echo " X.Y.Z - new hplip version"
exit 0
fi
wget -O hplip-plugin.run http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-$1-plugin.run
if [ $? -gt 0 ]
then
echo "Error while downloading plugin. Check version passed by argument or internet connection. For usage run script with -h or --help argument."
rm hplip-plugin.run
exit 1
fi
rm hplip-plugin.run
fedpkg mockbuild
if [ $? -gt 0 ]
then
echo "Error during mockbuild."
exit 1
fi
exit 0

View File

@ -4,16 +4,10 @@
%filter_setup %filter_setup
} }
# Hp-plugin-check is a switch, which allows testing if new hp-plugin is already available - SET TO 1 ONLY FOR LOCAL BUILDS WHEN REBASING,
# NO COMMITS WITH HPPLUGINCHECK 1 (lately HP ships new plugins a few days after new release, which makes hp-plugin non-functional
# during this time). Any other time it should be set to 0.
%define hpplugincheck 0
%define urlplugin http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/%{name}-%{version}-plugin.run
Summary: HP Linux Imaging and Printing Project Summary: HP Linux Imaging and Printing Project
Name: hplip Name: hplip
Version: 3.17.4 Version: 3.17.6
Release: 3%{?dist} Release: 1%{?dist}
License: GPLv2+ and MIT and BSD License: GPLv2+ and MIT and BSD
Url: http://hplipopensource.com/ Url: http://hplipopensource.com/
@ -72,11 +66,6 @@ BuildRequires: python3-cups, cups
# macros: %%{_tmpfilesdir}, %%{_udevrulesdir} # macros: %%{_tmpfilesdir}, %%{_udevrulesdir}
BuildRequires: systemd BuildRequires: systemd
# if hpplugincheck is on, it will need wget as BuildRequire. USE ONLY FOR TESTING, NO COMMITS WITH HPPLUGINCHECK = 1
%if "%{hpplugincheck}" == "1"
BuildRequires: wget
%endif
# hpijs was merged into main package in 3.15.7-2 # hpijs was merged into main package in 3.15.7-2
Obsoletes: hpijs < 1:%{version}-%{release} Obsoletes: hpijs < 1:%{version}-%{release}
Provides: hpijs = 1:%{version}-%{release} Provides: hpijs = 1:%{version}-%{release}
@ -345,17 +334,6 @@ rm -f %{buildroot}%{_unitdir}/hplip-printer@.service
# window), so don't ship the launcher yet. # window), so don't ship the launcher yet.
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
%check
%if "%{hpplugincheck}" == "1"
wget -O hp-plugin.run %{urlplugin}
%if "$?" == "0"
echo "New plugin is not available yet. Rerun build later."
rm hp-plugin.run
exit 1
%endif
rm hp-plugin.run
%endif
%files %files
%doc COPYING doc/* %doc COPYING doc/*
# ex-hpijs # ex-hpijs
@ -494,6 +472,10 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%changelog %changelog
* Fri Aug 04 2017 Zdenek Dohnal <zdohnal@redhat.com> - 3.17.6-1
- rebase to 3.17.6
- adding hplip-rebase.sh script for testing if plugin is available - removing its testing from spec
* Mon May 29 2017 Zdenek Dohnal <zdohnal@redhat.com> - 3.17.4-3 * Mon May 29 2017 Zdenek Dohnal <zdohnal@redhat.com> - 3.17.4-3
- 1456467 - hp-check shows 'CUPS incompatible or not running' even if CUPS is running - 1456467 - hp-check shows 'CUPS incompatible or not running' even if CUPS is running

View File

@ -1 +1 @@
SHA512 (hplip-3.17.4.tar.gz) = ea295502df5b6c44839a7c03a725dc7475d256994eac2a7950058a68c805ca4942611df2688384c8acbc6551009841bb4623e7a3e7c8c0b16f44a2215a7316e6 SHA512 (hplip-3.17.6.tar.gz) = 370fa0e07f4f5b4dc4a6f52b02271102894da98bc902912ff1770a9e5029d486227f4170ff90a063c686d23e8bd075961073ecc59961419a226a850db9e71738