perl-DateTime-Locale/perl-DateTime-Locale.spec

106 lines
3.3 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-DateTime-Locale
Epoch: 1
Version: 1.43
Release: 1mamba
Summary: DateTime::Locale - Provide localization data for the DateTime.pm class
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-File-ShareDir
BuildRequires: perl-Params-ValidationCompiler
BuildRequires: perl-Scalar-List-Utils
BuildRequires: perl-Specio
BuildRequires: perl-devel
BuildRequires: perl-namespace-autoclean
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
BuildRequires: perl-CPAN-Meta-Check
BuildRequires: perl-Dist-Checkconflicts
BuildRequires: perl-File-ShareDir-Install
BuildRequires: perl-Package-Stash
BuildRequires: perl-Sub-Identify
BuildRequires: perl-Test2-Plugin-NoWarnings
BuildRequires: perl-Test-File-ShareDir
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
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make
%make test
%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 -f $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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Jul 28 2024 Automatic Build System <autodist@openmamba.org> 1.43-1mamba
- automatic version update by autodist
* Fri Apr 19 2024 Automatic Build System <autodist@openmamba.org> 1.42-1mamba
- automatic version update by autodist
* Sun Apr 07 2024 Automatic Build System <autodist@openmamba.org> 1.41-1mamba
- automatic version update by autodist
* Sun Nov 05 2023 Automatic Build System <autodist@mambasoft.it> 1.40-1mamba
- automatic version update by autodist
* Mon May 29 2023 Automatic Build System <autodist@mambasoft.it> 1.39-1mamba
- automatic version update by autodist
* Thu Apr 20 2023 Automatic Build System <autodist@mambasoft.it> 1.38-1mamba
- automatic version update by autodist
* Mon Apr 17 2023 Sdk Build System <sdk@mambasoft.it> 1.37-2mamba
- rebuilt with perl 5.36.0
* Thu Mar 09 2023 Automatic Build System <autodist@mambasoft.it> 1.37-1mamba
- automatic version update by autodist
* Fri Nov 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.45-2mamba
- rebuilt with perl 5.24
* 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