%global pkg_name Config-General %global pkg_version 2.37 %global rpm_pkg_version 2.37 %global rpm_pkg_release 1.n0i.12 Summary: Generic Config Module Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic 2.0 URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/T/TL/TLINDEN/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(File::Glob) BuildRequires: perl(FileHandle) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(IO::File) %global perl_filter_req 'perl\\(Config::General\\)$' %description This module opens a config file and parses it's contents for you. The new method requires one parameter which needs to be a filename. The method getall returns a hash which contains all options and it's associated values of your config file. The format of config files supported by Config::General is inspired by the well known apache config format, in fact, this module is 100%% compatible to apache configs, but you can also just use simple name/value pairs in your config files. In addition to the capabilities of an apache config file it supports some enhancements such as here-documents, C-style comments or multiline options. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_encoding Changelog} %build %{perl_build} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changelog example.cfg README %changelog * Sun Nov 25 2007 Marius Feraru - 2.37-1.n0i.12 - version 2.37 - spec update (new reb00t build tools) * Fri Oct 19 2007 Marius Feraru - 2.36-1.n0i.11 - version 2.36 * Tue May 22 2007 Marius Feraru - 2.33-1.n0i.10 - spec file (re)created using N0i::CPAN::RPMizer 2.004 - version 2.33 * Thu Feb 02 2006 Marius Feraru 2.31-1.n0i.9 - version 2.31 * Tue Sep 20 2005 Marius Feraru 2.30-1.n0i.8 - version 2.30 * Thu Jul 28 2005 Marius Feraru 2.29-1.n0i.7 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:2.27-2.n0i.6 - automatic rebuild (perl 5.8.6) * Sun Dec 05 2004 Marius Feraru 0:2.27-2.n0i.5 - automatic rebuild (perl 5.8.6) * Fri Jul 09 2004 Marius Feraru 0:2.27-2.n0i.4 - version 2.27 * Wed May 05 2004 Marius Feraru 0:2.26-1.n0i.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Fri Mar 19 2004 Marius FERARU 0:2.26-1.n0i.2 - version 2.26 * Thu Jan 29 2004 Marius FERARU 0:2.24-0.n0i.1 - version 2.24 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 * Mon Jun 30 2003 Marius FERARU 2.21-0.n0i - Initial build.