Upgrade package version
This commit is contained in:
parent
9ff8c31af3
commit
bbc9bef226
Binary file not shown.
BIN
psutils-2.08.tar.gz
Normal file
BIN
psutils-2.08.tar.gz
Normal file
Binary file not shown.
@ -1,40 +0,0 @@
|
|||||||
diff -up psutils-1.23/configure.paperconf psutils-1.23/configure
|
|
||||||
--- psutils-1.23/configure.paperconf 2014-01-22 10:31:58.000000000 +0100
|
|
||||||
+++ psutils-1.23/configure 2015-05-20 14:25:40.636115433 +0200
|
|
||||||
@@ -15700,7 +15700,7 @@ fi
|
|
||||||
|
|
||||||
|
|
||||||
if test -z "$PAPER"; then
|
|
||||||
- PAPER=paper
|
|
||||||
+ PAPER=paperconf
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
diff -up psutils-1.23/psutil.c.paperconf psutils-1.23/psutil.c
|
|
||||||
--- psutils-1.23/psutil.c.paperconf 2014-01-16 11:20:54.000000000 +0100
|
|
||||||
+++ psutils-1.23/psutil.c 2015-05-29 13:24:12.834350330 +0200
|
|
||||||
@@ -88,13 +87,21 @@ int paper_size(const char *paper_name, d
|
|
||||||
int res = 0;
|
|
||||||
if (paper_name == NULL) /* Use default paper name */
|
|
||||||
paper_name = pgetline(PAPER);
|
|
||||||
- if (paper_name && (cmd = xasprintf(PAPER " --unit=pt --size %s", paper_name)) && (l = pgetline(cmd)))
|
|
||||||
- res = sscanf(l, "%lg %lg", width, height);
|
|
||||||
+ if (paper_name && (cmd = xasprintf(PAPER " -s %s", paper_name)) && (l = pgetline(cmd)))
|
|
||||||
+ {
|
|
||||||
+ for (int i = 0; i < strlen(l); i++)
|
|
||||||
+ {
|
|
||||||
+ if (l[i] == ',')
|
|
||||||
+ {
|
|
||||||
+ l[i] = '.';
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ res = sscanf(l, "%lg %lg", width, height);
|
|
||||||
+ }
|
|
||||||
free(l);
|
|
||||||
free(cmd);
|
|
||||||
return res == 2;
|
|
||||||
}
|
|
||||||
-
|
|
||||||
/* Make a file seekable, using temporary files if necessary */
|
|
||||||
FILE *seekable(FILE *fp)
|
|
||||||
{
|
|
||||||
26
psutils.spec
26
psutils.spec
@ -1,19 +1,27 @@
|
|||||||
|
# Don't generate debuginfo for new versions.
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
Name: psutils
|
Name: psutils
|
||||||
Version: 1.23
|
Version: 2.08
|
||||||
Release: 16
|
Release: 1
|
||||||
Summary: utilities for manipulating PostScript documents
|
Summary: Utilities for manipulating PostScript documents
|
||||||
License: psutils
|
License: psutils
|
||||||
URL: https://github.com/rrthomas/psutils
|
URL: https://github.com/rrthomas/psutils
|
||||||
# wget https://github.com/rrthomas/psutils/archive/v1.23.tar.gz && tar xf v1.23.tar.gz && cd psutils-1.23
|
# wget https://github.com/rrthomas/psutils/archive/v1.23.tar.gz && tar xf v1.23.tar.gz && cd psutils-1.23
|
||||||
# then run:
|
# then run:
|
||||||
# ./bootstrap && autoreconf -vfi && cd .. && tar -cvf psutils-1.23.tar.gz psutils-1.23
|
# ./bootstrap && autoreconf -vfi && cd .. && tar -cvf psutils-1.23.tar.gz psutils-1.23
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Patch0: psutils-paperconf.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc perl-generators
|
BuildRequires: gcc
|
||||||
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl(File::Basename)
|
||||||
|
BuildRequires: perl(Getopt::Long)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
Requires: /usr/bin/paperconf
|
Requires: /usr/bin/paperconf
|
||||||
Provides: bundled(gnulib) psutils-perl
|
Provides: bundled(gnulib)
|
||||||
Obsoletes: psutils-perl
|
Provides: psutils-perl = %{version}-%{release}
|
||||||
|
Obsoletes: psutils-perl < %{version}-%{release}
|
||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
@ -39,6 +47,7 @@ make %{?_smp_mflags}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -46,5 +55,8 @@ make %{?_smp_mflags}
|
|||||||
%{_mandir}/man1/*1*
|
%{_mandir}/man1/*1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 06 2022 misaka00251 <misaka00251@misakanet.cn> - 2.08-1
|
||||||
|
- Upgrade package version
|
||||||
|
|
||||||
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.23-15
|
* Tue Dec 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.23-15
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user