118 lines
4.0 KiB
RPMSpec
118 lines
4.0 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
#%define _noautoreq 'perl(DateTime::TimeZone.*)'
|
||
|
|
||
|
Name: perl-DateTime-TimeZone
|
||
|
Version: 1.63
|
||
|
Release: 1mamba
|
||
|
Summary: DateTime::TimeZone - Provide a Perl interface to the Olson time zone database
|
||
|
Group: System/Libraries/Perl
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Aleph0 <aleph0@openmamba.org>
|
||
|
URL: http://www.cpan.org
|
||
|
Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-TimeZone-%{version}.tar.gz
|
||
|
License: GPL, Artistic
|
||
|
Requires: perl >= %perl_major_ver
|
||
|
BuildRequires: perl-devel >= %perl_major_ver
|
||
|
BuildRequires: perl-Class-Singleton
|
||
|
Provides: perl(DateTime::TimeZoneCatalog)
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
# FIXME:
|
||
|
# Cannot run tests before DateTime.pm 0.1501 is installed.
|
||
|
|
||
|
%description
|
||
|
The DateTime::TimeZone modules provide a Perl interface to the Olson time zone database.
|
||
|
Rather than using the database directly, we parse the database files and turn them into a set of modules, one for each time zone defined.
|
||
|
This allows for various optimizations in doing time zone calculations.
|
||
|
This conversion is done with the script in tools/parse_olson.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n DateTime-TimeZone-%{version}
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL installdirs=vendor
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall_perl
|
||
|
|
||
|
packlist=`find %{buildroot} -name .packlist`
|
||
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
||
|
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
|
||
|
sort -u > .packlist && rm $packlist
|
||
|
|
||
|
|
||
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
||
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
||
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
||
|
done
|
||
|
|
||
|
rm -f %{buildroot}%perl_vendorlib/DateTime/TimeZone/Local/Win32.pm
|
||
|
sed -i "/Win32.pm/d" .packlist
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
rm -f .packlist
|
||
|
|
||
|
%files -f .packlist
|
||
|
%defattr(-,root,root)
|
||
|
|
||
|
%changelog
|
||
|
* Sun Dec 29 2013 Automatic Build System <autodist@mambasoft.it> 1.63-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Mon Sep 23 2013 Automatic Build System <autodist@mambasoft.it> 1.61-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sat Jul 13 2013 Automatic Build System <autodist@mambasoft.it> 1.60-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri May 17 2013 Automatic Build System <autodist@mambasoft.it> 1.59-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Wed Mar 13 2013 Automatic Build System <autodist@mambasoft.it> 1.58-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Sat Mar 09 2013 Automatic Build System <autodist@mambasoft.it> 1.57-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Thu Jan 10 2013 Automatic Build System <autodist@mambasoft.it> 1.56-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Mon Nov 19 2012 Automatic Build System <autodist@mambasoft.it> 1.54-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Tue Nov 06 2012 Automatic Build System <autodist@mambasoft.it> 1.53-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Thu Nov 01 2012 Automatic Build System <autodist@mambasoft.it> 1.52-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Thu Oct 18 2012 Automatic Build System <autodist@mambasoft.it> 1.51-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Fri Oct 12 2012 Automatic Build System <autodist@mambasoft.it> 1.50-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Wed Aug 15 2012 Automatic Build System <autodist@mambasoft.it> 1.48-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Sat Jun 30 2012 Automatic Build System <autodist@mambasoft.it> 1.46-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Wed Oct 21 2009 Automatic Build System <autodist@mambasoft.it> 1.01-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8301-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6904-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 0.6904-1mamba
|
||
|
- package created by autospec
|