[perl-File-Modified] Perl 5.20 rebuild

Petr Šabata psabata at fedoraproject.org
Thu Nov 20 12:58:16 UTC 2014


commit a15e850c2a275653135c43cd4c0b0b10f3817a58
Author: Petr Šabata <contyk at redhat.com>
Date:   Thu Nov 20 13:58:07 2014 +0100

    Perl 5.20 rebuild

 .gitignore              |    1 +
 perl-File-Modified.spec |   56 +++++++++++++++-------------------------------
 sources                 |    2 +-
 tests.patch             |   31 --------------------------
 4 files changed, 20 insertions(+), 70 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 87a10fc..b5c5597 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 File-Modified-0.07.tar.gz
+/File-Modified-0.09.tar.gz
diff --git a/perl-File-Modified.spec b/perl-File-Modified.spec
index fa5b002..ae05fc3 100644
--- a/perl-File-Modified.spec
+++ b/perl-File-Modified.spec
@@ -1,26 +1,26 @@
 Name:           perl-File-Modified
-Version:        0.07
-Release:        20%{?dist}
+Version:        0.09
+Release:        1%{?dist}
 Summary:        Checks intelligently if files have changed
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/File-Modified/
-Source0:        http://www.cpan.org/authors/id/C/CO/CORION/File-Modified-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://www.cpan.org/authors/id/N/NE/NEILB/File-Modified-%{version}.tar.gz
 BuildArch:      noarch
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-
-# make TODO tests fail properly :)
-Patch0:         tests.patch
-
-# core
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(Test::More)
+# Build
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
+BuildRequires:  perl(base)
 BuildRequires:  perl(Digest::MD5)
-# tests
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+# Tests only
+BuildRequires:  perl(Test::More)
 BuildRequires:  perl(Digest::MD2)
 BuildRequires:  perl(Digest::SHA1)
-BuildRequires:  perl(Test::Exception)
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
+Requires:       perl(Digest::MD5)
 
 %description
 The Modified module is intended as a simple method for programs to detect
@@ -31,42 +31,22 @@ cannot be loaded.
 
 %prep
 %setup -q -n File-Modified-%{version}
-%patch0
-
-# source cleanup
-find . -type f -exec chmod -c -x {} \;
+find . -type f -exec chmod -c -x {} +
 sed -i 's/\r//' README bug.txt
 
-# hey, you guys shouldn't be here!
-# http://rt.cpan.org/Ticket/Display.html?id=26843
-find . -type f -name .cvsignore -exec rm -v {} \;
-sed -i '/^.*cvsignore$/d' MANIFEST
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
-find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
-
+make pure_install DESTDIR=%{buildroot}
 %{_fixperms} %{buildroot}/*
 
 %check
-# we expect two tests to be skipped -- perl(Digest) is _always_ installed
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
-# note: example/ deliberately left out -- useless
-%doc bug.txt Changes MANIFEST.skip README t/
+%doc bug.txt Changes README example
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
diff --git a/sources b/sources
index b706420..bfed6cc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-271a991b96ccbdaeb7098272c9f97d51  File-Modified-0.07.tar.gz
+9eda150b1f8ab00a6809326b4389e9f2  File-Modified-0.09.tar.gz



More information about the perl-devel mailing list