Accepting request 1065417 from Publishing

OBS-URL: https://build.opensuse.org/request/show/1065417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/diff-pdf?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2023-02-13 15:41:17 +00:00 committed by Git OBS Bridge
commit d4422bd847
3 changed files with 46 additions and 5 deletions

35
diff-pdf.1 Normal file
View File

@ -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 <str>\/\fR] [\fI\,--channel-tolerance <num>\/\fR] [\fI\,--dpi <num>\/\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<str>
output differences to given PDF file
.TP
\fB\-\-channel\-tolerance=\fR<num>
consider channel values to be equal if within specified tolerance
.TP
\fB\-\-dpi=\fR<num>
rasterization resolution (default: 300 dpi)
.TP
\fB\-\-view\fR
view the differences in a window

View File

@ -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 <mpluskal@suse.com>

View File

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