Blob Blame History Raw
Name:           perl-Date-Calc-XS
Version:        6.3
Release:        8%{?dist}
Summary:        XS wrapper and C library plug-in for Date::Calc
License:        LGPLv2+ and ( GPL+ or Artistic )
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Date-Calc-XS/
Source0:        http://www.cpan.org/modules/by-module/Date/Date-Calc-XS-%{version}.tar.gz
# rt#101232
Patch0:         Date-Calc-XS-6.3-century.patch
# glibc-common contains the iconv binary
BuildRequires:  glibc-common
BuildRequires:  perl
BuildRequires:  perl(Bit::Vector)
BuildRequires:  perl(bytes)
BuildRequires:  perl(Config)
BuildRequires:  perl(Date::Calc::Object)
BuildRequires:  perl(Date::Calendar)
BuildRequires:  perl(Date::Calendar::Profiles)
BuildRequires:  perl(Date::Calendar::Year)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Test::More) >= 0.47
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Carp::Clan) >= 6.01
BuildRequires:  perl(Bit::Vector) >= 7.1
BuildRequires:  perl(Date::Calc) >= 6.3
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))


%description
Date::Calc::XS is a XS wrapper and C library plug-in for Date::Calc

%prep
%setup -q -n Date-Calc-XS-%{version}
iconv --from=ISO-8859-1 --to=UTF-8 CREDITS.txt >CREDITS.fixed
mv CREDITS.fixed CREDITS.txt
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%files
%{perl_vendorarch}/*
%{_mandir}/man3/*
%doc CHANGES.txt README.txt CREDITS.txt license

%changelog
* Mon Jan 12 2015 Petr Ĺ abata <contyk@redhat.com> - 6.3-8
- Adapt the test suite for the 2015-2115 era

* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 6.3-7
- Perl 5.20 rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat May 17 2014 Sven Nierlein <sven.nierlein@consol.de> 6.3-4
- convert credits to utf8
- updated build requires

* Mon Apr 21 2014 Sven Nierlein <sven.nierlein@consol.de> 6.3-3
- added LGPLv2+ to license
- replaced multiple doc files with a single entry
- updated build requires to match versions from Makefile.PL
- changed source to non-author specific

* Sun Apr 06 2014 Sven Nierlein <sven.nierlein@consol.de> 6.3-2
- added perl build requires
- added Changes and README
- use DESTDIR as install target folder
- removed unnecessary build steps

* Sun Mar 23 2014 Sven Nierlein <sven.nierlein@consol.de> 6.3-1
- Specfile created