perl-Class-Factory-Util/perl-Class-Factory-Util.spec

60 lines
1.7 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Class-Factory-Util
Version: 1.7
Release: 3mamba
Summary: Class::Factory::Util - Provide utility methods for factory classes
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Class-Factory-Util-%{version}.tar.gz
License: GPL, Artistic
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
Requires: perl >= %perl_major_ver
%description
This module exports a method that is useful for factory classes.
%prep
%setup -q -n Class-Factory-Util-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
./Build test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
./Build install destdir=%{buildroot} create_packlist=0
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.gz
%doc Changes LICENSE README
%changelog
* Sat Aug 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7-3mamba
- rebuilt
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7-2mamba
- imported in devel
* Mon Mar 07 2011 gil <puntogil@libero.it> 1.7-1mamba
- package created by autospec