Notification time stamped 2019-10-24 14:50:31 UTC

From d716d576f0f8a8acd98e7f7f2b758db45b3182e0 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Oct 24 2019 14:49:53 +0000
Subject: Spec tweaks for EPEL-8


- Use author-independent source URL
- Use %{make_build} and %{make_install}
- Fix permissions verbosely
- Make %files list more explicit

---

diff --git a/perl-Sub-Infix.spec b/perl-Sub-Infix.spec
index 5302dbf..87aede6 100644
--- a/perl-Sub-Infix.spec
+++ b/perl-Sub-Infix.spec
@@ -1,31 +1,31 @@
 Name:           perl-Sub-Infix
 Version:        0.004
-Release:        9%{?dist}
+Release:        10%{?dist}
 Summary:        Create a fake infix operator
 License:        GPL+ or Artistic
 URL:            https://metacpan.org/release/Sub-Infix
-Source0:        
https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Sub-Infix-%{version}.tar.gz
+Source0:        
https://cpan.metacpan.org/modules/by-module/Sub/Sub-Infix-%{version}.tar.gz
 BuildArch:      noarch
-
-BuildRequires:  %{__perl}
-BuildRequires:  %{__make}
-
-BuildRequires:  perl-interpreter >= 0:5.006
+# Build
+BuildRequires:  coreutils
+BuildRequires:  make
 BuildRequires:  perl-generators
+BuildRequires:  perl-interpreter >= 0:5.006
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Module
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(Exporter)
-BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.17
-BuildRequires:  perl(Test::Fatal)
-BuildRequires:  perl(Test::More) >= 0.47
 BuildRequires:  perl(overload)
 BuildRequires:  perl(strict)
 BuildRequires:  perl(warnings)
-
-# optional
+# Optional Functionality
 BuildRequires:  perl(Scalar::Util)
 Recommends:     perl(Scalar::Util)
-
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+# Test Suite
+BuildRequires:  perl(Test::Fatal)
+BuildRequires:  perl(Test::More) >= 0.47
+# Dependencies
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Sub::Infix creates fake infix operators using overloading. It doesn't use
@@ -35,24 +35,30 @@ source filters, or Devel::Declare, or any of that magic.
 %setup -q -n Sub-Infix-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
+%{make_build}
 
 %install
-%{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+%{make_install}
+%{_fixperms} -c %{buildroot}
 
 %check
 make test
 
 %files
-%doc Changes README CREDITS
 %license COPYRIGHT LICENSE
-%{perl_vendorlib}/*
-%{_mandir}/man3/*
+%doc Changes README CREDITS
+%{perl_vendorlib}/Sub/
+%{_mandir}/man3/Sub::Infix.3*
 
 %changelog
+* Thu Oct 24 2019 Paul Howarth <p...@city-fan.org> - 0.004-10
+- Spec tweaks for EPEL-8
+  - Use author-independent source URL
+  - Use %%{make_build} and %%{make_install}
+  - Fix permissions verbosely
+  - Make %%files list more explicit
+
 * Fri Jul 26 2019 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.004-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
 


        
https://src.fedoraproject.org/rpms/perl-Sub-Infix/c/d716d576f0f8a8acd98e7f7f2b758db45b3182e0?branch=epel8
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org

Reply via email to