Fix could not run paper command
This commit is contained in:
parent
3de0f45c1f
commit
dfb960f093
12
psutils-paperconf.patch
Normal file
12
psutils-paperconf.patch
Normal file
@ -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;
|
||||
@ -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 <wu_lei@hoperun.com> - 2.08-2
|
||||
- Fix could not run 'paper' command
|
||||
|
||||
* Fri May 06 2022 misaka00251 <misaka00251@misakanet.cn> - 2.08-1
|
||||
- Upgrade package version
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user