Blob Blame History Raw
Name:           perl-HTML-CalendarMonthSimple
Version:        1.25
Release:        5%{?dist}
Summary:        Perl Module for Generating HTML Calendars
License:        Copyright only
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)

%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 encoding :
for i in README CalendarMonthSimple.pm ; do {
    iconv -f iso8859-1 -t utf-8 $i > $i.utf8 && \
    touch -r $i $i.utf8 && \
    mv -f $i.utf8 $i; };
done;

%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
* Wed Jun 03 2009 Xavier Bachelot <xavier@bachelot.org> 1.25-5
- Change License: to Copyright only.
- Fix README file encoding.
- Preserve timestamp on converted files.
- Remove implicit BR: iconv.

* 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