54 lines
1.4 KiB
RPMSpec
54 lines
1.4 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
|
||
|
Name: perl-Config-Simple
|
||
|
Version: 4.59
|
||
|
Release: 1mamba
|
||
|
Summary: Config::Simple - simple configuration file class
|
||
|
Group: System/Libraries/Perl
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: gil <puntogil@libero.it>
|
||
|
URL: http://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
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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 Feb 16 2011 gil <puntogil@libero.it> 4.59-1mamba
|
||
|
- package created by autospec
|