From dfb960f0939f55785f52b5644ff553143052870b Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Sun, 7 Apr 2024 17:34:11 +0800 Subject: [PATCH] Fix could not run paper command --- psutils-paperconf.patch | 12 ++++++++++++ psutils.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 psutils-paperconf.patch diff --git a/psutils-paperconf.patch b/psutils-paperconf.patch new file mode 100644 index 0000000..6c45390 --- /dev/null +++ b/psutils-paperconf.patch @@ -0,0 +1,12 @@ +diff -Nur a/PSUtils.pm b/PSUtils.pm +--- a/PSUtils.pm 2024-04-07 16:45:42.263733801 +0800 ++++ b/PSUtils.pm 2024-04-07 16:46:22.289733801 +0800 +@@ -60,7 +60,7 @@ + # Get the size of the given paper, or the default paper if no argument given. + sub paper { + my ($cmd, $silent) = @_; +- unshift @{$cmd}, "paper"; ++ unshift @{$cmd}, "paperconf"; + my $out; + run3 $cmd, undef, \$out, $silent ? \undef : undef, {return_if_system_error=>1}; + Die("could not run `paper' command") if $? == -1; diff --git a/psutils.spec b/psutils.spec index e7ea24f..491bf48 100644 --- a/psutils.spec +++ b/psutils.spec @@ -3,7 +3,7 @@ Name: psutils Version: 2.08 -Release: 1 +Release: 2 Summary: Utilities for manipulating PostScript documents License: psutils URL: https://github.com/rrthomas/psutils @@ -11,6 +11,7 @@ URL: https://github.com/rrthomas/psutils # then run: # ./bootstrap && autoreconf -vfi && cd .. && tar -cvf psutils-1.23.tar.gz psutils-1.23 Source0: %{name}-%{version}.tar.gz +Patch0: psutils-paperconf.patch BuildRequires: gcc BuildRequires: perl-generators @@ -55,6 +56,9 @@ make %{?_smp_mflags} %{_mandir}/man1/*1* %changelog +* Sun Apr 07 2024 wulei - 2.08-2 +- Fix could not run 'paper' command + * Fri May 06 2022 misaka00251 - 2.08-1 - Upgrade package version