From 7727e44ae0fc0de10ac6dc3e2696a0d4af27f09e Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Tue, 27 Sep 2016 12:00:42 +0100
Subject: Package LICENSE file

Also:
- Drop legacy spec file elements not needed for EL-6 onwards
- Simplify find command using -delete
---
 perl-SUPER.spec | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/perl-SUPER.spec b/perl-SUPER.spec
index efb2a37..252786d 100644
--- a/perl-SUPER.spec
+++ b/perl-SUPER.spec
@@ -1,14 +1,15 @@
 Name:          perl-SUPER
 Version:       1.20141117
-Release:       5%{?dist}
+Release:       6%{?dist}
 Summary:       Sane superclass method dispatcher
 License:       GPL+ or Artistic
-Group:         Development/Libraries
 URL:           http://search.cpan.org/dist/SUPER/
 Source0:       
http://search.cpan.org/CPAN/authors/id/C/CH/CHROMATIC/SUPER-%{version}.tar.gz
-BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
 BuildArch:     noarch
 # =============== Module Build =================
+BuildRequires: coreutils
+BuildRequires: findutils
+BuildRequires: make
 BuildRequires: perl
 BuildRequires: perl-generators
 BuildRequires: perl(ExtUtils::MakeMaker)
@@ -41,23 +42,29 @@ perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name .packlist -delete
 %{_fixperms} %{buildroot}
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
+%if 0%{?_licensedir:1}
+%license LICENSE
+%else
+%doc LICENSE
+%endif
 %doc Changes README
 %{perl_vendorlib}/SUPER.pm
 %{_mandir}/man3/SUPER.3*
 
 %changelog
+* Tue Sep 27 2016 Paul Howarth <p...@city-fan.org> - 1.20141117-6
+- Package LICENSE file
+- Drop legacy spec file elements not needed for EL-6 onwards
+- Simplify find command using -delete
+
 * Sun May 15 2016 Jitka Plesnikova <jples...@redhat.com> - 1.20141117-5
 - Perl 5.24 rebuild
 
-- 
cgit v0.12


        
http://pkgs.fedoraproject.org/cgit/perl-SUPER.git/commit/?h=perl-SUPER-1.20141117-6.fc25&id=7727e44ae0fc0de10ac6dc3e2696a0d4af27f09e
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to