Update dependencies. Use DESTDIR rather than PERL_INSTALL_ROOT. Dont use macros for commands. Dont need to remove empty directories from the buildroot.

Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
epel9
Marcela Mašláňová 12 years ago
parent f9a4bac667
commit fc5d7ce6e2

@ -1,22 +1,33 @@
Name: perl-Test-Base
Version: 0.60
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Data Driven Testing Framework
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Test-Base/
Source0: http://www.cpan.org/authors/id/I/IN/INGY/Test-Base-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Path)
BuildRequires: perl(lib)
BuildRequires: perl(Spiffy) >= 0.30
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.62
BuildRequires: perl(Test::Tester)
BuildRequires: perl(Text::Diff) >= 0.35
BuildRequires: perl(YAML)
Requires: perl(Text::Diff) >= 0.35
Requires: perl(Data::Dumper)
Requires: perl(File::Path)
Requires: perl(Filter::Util::Call)
Requires: perl(LWP::Simple)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(MIME::Base64)
Requires: perl(Text::Diff) >= 0.35
Requires: perl(Test::Deep)
Requires: perl(YAML)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
Testing is usually the ugly part of Perl module authoring. Perl gives you a
@ -29,14 +40,13 @@ own framework by subclassing Test::Builder, but that is not trivial.
%setup -q -n Test-Base-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
@ -49,6 +59,12 @@ make test
%{_mandir}/man3/*
%changelog
* Thu Nov 08 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.60-6
- Update dependencies
- Use DESTDIR rather than PERL_INSTALL_ROOT
- Don't use macros for commands
- Don't need to remove empty directories from the buildroot
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.60-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

Loading…
Cancel
Save