[perl-PGPLOT] Specify all build requirements

Paul Howarth pghmcfc at rpmfusion.org
Fri Oct 21 15:47:08 CEST 2016


commit 7b59dfefc9d9262ae71e6cb02e3008c8453f0807
Author: Paul Howarth <paul at city-fan.org>
Date:   Fri Oct 21 14:46:40 2016 +0100

    Specify all build requirements

 perl-PGPLOT.spec | 30 +++++++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 5 deletions(-)
---
diff --git a/perl-PGPLOT.spec b/perl-PGPLOT.spec
index b8a0ce7..54faf1a 100644
--- a/perl-PGPLOT.spec
+++ b/perl-PGPLOT.spec
@@ -1,13 +1,28 @@
 Name: perl-PGPLOT
 Version: 2.21
-Release: 3%{?dist}
+Release: 4%{?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
-BuildRequires: perl(ExtUtils::MakeMaker)
+# Build
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: gcc
+BuildRequires: make
+BuildRequires: perl-devel
+BuildRequires: perl-generators
+BuildRequires: perl(Config)
 BuildRequires: perl(ExtUtils::F77)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(IO::File)
+BuildRequires: perl(lib)
+BuildRequires: perl(strict)
 BuildRequires: pgplot-devel
+# Runtime
+BuildRequires: perl(DynaLoader)
+BuildRequires: perl(Exporter)
+# Dependencies
 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %{?perl_default_filter}
@@ -27,21 +42,26 @@ 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 {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
 %{_fixperms} $RPM_BUILD_ROOT/*
 
-#%check
+%check
 #works locally
 #make test
 
 %files
-%doc CHANGES HELP LICENSE README
+%license LICENSE
+%doc CHANGES HELP README
 %{perl_vendorarch}/*
 %exclude %dir %{perl_vendorarch}/auto/
 %{_mandir}/man3/*
 
 %changelog
+* Fri Oct 21 2016 Paul Howarth <paul at city-fan.org> - 2.21-4
+- Specify all build requirements
+- Don't need to remove empty directories from the buildroot
+- Use %%license
+
 * Sun Aug 31 2014 Sérgio Basto <sergio at serjux.com> - 2.21-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the rpmfusion-commits mailing list