use perl_default_filter
- clean up spec for modern rpmbuild
This commit is contained in:
parent
9d51734a07
commit
e3eb641a3a
@ -13,14 +13,13 @@
|
||||
Name: perl-DateTime-Format-Builder
|
||||
# 0.80 in reality, but rpm can't get it
|
||||
Version: 0.8000
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Create DateTime parser classes and objects
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/DateTime-Format-Builder
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Builder-%{real_version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
@ -49,6 +48,8 @@ Provides: perl(DateTime::Format::Builder) = %{version}
|
||||
# not explicitly picked up
|
||||
Requires: perl(DateTime::Format::Strptime)
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%description
|
||||
DateTime::Format::Builder creates DateTime parsers. Many string formats of
|
||||
dates and times are simple and just require a basic regular expression to
|
||||
@ -90,8 +91,6 @@ 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} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
@ -103,10 +102,6 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
make test
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING Artistic Changes AUTHORS CREDITS LICENSE README examples/ t/
|
||||
@ -115,6 +110,10 @@ rm -rf %{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Dec 12 2010 Iain Arnell <iarnell@gmail.com> 0.8000-3
|
||||
- use perl_default_filter
|
||||
- clean up spec for modern rpmbuild
|
||||
|
||||
* Fri May 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.8000-2
|
||||
- add provides with rpm version for other packages
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user