[perl-Date-HolidayParser] Sanitize the package

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 4d3abe2a12b8a5b1c46104704af33655feb7ef9f
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Tue Feb 17 11:12:27 2015 +0100

    Sanitize the package

 perl-Date-HolidayParser.spec |   33 +++++++++++++++++++++++----------
 1 files changed, 23 insertions(+), 10 deletions(-)
---
diff --git a/perl-Date-HolidayParser.spec b/perl-Date-HolidayParser.spec
index 4b3dfcd..e385166 100644
--- a/perl-Date-HolidayParser.spec
+++ b/perl-Date-HolidayParser.spec
@@ -1,17 +1,27 @@
-%global pkgname Date-HolidayParser
-
 Name:           perl-Date-HolidayParser
 Version:        0.41
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Parser for .holiday-files
 License:        GPLv3+ or Artistic
 URL:            http://search.cpan.org/dist/Date-HolidayParser/
-Source0:        http://www.cpan.org/authors/id/Z/ZE/ZERODOGG/%{pkgname}-%{version}.tar.gz
+Source0:        http://www.cpan.org/authors/id/Z/ZE/ZERODOGG/Date-HolidayParser-%{version}.tar.gz
 BuildArch:      noarch
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
 BuildRequires:  perl(Any::Moose)
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(POSIX)
+# Tests only
+BuildRequires:  perl(Data::Dumper)
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(strict)
 BuildRequires:  perl(Test::More)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(warnings)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
 
 %description
 This is a module that parses .holiday-style files. These are files that
@@ -20,26 +30,29 @@ and easy for humans to read, but can be hard to parse because the format
 allows many different ways to write it.
 
 %prep
-%setup -qn %{pkgname}-%{version}
+%setup -qn Date-HolidayParser-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -delete
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%doc Changes COPYING* README
+%license COPYING*
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Feb 17 2015 Petr Šabata <contyk@xxxxxxxxxx> - 0.41-5
+- Sanitize the package
+
 * Mon Sep 01 2014 Jitka Plesnikova <jplesnik@xxxxxxxxxx> - 0.41-4
 - Perl 5.20 rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel





[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux