diff --git a/perl-DateTime-Locale.spec b/perl-DateTime-Locale.spec index 9eb0427..5adfce3 100644 --- a/perl-DateTime-Locale.spec +++ b/perl-DateTime-Locale.spec @@ -2,27 +2,28 @@ Name: perl-DateTime-Locale Epoch: 1 -Version: 0.45 -Release: 2mamba +Version: 1.37 +Release: 1mamba Summary: DateTime::Locale - Provide localization data for the DateTime.pm class Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba -Packager: Aleph0 -URL: http://www.cpan.org +Packager: Silvan Calarco +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-List-MoreUtils -BuildRequires: perl-Params-Validate +BuildRequires: perl-namespace-autoclean ## AUTOBUILDREQ-END +BuildRequires: perl-Test2-Plugin-NoWarnings Requires: perl >= %perl_major_ver BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-root - -# FIXME: -# BuildRequires: perl-DT-Language %description The DateTime::Locale modules provide localization data for the DateTime.pm class. @@ -31,38 +32,35 @@ The DateTime::Locale modules provide localization data for the DateTime.pm class %setup -q -n DateTime-Locale-%{version} %build -perl Build.PL installdirs=vendor -./Build -./Build test +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + +%make +%make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -./Build install \ - destdir="%{buildroot}" \ - --install_path bindoc="%{_mandir}/man1" \ - --install_path libdoc="%{_mandir}/man3" +%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 - -find %{buildroot}%{perl_vendorlib} \ - -type d -depth -exec rmdir {} 2>/dev/null \; + 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 + echo "%dir ${dir#%buildroot}" >> .packlist done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog +* Thu Mar 09 2023 Automatic Build System 1.37-1mamba +- automatic version update by autodist + * Fri Nov 11 2016 Silvan Calarco 0.45-2mamba - rebuilt with perl 5.24