56 lines
1.5 KiB
RPMSpec
56 lines
1.5 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-Config-Simple
|
|
Version: 4.59
|
|
Release: 2mamba
|
|
Summary: Config::Simple - simple configuration file class
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: https://www.cpan.org/
|
|
Source: http://search.cpan.org/CPAN/authors/id/S/SH/SHERZODR/Config-Simple-%{version}.tar.gz
|
|
License: GPL, Artistic
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Test::Simple)
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
%description
|
|
Config::Simple - simple configuration file class
|
|
|
|
%prep
|
|
%setup -q -n Config-Simple-%{version}
|
|
chmod -x README Changes
|
|
|
|
%build
|
|
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
|
|
chmod -R u+w %{buildroot}/*
|
|
chmod -x %{buildroot}%{perl_vendorlib}/Config/Simple.pm
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3pm.gz
|
|
%doc README Changes
|
|
|
|
%changelog
|
|
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 4.59-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Feb 16 2011 gil <puntogil@libero.it> 4.59-1mamba
|
|
- package created by autospec
|