|
|
3fa11e2 |
Name: perl-Date-Pcalc
|
|
|
3fa11e2 |
Version: 1.2
|
|
|
9359bc2 |
Release: 4%{?dist}
|
|
|
3fa11e2 |
Summary: Gregorian calendar date calculations
|
|
|
044c071 |
License: GPL+ or Artistic
|
|
|
3fa11e2 |
Group: Development/Libraries
|
|
|
3fa11e2 |
URL: http://search.cpan.org/dist/Date-Pcalc/
|
|
|
3fa11e2 |
Source0: http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/Date-Pcalc-%{version}.tar.gz
|
|
|
3fa11e2 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
3fa11e2 |
BuildArch: noarch
|
|
|
3fa11e2 |
BuildRequires: %{_bindir}/iconv
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%description
|
|
|
3fa11e2 |
This package consists of a Perl module for all kinds of date calculations based
|
|
|
3fa11e2 |
on the Gregorian calendar (the one used in all western countries today),
|
|
|
3fa11e2 |
thereby complying with all relevant norms and standards: ISO/R 2015-1971,
|
|
|
3fa11e2 |
DIN 1355 and, to some extent, ISO 8601 (where applicable).
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%prep
|
|
|
3fa11e2 |
%setup -q -n Date-Pcalc-%{version}
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%build
|
|
|
3fa11e2 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
3fa11e2 |
make %{?_smp_mflags}
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%install
|
|
|
3fa11e2 |
rm -rf $RPM_BUILD_ROOT
|
|
|
3fa11e2 |
%{_bindir}/iconv --from-code=ISO-8859-1 --to-code=UTF-8 blib/man3/Date::Pcalc.3pm -o blib/man3/Date::Pcalc.3pm-utf8
|
|
|
3fa11e2 |
mv blib/man3/Date::Pcalc.3pm-utf8 blib/man3/Date::Pcalc.3pm
|
|
|
3fa11e2 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
3fa11e2 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
3fa11e2 |
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
3fa11e2 |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%clean
|
|
|
3fa11e2 |
rm -rf $RPM_BUILD_ROOT
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%check
|
|
|
3fa11e2 |
make test
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%files
|
|
|
3fa11e2 |
%defattr(-,root,root,-)
|
|
|
3fa11e2 |
%doc CHANGES.txt README.txt EXAMPLES.txt CREDITS.txt GNU_GPL.txt Artistic.txt
|
|
|
3fa11e2 |
%{perl_vendorlib}/Date
|
|
|
3fa11e2 |
%{_mandir}/man3/*
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
%changelog
|
|
|
9359bc2 |
* Thu Sep 07 2006 Mike McGrath <imlinux@gmail.com> - 1.2-4
|
|
|
9359bc2 |
- Release bump
|
|
|
9359bc2 |
|
|
|
3fa11e2 |
* Mon Mar 20 2006 Mike McGrath <imlinux@gmail.com> - 1.2-3
|
|
|
3fa11e2 |
- Minor fixes and formatting in spec file
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
* Sun Mar 19 2006 Mike McGrath <imlinux@gmail.com> - 1.2-2
|
|
|
3fa11e2 |
- Include license and credits
|
|
|
3fa11e2 |
- Convert manpage to utf-8
|
|
|
3fa11e2 |
|
|
|
3fa11e2 |
* Sat Mar 18 2006 Mike McGrath <imlinux@gmail.com> - 1.2-1
|
|
|
3fa11e2 |
- First attempt at a Fedora friendly spec file
|