From b5a92f7b9fbad41acd13d16d39b0bbcf737b711e77956a8adbf3c56efb3ae150 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 13 Feb 2023 10:27:28 +0000 Subject: [PATCH] Accepting request 1065264 from home:munix9:branches:Publishing - Pre-create diff-pdf.1 with help2man to work around GTK+ DISPLAY errors (boo#1180471) OBS-URL: https://build.opensuse.org/request/show/1065264 OBS-URL: https://build.opensuse.org/package/show/Publishing/diff-pdf?expand=0&rev=15 --- diff-pdf.1 | 35 +++++++++++++++++++++++++++++++++++ diff-pdf.changes | 6 ++++++ diff-pdf.spec | 10 +++++----- 3 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 diff-pdf.1 diff --git a/diff-pdf.1 b/diff-pdf.1 new file mode 100644 index 0000000..4fecd84 --- /dev/null +++ b/diff-pdf.1 @@ -0,0 +1,35 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. +.TH DIFF-PDF "1" "February 2023" "diff-pdf 0.5" "User Commands" +.SH NAME +diff-pdf \- Simple PDF comparison tool +.SH SYNOPSIS +.B diff-pdf +[\fI\,-h\/\fR] [\fI\,-v\/\fR] [\fI\,-s\/\fR] [\fI\,-m\/\fR] [\fI\,-g\/\fR] [\fI\,--output-diff \/\fR] [\fI\,--channel-tolerance \/\fR] [\fI\,--dpi \/\fR] [\fI\,--view\/\fR] \fI\,file1.pdf file2.pdf\/\fR +.SH DESCRIPTION +.TP +\fB\-h\fR, \fB\-\-help\fR +show this help message +.TP +\fB\-v\fR, \fB\-\-verbose\fR +be verbose +.TP +\fB\-s\fR, \fB\-\-skip\-identical\fR +only output pages with differences +.TP +\fB\-m\fR, \fB\-\-mark\-differences\fR +additionally mark differences on left side +.TP +\fB\-g\fR, \fB\-\-grayscale\fR +only differences will be in color, unchanged parts will show as gray +.TP +\fB\-\-output\-diff=\fR +output differences to given PDF file +.TP +\fB\-\-channel\-tolerance=\fR +consider channel values to be equal if within specified tolerance +.TP +\fB\-\-dpi=\fR +rasterization resolution (default: 300 dpi) +.TP +\fB\-\-view\fR +view the differences in a window diff --git a/diff-pdf.changes b/diff-pdf.changes index 38ab708..5bc1ea8 100644 --- a/diff-pdf.changes +++ b/diff-pdf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Feb 13 06:20:28 UTC 2023 - munix9@googlemail.com + +- Pre-create diff-pdf.1 with help2man to work around GTK+ DISPLAY + errors (boo#1180471) + ------------------------------------------------------------------- Wed Apr 28 07:54:00 UTC 2021 - Martin Pluskal diff --git a/diff-pdf.spec b/diff-pdf.spec index 5d29743..108d674 100644 --- a/diff-pdf.spec +++ b/diff-pdf.spec @@ -1,7 +1,7 @@ # # spec file for package diff-pdf # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,10 +24,10 @@ License: GPL-2.0-only AND LGPL-2.0-only Group: Productivity/Publishing/PDF URL: https://vslavik.github.io/diff-pdf/ Source0: %{name}-%{version}.tar.gz +Source1: %{name}.1 BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ -BuildRequires: help2man BuildRequires: pkgconfig BuildRequires: wxWidgets-devel BuildRequires: pkgconfig(cairo) @@ -49,9 +49,9 @@ diff-pdf is a simple tool for comparing two PDF files. %install %make_install -install -d %{buildroot}%{_mandir}/man1/ -help2man -N -n "%{summary}" --version-string="%{version}" --no-discard-stderr \ - -o %{buildroot}%{_mandir}/man1/%{name}.1 %{buildroot}%{_bindir}/%{name} +#help2man -N -n "%%{summary}" --version-string="%%{version}" --no-discard-stderr \ +# -o %%{buildroot}%%{_mandir}/man1/%%{name}.1 %%{buildroot}%%{_bindir}/%%{name} +install -D -m 0644 -t %{buildroot}%{_mandir}/man1/ %{SOURCE1} %files %license COPYING COPYING.icons