parent
5b64bd5a2c
commit
c486bfaa31
@ -0,0 +1,62 @@
|
||||
Name: perl-DateTime-Calendar-Mayan
|
||||
Version: 0.0601
|
||||
Release: 1%{?dist}
|
||||
# lib/DateTime/Calendar/Mayan.pod -> GPL+ or Artistic
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
Summary: Mayan Long Count Calendar
|
||||
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_u} -n)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: perl(DateTime) >= 0.15
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Module::Build::Compat)
|
||||
BuildRequires: perl(Params::Validate) >= 0.64
|
||||
# testing
|
||||
BuildRequires: perl(Test::More)
|
||||
|
||||
%description
|
||||
An implementation of the Mayan Long Count, Haab, and Tzolkin calendars
|
||||
as defined in "Calendrical Calculations The Millennium Edition".
|
||||
Supplemented by "Frequently Asked Questions about Calendars".
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n DateTime-Calendar-Mayan-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
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} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README Changes LICENSE Todo
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*.3*
|
||||
|
||||
%changelog
|
||||
* Mon May 18 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.0601-1
|
||||
- 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)
|
||||
|
Loading…
Reference in new issue