#5 1456436 - Add manpages
Closed 3 years ago by zdohnal. Opened 5 years ago by tkorbar.
rpms/ tkorbar/hplip manpages  into  master

file modified
+13 -2
@@ -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 @@ 

  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 @@ 

  

  make %{?_smp_mflags}

  

- 

  %install

  mkdir -p %{buildroot}%{_bindir}

  make install DESTDIR=%{buildroot} PYTHON=%{__python3}
@@ -412,6 +412,13 @@ 

  # 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 @@ 

  %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 @@ 

  %config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio

  

  %changelog

+ * Mon Nov 05 2018 Tomas Korbar <tkorbar@redhat.com> - 3.18.6-10

+ - 1456436 - Add manpages

+ 

  * Mon Oct 01 2018 Tomas Korbar <tkorbar@redhat.com> - 3.18.6-9

  - 1594602 - Fix typos in QMessageBox constructor calls

  

empty or binary file added

This pull request adds manpages for hplip executable files. They are mostly build from informations provided by help option.

rebased onto 3356eb7

5 years ago

As mentioned in the bugzilla ticket with corresponding number, it was sent upstream and it is not critical to have in Fedora as downstream patch.

Pull-Request has been closed by zdohnal

3 years ago