2024-01-06 08:51:15 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-DateTime-Locale
|
|
|
|
Epoch: 1
|
2024-01-06 08:51:16 +01:00
|
|
|
Version: 1.37
|
|
|
|
Release: 1mamba
|
2024-01-06 08:51:15 +01:00
|
|
|
Summary: DateTime::Locale - Provide localization data for the DateTime.pm class
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 08:51:16 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.cpan.org/
|
2024-01-06 08:51:15 +01:00
|
|
|
Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{version}.tar.gz
|
|
|
|
License: GPL, Artistic
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 08:51:16 +01:00
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl-File-ShareDir
|
|
|
|
BuildRequires: perl-Params-ValidationCompiler
|
|
|
|
BuildRequires: perl-Scalar-List-Utils
|
|
|
|
BuildRequires: perl-Specio
|
2024-01-06 08:51:15 +01:00
|
|
|
BuildRequires: perl-devel
|
2024-01-06 08:51:16 +01:00
|
|
|
BuildRequires: perl-namespace-autoclean
|
2024-01-06 08:51:15 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 08:51:16 +01:00
|
|
|
BuildRequires: perl-Test2-Plugin-NoWarnings
|
2024-01-06 08:51:15 +01:00
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The DateTime::Locale modules provide localization data for the DateTime.pm class.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n DateTime-Locale-%{version}
|
|
|
|
|
|
|
|
%build
|
2024-01-06 08:51:16 +01:00
|
|
|
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
|
|
|
%make
|
|
|
|
%make test
|
2024-01-06 08:51:15 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 08:51:16 +01:00
|
|
|
%makeinstall_perl
|
2024-01-06 08:51:15 +01:00
|
|
|
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
2024-01-06 08:51:16 +01:00
|
|
|
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
|
|
|
|
sort -u > .packlist && rm -f $packlist
|
2024-01-06 08:51:15 +01:00
|
|
|
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
2024-01-06 08:51:16 +01:00
|
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
2024-01-06 08:51:15 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:51:16 +01:00
|
|
|
* Thu Mar 09 2023 Automatic Build System <autodist@mambasoft.it> 1.37-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:51:15 +01:00
|
|
|
* Fri Nov 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.45-2mamba
|
|
|
|
- rebuilt with perl 5.24
|
|
|
|
|
2024-01-06 08:51:15 +01:00
|
|
|
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.45-1mamba
|
|
|
|
- update to 0.45
|
|
|
|
|
|
|
|
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4001-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.35-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 0.35-1mamba
|
|
|
|
- package created by autospec
|