perl-Class-Inspector/perl-Class-Inspector.spec

69 lines
2.3 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Class-Inspector
Version: 1.36
Release: 1mamba
Summary: Class::Inspector - Get information about a class and its structure
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/Class/Class-Inspector-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: libperl
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::CPAN::Meta)
#BuildRequires: perl(Perl::MinimumVersion)
#BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
%description
Class::Inspector allows you to get information about a loaded class. Most or all of this information can be found in other ways, but they aren't always very friendly, and usually involve a relatively high level of Perl wizardry, or strange and unusual looking code. Class::Inspector attempts to provide an easier, more friendly interface to this information.
%prep
%setup -q -n Class-Inspector-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%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}/Class/
%{_mandir}/man3/*.3pm*
%doc LICENSE
%changelog
* Fri Feb 26 2021 Automatic Build System <autodist@mambasoft.it> 1.36-1mamba
- automatic version update by autodist
* Fri Oct 26 2012 Automatic Build System <autodist@mambasoft.it> 1.28-1mamba
- automatic version update by autodist
* Wed Aug 08 2012 Automatic Build System <autodist@mambasoft.it> 1.27-1mamba
- automatic version update by autodist
* Tue Jan 24 2012 Automatic Build System <autodist@mambasoft.it> 1.26_01-1mamba
- automatic version update by autodist
* Fri Feb 18 2011 gil <puntogil@libero.it> 1.25-1mamba
- package created by autospec