Name: perl-HTML-CalendarMonthSimple
Version: 1.25
Release: 5%{?dist}
Summary: Perl Module for Generating HTML Calendars
License: Public Domain
Group: Development/Libraries
URL: http://search.cpan.org/dist/HTML-CalendarMonthSimple/
Source0: http://www.cpan.org/modules/by-module/HTML/HTML-CalendarMonthSimple-%{version}.tar.gz
Patch0: HTML-CalendarMonthSimple-1.24.thisday.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl(Date::Calc)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: /usr/bin/iconv
%description
HTML::CalendarMonthSimple is a Perl module for generating, manipulating,
and printing a HTML calendar grid for a specified month. It is intended as
a faster and easier-to-use alternative to HTML::CalendarMonth.
%prep
%setup -q -n HTML-CalendarMonthSimple-%{version}
%patch0 -p 1 -b .thisday
# Fix UTF-8
iconv -f ISO_8859-1 -t UTF-8 -o tmp.pm CalendarMonthSimple.pm &&
mv -f tmp.pm CalendarMonthSimple.pm
%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
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.25-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed May 16 2007 Andreas Thienemann <andreas@bawue.net> 1.25-2
- Fixed typo in BR
* Fri Mar 16 2007 Andreas Thienemann <andreas@bawue.net> 1.25-1
- Specfile autogenerated by cpanspec 1.69.1.
- Cleaned up
- Added patch0