Spec clean-up

- Drop redundant buildreq perl(Class::ISA)
- Make %files list more explicit
- Don't use macros for commands
- Use tabs
epel9
Paul Howarth 13 years ago
parent da4d5d7da0
commit 176122eb39

1
.gitignore vendored

@ -0,0 +1 @@
/DateTime-Calendar-Mayan-[0-9.]*.tar.gz

@ -1,45 +1,38 @@
Name: perl-DateTime-Calendar-Mayan Name: perl-DateTime-Calendar-Mayan
Version: 0.0601 Version: 0.0601
Release: 9%{?dist} Release: 10%{?dist}
# lib/DateTime/Calendar/Mayan.pod -> GPL+ or Artistic License: GPL+ or Artistic
License: GPL+ or Artistic Group: Development/Libraries
Group: Development/Libraries Summary: Mayan Long Count Calendar
Summary: Mayan Long Count Calendar Url: http://search.cpan.org/dist/DateTime-Calendar-Mayan
Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/DateTime-Calendar-Mayan-%{version}.tar.gz Source: http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/DateTime-Calendar-Mayan-%{version}.tar.gz
Url: http://search.cpan.org/dist/DateTime-Calendar-Mayan BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRequires: perl(DateTime) >= 0.15
BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Class::ISA) BuildRequires: perl(Params::Validate) >= 0.64
BuildRequires: perl(DateTime) >= 0.15 BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Params::Validate) >= 0.64
# testing
BuildRequires: perl(Test::More)
%description %description
An implementation of the Mayan Long Count, Haab, and Tzolkin calendars An implementation of the Mayan Long Count, Haab, and Tzolkin calendars
as defined in "Calendrical Calculations The Millennium Edition". as defined in "Calendrical Calculations The Millennium Edition".
Supplemented by "Frequently Asked Questions about Calendars". Supplemented by "Frequently Asked Questions about Calendars".
%prep %prep
%setup -q -n DateTime-Calendar-Mayan-%{version} %setup -q -n DateTime-Calendar-Mayan-%{version}
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot} make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
%{_fixperms} %{buildroot}
%{_fixperms} %{buildroot}/*
%check %check
make test make test
@ -50,10 +43,17 @@ rm -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc README Changes LICENSE Todo %doc README Changes LICENSE Todo
%{perl_vendorlib}/* %{perl_vendorlib}/DateTime/
%{_mandir}/man3/*.3* %{_mandir}/man3/DateTime::Calendar::Mayan.3pm*
%changelog %changelog
* Mon Jan 23 2012 Paul Howarth <paul@city-fan.org> - 0.0601-10
- Spec clean-up:
- Drop redundant buildreq perl(Class::ISA)
- Make %%files list more explicit
- Don't use macros for commands
- Use tabs
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0601-9 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0601-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
@ -67,21 +67,20 @@ rm -rf %{buildroot}
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.0601-5 * Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.0601-5
- 661697 rebuild for fixing problems with vendorach/lib - Rebuild to fix problems with vendorarch/lib (#661697)
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.0601-4 * Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.0601-4
- Mass rebuild with perl-5.12.0 - Mass rebuild with perl-5.12.0
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.0601-3 * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.0601-3
- rebuild against perl 5.10.1 - Rebuild against perl 5.10.1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0601-2 * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0601-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Mon May 18 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.0601-1 * Mon May 18 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.0601-1
- submission - Submission
* Mon May 18 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.0601-0
- initial RPM packaging
- generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)
* Mon May 18 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.0601-0
- Initial RPM packaging
- Generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.8)

Loading…
Cancel
Save