diff --git a/hplip.spec b/hplip.spec index 2ad10db..6ade90d 100644 --- a/hplip.spec +++ b/hplip.spec @@ -7,7 +7,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.18.6 -Release: 9%{?dist} +Release: 10%{?dist} 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 @@ -15,6 +15,7 @@ Source0: http://downloads.sourceforge.net/sourceforge/hplip/hplip-%{version}.tar Source1: hpcups-update-ppds.sh Source2: copy-deviceids.py Source3: %{name}.appdata.xml +Source4: manpages.tar.gz Patch1: hplip-pstotiff-is-rubbish.patch Patch2: hplip-strstr-const.patch Patch3: hplip-ui-optional.patch @@ -310,7 +311,6 @@ autoreconf --verbose --force --install make %{?_smp_mflags} - %install mkdir -p %{buildroot}%{_bindir} make install DESTDIR=%{buildroot} PYTHON=%{__python3} @@ -412,6 +412,13 @@ rm -f %{buildroot}%{_unitdir}/hplip-printer@.service # window), so don't ship the launcher yet. rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop +# install manpages for hplip and insert into them version number +tar -xzf %{SOURCE4} +sed -i -e "s/{hplip_version}/%{version}/g" ./manpages/* + +mkdir -p %{buildroot}%{_mandir}/man1 +find ./manpages/ -type f -exec install -p -m644 {} %{buildroot}%{_mandir}/man1/ \; + # hp-setup needs to have cups service enabled and running for setups of queues %pre %{_bindir}/systemctl start cups &>/dev/null ||: @@ -504,6 +511,7 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %dir %attr(0775,root,lp) /run/hplip %{_tmpfilesdir}/hplip.conf %{_udevrulesdir}/56-hpmud.rules +%{_mandir}/man1/hp-* %files common %license COPYING @@ -563,6 +571,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio %changelog +* Mon Nov 05 2018 Tomas Korbar - 3.18.6-10 +- 1456436 - Add manpages + * Mon Oct 01 2018 Tomas Korbar - 3.18.6-9 - 1594602 - Fix typos in QMessageBox constructor calls diff --git a/manpages.tar.gz b/manpages.tar.gz new file mode 100644 index 0000000..5be2ba0 Binary files /dev/null and b/manpages.tar.gz differ