Unbundle DateTime::TimeZone and DateTime::Locale (rhbz#730658)
- Bump epoch and revert to upstream versioning - Specfile regenerated by cpanspec 1.78. - Update description
This commit is contained in:
parent
e74014bac5
commit
8baa9ed248
@ -1,158 +1,71 @@
|
|||||||
%define DT_version 0.70
|
|
||||||
%define DTLocale_version 0.45
|
|
||||||
%define DTTimeZone_version 1.35
|
|
||||||
|
|
||||||
Name: perl-DateTime
|
Name: perl-DateTime
|
||||||
# must now be 0.xx00 to preserve upgrade path:
|
Epoch: 2
|
||||||
Version: %{DT_version}00
|
Version: 0.70
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Epoch: 1
|
Summary: Date and time object
|
||||||
Summary: Date and time objects
|
License: Artistic 2.0
|
||||||
License: Artistic 2.0 and (GPL+ or Artistic)
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://search.cpan.org/dist/DateTime/
|
URL: http://search.cpan.org/dist/DateTime/
|
||||||
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{DT_version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-%{version}.tar.gz
|
||||||
Source1: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{DTTimeZone_version}.tar.gz
|
# circular dependency - only used for one test
|
||||||
Source2: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-%{DTLocale_version}.tar.gz
|
#BuildRequires: perl(DateTime::Format::Strptime) >= 1.2000
|
||||||
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
BuildRequires: perl(DateTime::Locale) >= 0.41
|
||||||
BuildRequires: perl(Class::ISA)
|
BuildRequires: perl(DateTime::TimeZone) >= 1.09
|
||||||
BuildRequires: perl(Class::Load)
|
|
||||||
BuildRequires: perl(Class::Singleton) >= 1.03
|
|
||||||
BuildRequires: perl(File::Find::Rule)
|
|
||||||
BuildRequires: perl(List::MoreUtils)
|
|
||||||
BuildRequires: perl(Math::Round)
|
BuildRequires: perl(Math::Round)
|
||||||
BuildRequires: perl(Module::Build) >= 0.35
|
BuildRequires: perl(Module::Build)
|
||||||
# or better:
|
BuildRequires: perl(Params::Validate) >= 0.76
|
||||||
#BuildRequires: perl(Module::Build) >= 0.36
|
BuildRequires: perl(Scalar::Util)
|
||||||
BuildRequires: perl(Params::Validate) >= 0.91
|
|
||||||
BuildRequires: perl(Pod::Man) >= 1.14
|
|
||||||
BuildRequires: perl(Test::Exception)
|
BuildRequires: perl(Test::Exception)
|
||||||
BuildRequires: perl(Test::More) >= 0.34
|
BuildRequires: perl(Test::More) >= 0.88
|
||||||
BuildRequires: perl(Test::Output)
|
BuildRequires: perl(Time::Local) >= 1.04
|
||||||
BuildRequires: perl(Test::Pod) >= 1.14
|
Requires: perl(DateTime::Locale) >= 0.41
|
||||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
Requires: perl(DateTime::TimeZone) >= 1.09
|
||||||
BuildRequires: perl(parent)
|
|
||||||
Requires: perl(Class::Singleton) >= 1.03
|
|
||||||
Requires: perl(Params::Validate) >= 0.91
|
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
Provides: perl-DateTime-TimeZone = %{DTTimeZone_version}
|
|
||||||
Provides: perl-DateTime-Locale = %{DTLocale_version}
|
|
||||||
Provides: perl(DateTimePP)
|
|
||||||
Provides: perl(DateTimePPExtra)
|
|
||||||
|
|
||||||
%{?filter_setup:
|
# not automatically detected
|
||||||
%filter_from_requires /^perl(Win32/d
|
Provides: perl(DateTimePP) = %{version}
|
||||||
# drop the unversioned provide:
|
Provides: perl(DateTimePPExtra) = %{version}
|
||||||
%filter_from_provides /^perl(DateTime)$/d
|
|
||||||
%?perl_default_filter
|
|
||||||
}
|
|
||||||
|
|
||||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DateTime\\)$
|
%{?perl_default_filter}
|
||||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Win32
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
DateTime is a class for the representation of date/time combinations, and
|
DateTime is a class for the representation of date/time combinations. It
|
||||||
is part of the Perl DateTime project. For details on this project please
|
represents the Gregorian calendar, extended backwards in time before its
|
||||||
see http://datetime.perl.org/. The DateTime site has a FAQ which may help
|
creation (in 1582). This is sometimes known as the "proleptic Gregorian
|
||||||
answer many "how do I do X?" questions. The FAQ is at
|
calendar". In this calendar, the first day of the calendar (the epoch), is the
|
||||||
http://datetime.perl.org/wiki/datetime/page/FAQ
|
first day of year 1, which corresponds to the date which was (incorrectly)
|
||||||
|
believed to be the birth of Jesus Christ.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -T -c -n DateTimeBundle -a 0
|
%setup -q -n DateTime-%{version}
|
||||||
%setup -q -T -D -n DateTimeBundle -a 1
|
|
||||||
%setup -q -T -D -n DateTimeBundle -a 2
|
|
||||||
|
|
||||||
(
|
|
||||||
for f in \
|
|
||||||
DateTime-%{DT_version}/lib/DateTime/LeapSecond.pm \
|
|
||||||
DateTime-Locale-%{DTLocale_version}/Changes
|
|
||||||
do
|
|
||||||
iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 && mv $f.utf8 $f
|
|
||||||
done
|
|
||||||
)
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd DateTime-Locale-%{DTLocale_version}
|
%{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
|
||||||
%{__perl} Build.PL installdirs=vendor
|
|
||||||
./Build
|
./Build
|
||||||
cd -
|
|
||||||
|
|
||||||
cd DateTime-TimeZone-%{DTTimeZone_version}
|
|
||||||
%{__perl} Makefile.PL installdirs=vendor
|
|
||||||
make %{?_smp_mflags}
|
|
||||||
cd -
|
|
||||||
|
|
||||||
cd DateTime-%{DT_version}
|
|
||||||
PERLLIB=../DateTime-Locale-%{DTLocale_version}/blib/lib
|
|
||||||
PERLLIB=$PERLLIB:../DateTime-TimeZone-%{DTTimeZone_version}/blib/lib
|
|
||||||
export PERLLIB
|
|
||||||
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
|
|
||||||
./Build
|
|
||||||
cd -
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||||
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
for d in DateTime-Locale-%{DTLocale_version} \
|
%{_fixperms} %{buildroot}/*
|
||||||
DateTime-%{DT_version}; do
|
|
||||||
cd $d
|
|
||||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
||||||
cd -
|
|
||||||
done
|
|
||||||
cd DateTime-TimeZone-%{DTTimeZone_version}
|
|
||||||
make pure_install DESTDIR=%{buildroot}
|
|
||||||
cd -
|
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
||||||
find $RPM_BUILD_ROOT -depth -type d -empty -exec rmdir {} \;
|
|
||||||
|
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
|
|
||||||
# Move documentation into bundle area
|
|
||||||
mkdir DT::Locale DT::TimeZone
|
|
||||||
mv DateTime-%{DT_version}/{CREDITS,Changes,LICENSE,README,TODO} .
|
|
||||||
mv DateTime-Locale-%{DTLocale_version}/{Changes,LICENSE.cldr} DT::Locale
|
|
||||||
mv DateTime-TimeZone-%{DTTimeZone_version}/{Changes,README} DT::TimeZone
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Have to use PERL5LIB rather than PERLLIB here because the test scripts
|
RELEASE_TESTING=1 ./Build test
|
||||||
# clobber PERLLIB
|
|
||||||
PERL5LIB=$(pwd)/DateTime-%{DT_version}/blib/arch:$(pwd)/DateTime-%{DT_version}/blib/lib
|
|
||||||
PERL5LIB=$PERL5LIB:$(pwd)/DateTime-Locale-%{DTLocale_version}/blib/lib
|
|
||||||
PERL5LIB=$PERL5LIB:$(pwd)/DateTime-TimeZone-%{DTTimeZone_version}/blib/lib
|
|
||||||
export PERL5LIB
|
|
||||||
|
|
||||||
# Run pod-related tests.
|
|
||||||
IS_MAINTAINER=1
|
|
||||||
export IS_MAINTAINER
|
|
||||||
|
|
||||||
for d in DateTime-Locale-%{DTLocale_version} \
|
|
||||||
DateTime-%{DT_version}; do
|
|
||||||
cd $d
|
|
||||||
./Build test
|
|
||||||
cd -
|
|
||||||
done
|
|
||||||
cd DateTime-TimeZone-%{DTTimeZone_version}
|
|
||||||
make test
|
|
||||||
cd -
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,0755)
|
%doc Changes CREDITS LICENSE README TODO
|
||||||
%doc CREDITS Changes LICENSE README TODO DT::Locale DT::TimeZone
|
|
||||||
%{_mandir}/man3/*
|
|
||||||
# DateTime::TimeZone and DateTime::Locale modules are arch-independent
|
|
||||||
%{perl_vendorlib}/DateTime/
|
|
||||||
# DateTime module is arch-specific
|
|
||||||
%{perl_vendorarch}/auto/*
|
%{perl_vendorarch}/auto/*
|
||||||
%{perl_vendorarch}/DateTime/
|
%{perl_vendorarch}/DateTime*
|
||||||
%{perl_vendorarch}/DateTime*.pm
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 2:0.70-1
|
||||||
|
- Unbundle DateTime::TimeZone and DateTime::Locale
|
||||||
|
- Bump epoch and revert to upstream versioning
|
||||||
|
- Specfile regenerated by cpanspec 1.78.
|
||||||
|
- Update description
|
||||||
|
|
||||||
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1:0.7000-3
|
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1:0.7000-3
|
||||||
- Perl mass rebuild
|
- Perl mass rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user