commit 3e6fa630dd5ed715efeb9501cae72312f45cbd5e
Author: Paul Howarth <paul(a)city-fan.org>
Date: Thu Jul 2 09:12:29 2020 +0100
Update to 2.24
.gitignore | 3 ++-
perl-PGPLOT.spec | 33 +++++++++++++++++++--------------
sources | 2 +-
3 files changed, 22 insertions(+), 16 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9b49ae2..8aed236 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-PGPLOT-2.21.tar.gz
+/PGPLOT-2.21.tar.gz
+/PGPLOT-2.24.tar.gz
diff --git a/perl-PGPLOT.spec b/perl-PGPLOT.spec
index 76aeb30..c9e34ee 100644
--- a/perl-PGPLOT.spec
+++ b/perl-PGPLOT.spec
@@ -1,24 +1,28 @@
Name: perl-PGPLOT
-Version: 2.21
-Release: 14%{?dist}
+Version: 2.24
+Release: 1%{?dist}
Summary: Perl extension for using the pgplot library
License: GPL+ or Artistic
-URL:
http://search.cpan.org/dist/PGPLOT/
-Source0:
http://search.cpan.org/CPAN/authors/id/K/KG/KGB/PGPLOT-%{version}.tar.gz
+URL:
https://metacpan.org/release/PGPLOT
+Source0:
https://cpan.metacpan.org/authors/id/E/ET/ETJ/PGPLOT-%{version}.tar.gz
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: gcc
+BuildRequires: libpng12-devel
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
+BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::F77)
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(ExtUtils::PkgConfig)
BuildRequires: perl(IO::File)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: pgplot-devel
+BuildRequires: zlib-devel
# Runtime
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
@@ -34,16 +38,14 @@ Allow subroutines in the PGPLOT graphics library to be called from
Perl.
%setup -q -n PGPLOT-%{version}
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
-find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -delete
+find %{buildroot} -type f -name '*.bs' -empty -delete
+%{_fixperms} -c %{buildroot}
%check
#works locally
@@ -52,11 +54,14 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f
{} \;
%files
%license LICENSE
%doc CHANGES HELP README
-%{perl_vendorarch}/*
-%exclude %dir %{perl_vendorarch}/auto/
-%{_mandir}/man3/*
+%{perl_vendorarch}/auto/PGPLOT/
+%{perl_vendorarch}/PGPLOT.pm
+%{_mandir}/man3/PGPLOT.3*
%changelog
+* Wed Jul 1 2020 Paul Howarth <paul(a)city-fan.org> - 2.24-1
+- Update to 2.24
+
* Wed Feb 05 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
2.21-14
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
diff --git a/sources b/sources
index ee62db5..563fadd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-836d8eb09bfcadd5d4edf668a551f17a PGPLOT-2.21.tar.gz
+SHA512 (PGPLOT-2.24.tar.gz) =
d0daca5ac69e48ac94bbecc149b0e4fdab8ef9e81af37534d1b9a63bc2559c21bdb2c698528da4b961fc4d10739144f603fcf3f14644a781546ac041f690d1bc