perl-Exception-Class/perl-Exception-Class.spec

83 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Exception-Class
Version: 1.45
Release: 1mamba
Summary: Exception::Class - A module that allows you to declare real exception classes in Perl
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org
Source: https://cpan.metacpan.org/modules/by-module/Exception/Exception-Class-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-Class-Data-Inheritable
BuildRequires: perl-Devel-StackTrace
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(Devel::StackTrace)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
%description
Exception::Class allows you to declare exception hierarchies in your modules in a "Java-esque" manner.
%prep
%setup -q -n Exception-Class-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
export IS_MAINTAINER=1
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/
%{_mandir}/man3/*.3pm.gz
%doc Changes LICENSE
#README
%changelog
* Mon May 03 2021 Automatic Build System <autodist@mambasoft.it> 1.45-1mamba
- automatic update by autodist
* Tue Dec 19 2017 Automatic Build System <autodist@mambasoft.it> 1.44-1mamba
- automatic update by autodist
* Sun Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 1.43-1mamba
- automatic update by autodist
* Sun Feb 07 2016 Automatic Build System <autodist@mambasoft.it> 1.40-1mamba
- automatic update by autodist
* Sun Nov 23 2014 Automatic Build System <autodist@mambasoft.it> 1.39-1mamba
- automatic update by autodist
* Sat May 10 2014 Automatic Build System <autodist@mambasoft.it> 1.38-1mamba
- automatic update by autodist
* Sat Mar 23 2013 Automatic Build System <autodist@mambasoft.it> 1.37-1mamba
- automatic version update by autodist
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.32-1mamba
- package created by autospec