diff --git a/README.md b/README.md index a42fdbd..ae5b03f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # perl-Config-Tiny +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. + diff --git a/perl-Config-Tiny.spec b/perl-Config-Tiny.spec new file mode 100644 index 0000000..e728ce8 --- /dev/null +++ b/perl-Config-Tiny.spec @@ -0,0 +1,61 @@ +%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 +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 2.14-1mamba +- automatic update by autodist + +* Fri Feb 18 2011 gil 2.12-1mamba +- package created by autospec