2008-05-19 15:05:59 +00:00
|
|
|
%define cpan_name Config-Tiny
|
|
|
|
|
|
|
|
Name: perl-%cpan_name
|
|
|
|
Version: 2.12
|
|
|
|
Release: 1
|
|
|
|
Provides: %cpan_name
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Artistic
|
|
|
|
URL: http://search.cpan.org/dist/Config-Tiny/
|
|
|
|
Summary: Read/Write .ini style files with as little code as possible
|
|
|
|
Source: %cpan_name-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-10-19 08:45:36 +00:00
|
|
|
BuildRequires: perl
|
2008-05-19 15:05:59 +00:00
|
|
|
|
|
|
|
%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 %cpan_name-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
make
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
# clean up the hard disc after build
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{perl_vendorlib}/Config
|
|
|
|
%{perl_vendorarch}/auto/Config
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
%doc Changes LICENSE MANIFEST README
|
|
|
|
|
|
|
|
%changelog -n %{name}
|
|
|
|
* Sun Jan 19 2008 - gerrit.beine@googlemail.com
|
|
|
|
- moved to openSUSE Build Service
|
|
|
|
* Thu Dec 06 2007 - gerrit@beine-computer.de
|
|
|
|
- first release 2.12
|
|
|
|
|