- Upsteam update.

- Build in subdir to work-around rpm disturbing testsuite.
- Rework BRs.
This commit is contained in:
corsepiu 2009-06-17 08:20:46 +00:00
parent 6f60069398
commit d98643162f
4 changed files with 24 additions and 22 deletions

View File

@ -1 +1 @@
File-Find-Rule-Perl-1.04.tar.gz File-Find-Rule-Perl-1.06.tar.gz

View File

@ -1,10 +0,0 @@
diff -Naur File-Find-Rule-Perl-1.04.orig/META.yml File-Find-Rule-Perl-1.04/META.yml
--- File-Find-Rule-Perl-1.04.orig/META.yml 2008-05-14 12:28:07.000000000 +0200
+++ File-Find-Rule-Perl-1.04/META.yml 2009-02-27 08:27:07.000000000 +0100
@@ -19,5 +19,5 @@
- t
requires:
File::Find::Rule: 0.20
- perl: 5.005
+ perl: 5.00503
version: 1.04

View File

@ -1,13 +1,11 @@
Name: perl-File-Find-Rule-Perl Name: perl-File-Find-Rule-Perl
Version: 1.04 Version: 1.06
Release: 4%{?dist} Release: 1%{?dist}
Summary: Common rules for searching for Perl things Summary: Common rules for searching for Perl things
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Find-Rule-Perl/ URL: http://search.cpan.org/dist/File-Find-Rule-Perl/
Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-Find-Rule-Perl-%{version}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-Find-Rule-Perl-%{version}.tar.gz
# META.yml has wrong minimum perl version
Patch0: File-Find-Rule-Perl-1.04.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -16,26 +14,33 @@ BuildArch: noarch
BuildRequires: perl(File::Find::Rule) >= 0.20 BuildRequires: perl(File::Find::Rule) >= 0.20
BuildRequires: perl(File::Spec) >= 0.82 BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(Test::More) >= 0.47 BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Params::Util) >= 0.38
BuildRequires: perl(Parse::CPAN::Meta) >= 0.04
# For improved tests # For improved tests
BuildRequires: perl(Test::Pod) >= 1.00 BuildRequires: perl(Perl::MinimumVersion) >= 1.20
BuildRequires: perl(Test::MinimumVersion) >= 0.007 BuildRequires: perl(Test::MinimumVersion) >= 0.008
BuildRequires: perl(Test::CPAN::Meta) >= 0.07 BuildRequires: perl(Test::Pod) >= 1.26
BuildRequires: perl(Test::CPAN::Meta) >= 0.12
%description %description
Common rules for searching for Perl things. Common rules for searching for Perl things.
%prep %prep
%setup -q -n File-Find-Rule-Perl-%{version} %setup -q -T -c
%patch0 -p1 %setup -q -T -D -a0
%build %build
cd File-Find-Rule-Perl-%{version}
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
cd ..
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
cd File-Find-Rule-Perl-%{version}
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
cd ..
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/* chmod -R u+w $RPM_BUILD_ROOT/*
@ -44,15 +49,22 @@ chmod -R u+w $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%check %check
cd File-Find-Rule-Perl-%{version}
make test AUTOMATED_TESTING=1 make test AUTOMATED_TESTING=1
cd ..
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes LICENSE %doc File-Find-Rule-Perl-%{version}/Changes File-Find-Rule-Perl-%{version}/LICENSE
%{perl_vendorlib}/File %{perl_vendorlib}/File
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Jun 17 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.06-1
- Upsteam update.
- Build in subdir to work-around rpm disturbing testsuite.
- Rework BRs.
* Fri Feb 27 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.04-4 * Fri Feb 27 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.04-4
- Adjust minimum perl version in META.yml (Add File-Find-Rule-Perl-1.04.diff). - Adjust minimum perl version in META.yml (Add File-Find-Rule-Perl-1.04.diff).

View File

@ -1 +1 @@
ab66b7829320ead71ee0b09e13726d26 File-Find-Rule-Perl-1.04.tar.gz 6203f16bed4d0740a7fcc5515ad965a0 File-Find-Rule-Perl-1.06.tar.gz