041ce1
Name:           perl-Date-Calc
041ce1
Version:        6.3
69de9f
Release:        14%{?dist}
041ce1
Summary:        Gregorian calendar date calculations
041ce1
041ce1
Group:          Development/Libraries
041ce1
License:        GPL+ or Artistic
041ce1
URL:            http://search.cpan.org/dist/Date-Calc/
041ce1
Source0:        http://www.cpan.org/authors/id/S/ST/STBEY/Date-Calc-%{version}.tar.gz
69de9f
# rt#101232, rhbz#1197242
69de9f
Patch0:         Date-Calc-6.3-century.patch
041ce1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
041ce1
041ce1
BuildRequires:  perl(ExtUtils::MakeMaker)
041ce1
BuildRequires:  perl(Carp::Clan) >= 6.3
041ce1
BuildRequires:  perl(Bit::Vector) >= 7.1
041ce1
BuildRequires:  perl(Exporter)
041ce1
Requires:       perl(Bit::Vector) >= 7.1
041ce1
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
041ce1
BuildArch:      noarch
041ce1
041ce1
# Filter unwanted Provides:
041ce1
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(Date::Calc\\)$
041ce1
041ce1
%description
041ce1
The library provides all sorts of date calculations based on the
041ce1
Gregorian calendar (the one used in all western countries today),
041ce1
thereby complying with all relevant norms and standards: ISO/R
041ce1
2015-1971, DIN 1355 and, to some extent, ISO 8601 (where applicable).
041ce1
041ce1
%prep
69de9f
%setup -q -n Date-Calc-%{version}
69de9f
%patch0 -p1
041ce1
041ce1
%build
041ce1
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
041ce1
make %{?_smp_mflags}
041ce1
041ce1
041ce1
%install
041ce1
rm -rf $RPM_BUILD_ROOT
041ce1
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
041ce1
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
041ce1
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
041ce1
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
041ce1
chmod -R u+w $RPM_BUILD_ROOT/*
041ce1
041ce1
for file in $RPM_BUILD_ROOT%{_mandir}/man3/Date::Calc.3pm \
041ce1
            CREDITS.txt; do
041ce1
  iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
041ce1
  mv -f "${file}_" "$file"
041ce1
done
041ce1
041ce1
%check
041ce1
make test
041ce1
041ce1
041ce1
%clean
041ce1
rm -rf $RPM_BUILD_ROOT
041ce1
041ce1
041ce1
%files
041ce1
%defattr(-,root,root,-)
041ce1
%doc license/Artistic.txt license/GNU_GPL.txt license/GNU_LGPL.txt
041ce1
%doc CHANGES.txt CREDITS.txt README.txt
041ce1
%{perl_vendorlib}/Date/
041ce1
%{_mandir}/man3/*.3*
041ce1
041ce1
041ce1
%changelog
69de9f
* Wed Apr 22 2015 Petr Šabata <contyk@redhat.com> - 6.3-14
69de9f
- Adapt the test suite for the 2015-2115 era (rhbz#1197242)
69de9f
52763f
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 6.3-13
52763f
- Mass rebuild 2013-12-27
52763f
041ce1
* Mon Nov 26 2012 Jitka Plesnikova <jplesnik@redhat.com> - 6.3-12
041ce1
- Update filter
041ce1
- Add BR perl(Carp)
041ce1
- Don't need to remove examples and tools, they don't exist
041ce1
041ce1
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-11
041ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
041ce1
041ce1
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 6.3-10
041ce1
- Perl 5.16 rebuild
041ce1
041ce1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-9
041ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
041ce1
041ce1
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 6.3-8
041ce1
- Perl mass rebuild
041ce1
041ce1
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 6.3-7
041ce1
- Perl mass rebuild
041ce1
041ce1
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 6.3-6
041ce1
- Perl mass rebuild
041ce1
041ce1
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-5
041ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
041ce1
041ce1
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 6.3-4
041ce1
- 661697 rebuild for fixing problems with vendorach/lib
041ce1
041ce1
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 6.3-3
041ce1
- Mass rebuild with perl-5.12.0
041ce1
041ce1
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 6.3-2
041ce1
- rebuild against perl 5.10.1
041ce1
041ce1
* Wed Nov 18 2009 Marcela Mašláňová <mmaslano@redhat.com> - 6.3-1
041ce1
- new upstream version - noarch, because since 6.0 there were bigger
041ce1
 changes like stripping this module into more of them
041ce1
041ce1
* Mon Oct 19 2009 Marcela Mašláňová <mmaslano@redhat.com> - 6.2-1
041ce1
- new upstream version
041ce1
041ce1
* Tue Aug  4 2009 Stepan Kasal <skasal@redhat.com> - 5.6-1
041ce1
- new upstream version
041ce1
041ce1
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-8
041ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
041ce1
041ce1
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4-7
041ce1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
041ce1
041ce1
* Tue Mar  4 2008 Tom "spot" Callaway <tcallawa@redhat.com> 5.4-6
041ce1
- rebuild for new perl
041ce1
041ce1
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.4-5
041ce1
- Autorebuild for GCC 4.3
041ce1
041ce1
* Mon Nov 12 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 5.4-4
041ce1
- filtered out too many provides
041ce1
041ce1
* Wed Oct 24 2007 Robin Norwood <rnorwood@redhat.com> - 5.4-3
041ce1
- various specfile fixes
041ce1
041ce1
* Mon Oct 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 5.4-2.1
041ce1
- correct license tag
041ce1
- add BR: perl(ExtUtils::MakeMaker)
041ce1
041ce1
* Mon Aug 27 2007 Robin Norwood <rnorwood@redhat.com> - 5.4-2
041ce1
- Update License tag
041ce1
- Clean up minor specfile issues
041ce1
041ce1
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.4-1.2.2.1
041ce1
- rebuild
041ce1
041ce1
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.4-1.2.2
041ce1
- bump again for double-long bug on ppc(64)
041ce1
041ce1
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.4-1.2.1
041ce1
- rebuilt for new gcc4.1 snapshot and glibc changes
041ce1
041ce1
* Fri Feb 03 2006 Jason Vas Dias <jvdias@redhat.com> - 5.4-1.2
041ce1
- rebuild for new perl-5.8.8
041ce1
041ce1
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
041ce1
- rebuilt for new gcc
041ce1
041ce1
* Sat Apr  2 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 5.4-1
041ce1
- Update to 5.4.
041ce1
- Bring up to date with current Fedora.Extras perl spec template.
041ce1
041ce1
* Thu Nov 25 2004 Miloslav Trmac <mitr@redhat.com> - 5.3-10
041ce1
- Convert man page to UTF-8
041ce1
041ce1
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
041ce1
- rebuilt
041ce1
041ce1
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
041ce1
- rebuilt
041ce1
041ce1
* Fri Feb 13 2004 Chip Turner <cturner@redhat.com> 5.3-5
041ce1
- rebuilt
041ce1
041ce1
* Thu Jun 05 2003 Elliot Lee <sopwith@redhat.com>
041ce1
- rebuilt
041ce1
041ce1
* Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
041ce1
- update to latest version from CPAN
041ce1
041ce1
* Tue Aug  6 2002 Chip Turner <cturner@redhat.com>
041ce1
- automated release bump and build
041ce1
041ce1
* Wed Jan 30 2002 cturner@redhat.com
041ce1
- Specfile autogenerated
041ce1