File perl-Config-General.spec of Package perl-Config-General
#
# spec file for package perl-Config-General (Version 2.42)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Config-General
%define module_name Config-General
Summary: Generic Config Module
Version: 2.42
Release: 1
Requires: perl = %{perl_version}
AutoReqProv: on
License: Artistic License .. ; GPL v2 or later
Group: Development/Libraries/Perl
Source0: %{module_name}-%{version}.tar.bz2
Url: http://search.cpan.org/perldoc?Config::General
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
Thomas Linden <tom@daemon.de>
%prep
%setup -q -n %{module_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc Changelog README example.cfg
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/Config
%{perl_vendorlib}/Config
/var/adm/perl-modules/%{name}
%changelog