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)
Name: perl-Class-ErrorHandler
Version: 0.03
Version: 0.04
Release: 1mamba
Summary: Class::ErrorHandler - Base class for error handling
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://www.cpan.org
Source: http://www.cpan.org/modules/by-module/Class/Class-ErrorHandler-%{version}.tar.gz
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: https://cpan.metacpan.org/modules/by-module/Class/Class-ErrorHandler-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl-devel >= %perl_major_ver
BuildRequires: perl-Module-Build
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: perl >= %perl_major_ver
%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.
@ -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}
%build
%{__perl} Build.PL \
installdirs=vendor \
perl=%{__perl}
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
./Build
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install destdir=%{buildroot}
%makeinstall_perl
# cleanup unpackaged files
find %{buildroot}%{_libdir} \
-type f \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \;
# remove empty directories
#find %{buildroot}%{perl_sitelib} \
# -type d -depth -exec rmdir {} 2>/dev/null \;
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
find %{buildroot} \( -type f -or -type l \) | \
sed "s@%buildroot@@g;s@.*/man./.*@&.gz@g" | \
sort -u > .packlist
find %{buildroot} -type d | \
grep "%{perl_sitearch}/" | \
sed "s@%buildroot@@g;s@.*@%dir &@g" >> .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}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%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
- automatic update by autodist