automatic version update by autodist [release 0.04-1mamba;Sun May 16 2021]

This commit is contained in:
Automatic Build System 2024-01-06 08:40:46 +01:00
parent e6f457e28e
commit 7ee7494409

View File

@ -1,20 +1,22 @@
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) %define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Class-ErrorHandler Name: perl-Class-ErrorHandler
Version: 0.03 Version: 0.04
Release: 1mamba Release: 1mamba
Summary: Class::ErrorHandler - Base class for error handling Summary: Class::ErrorHandler - Base class for error handling
Group: System/Libraries/Perl Group: System/Libraries/Perl
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org URL: https://www.cpan.org/
Source: http://www.cpan.org/modules/by-module/Class/Class-ErrorHandler-%{version}.tar.gz Source: https://cpan.metacpan.org/modules/by-module/Class/Class-ErrorHandler-%{version}.tar.gz
License: Artistic, GPL License: Artistic, GPL
Requires: perl >= %perl_major_ver ## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Module-Build BuildRequires: perl-Module-Build
BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: perl >= %perl_major_ver
%description %description
Class::ErrorHandler provides an error-handling mechanism that's generic enough to be used as the base class for a variety of OO classes. Class::ErrorHandler provides an error-handling mechanism that's generic enough to be used as the base class for a variety of OO classes.
@ -28,38 +30,35 @@ The caller should check for errors by checking for a return value of undef, and
%setup -q -n Class-ErrorHandler-%{version} %setup -q -n Class-ErrorHandler-%{version}
%build %build
%{__perl} Build.PL \ %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
installdirs=vendor \
perl=%{__perl}
./Build %make
%make test
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install destdir=%{buildroot} %makeinstall_perl
# cleanup unpackaged files packlist=`find %{buildroot} -name .packlist`
find %{buildroot}%{_libdir} \ [ -z "$packlist" ] && exit 1 || cat $packlist | \
-type f \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \; sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
# remove empty directories sort -u > .packlist && rm -f $packlist
#find %{buildroot}%{perl_sitelib} \
# -type d -depth -exec rmdir {} 2>/dev/null \;
find %{buildroot} \( -type f -or -type l \) | \ strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
sed "s@%buildroot@@g;s@.*/man./.*@&.gz@g" | \ for dir in `find %{buildroot} -type d | grep $strid`; do
sort -u > .packlist echo "%dir ${dir#%buildroot}" >> .packlist
find %{buildroot} -type d | \ done
grep "%{perl_sitearch}/" | \
sed "s@%buildroot@@g;s@.*@%dir &@g" >> .packlist
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist %files -f .packlist
%defattr(-,root,root) %defattr(-,root,root)
%changelog %changelog
* Sun May 16 2021 Automatic Build System <autodist@mambasoft.it> 0.04-1mamba
- automatic version update by autodist
* Sun Dec 15 2013 Automatic Build System <autodist@mambasoft.it> 0.03-1mamba * Sun Dec 15 2013 Automatic Build System <autodist@mambasoft.it> 0.03-1mamba
- automatic update by autodist - automatic update by autodist