update spec for modern rpmbuild

- BR ExtUtils::MakeMaker
- change source link to backpan - it's no longer in cpan
This commit is contained in:
Iain Arnell 2013-02-17 10:42:04 -07:00
parent be2908552b
commit 38e06a2709
1 changed files with 12 additions and 12 deletions

View File

@ -1,20 +1,22 @@
Name: perl-DateTime-Format-IBeat
Version: 0.161
Release: 16%{?dist}
Version: 0.161
Release: 17%{?dist}
Summary: Format times in .beat notation
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/DateTime-Format-IBeat
Source0: http://search.cpan.org/CPAN/authors/id/E/EM/EMARTIN/DateTime-Format-IBeat-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://backpan.perl.org/authors/id/E/EM/EMARTIN/DateTime-Format-IBeat-0.161.tar.gz
BuildArch: noarch
BuildRequires: perl(Class::ISA)
BuildRequires: perl(DateTime) >= 0.18, perl(Test::More) >= 0.47
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Pod) >= 1.00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
No Time Zones, No Geographical Borders
@ -36,10 +38,8 @@ make %{?_smp_mflags}
mv LICENCE LICENSE
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
@ -47,18 +47,18 @@ chmod -R u+w %{buildroot}/*
make test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Artistic COPYING LICENSE Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
* Sun Feb 17 2013 Iain Arnell <iarnell@gmail.com> 0.161-17
- update spec for modern rpmbuild
- BR ExtUtils::MakeMaker
- change source link to backpan - it's no longer in cpan
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.161-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild