62 lines
2.2 KiB
RPMSpec
62 lines
2.2 KiB
RPMSpec
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||
|
|
||
|
Name: perl-Config-Tiny
|
||
|
Version: 2.14
|
||
|
Release: 1mamba
|
||
|
Summary: Config::Tiny - Read/Write .ini style files with as little code as possible
|
||
|
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/A/AD/ADAMK/Config-Tiny-%{version}.tar.gz
|
||
|
License: GPL, Artistic
|
||
|
BuildRequires: perl(Test::Pod)
|
||
|
#BuildRequires: perl(Test::MinimumVersion)
|
||
|
BuildRequires: perl-devel
|
||
|
Requires: perl >= %perl_major_ver
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
Config::Tiny is a perl class to read and write .ini style configuration files with as little code as possible, reducing load time
|
||
|
and memory overhead. Most of the time it is accepted that Perl applications use a lot of memory and modules. The ::Tiny
|
||
|
family of modules is specifically intended to provide an ultralight alternative to the standard modules.
|
||
|
|
||
|
This module is primarily for reading human written files, and anything we write shouldn't need to have documentation/comments.
|
||
|
If you need something with more power move up to Config::Simple, Config::General or one of the many other Config:: modules. To rephrase,
|
||
|
Config::Tiny does not preserve your comments, whitespace, or the order of your config file.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Config-Tiny-%{version}
|
||
|
|
||
|
chmod a-x Changes lib/Config/Tiny.pm
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
||
|
%make
|
||
|
%make test AUTOMATED_TESTING=1
|
||
|
|
||
|
%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}/Config/
|
||
|
%{_mandir}/man3/*.3pm.gz
|
||
|
%doc Changes LICENSE README
|
||
|
|
||
|
%changelog
|
||
|
* Sun May 01 2011 Automatic Build System <autodist@mambasoft.it> 2.14-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 2.12-1mamba
|
||
|
- package created by autospec
|