2007-01-15 23:30:06 +00:00
|
|
|
#
|
2009-07-24 15:06:10 +00:00
|
|
|
# spec file for package perl-Config-General (Version 2.42)
|
2007-01-15 23:30:06 +00:00
|
|
|
#
|
2009-06-17 22:14:16 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-15 23:30:06 +00:00
|
|
|
#
|
2009-06-17 22:14:16 +00:00
|
|
|
# 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.
|
|
|
|
|
2007-08-05 15:36:29 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-15 23:30:06 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-17 22:14:16 +00:00
|
|
|
|
2007-08-05 15:36:29 +00:00
|
|
|
Name: perl-Config-General
|
2009-07-24 15:06:10 +00:00
|
|
|
%define module_name Config-General
|
2007-08-05 15:36:29 +00:00
|
|
|
Summary: Generic Config Module
|
2009-07-24 15:06:10 +00:00
|
|
|
Version: 2.42
|
|
|
|
Release: 1
|
2007-08-05 15:36:29 +00:00
|
|
|
Requires: perl = %{perl_version}
|
2009-06-17 22:14:16 +00:00
|
|
|
AutoReqProv: on
|
2009-07-24 15:06:10 +00:00
|
|
|
License: Artistic License .. ; GPL v2 or later
|
2007-08-05 15:36:29 +00:00
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Source0: %{module_name}-%{version}.tar.bz2
|
2009-07-24 15:06:10 +00:00
|
|
|
Url: http://search.cpan.org/perldoc?Config::General
|
2007-08-05 15:36:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%description
|
2009-07-24 15:06:10 +00:00
|
|
|
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.
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Thomas Linden <tom@daemon.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{module_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
|
2009-07-24 15:06:10 +00:00
|
|
|
make %{?jobs:-j%jobs}
|
2007-08-05 15:36:29 +00:00
|
|
|
|
|
|
|
%check
|
2007-01-15 23:30:06 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
2007-08-05 15:36:29 +00:00
|
|
|
%perl_make_install
|
2007-01-15 23:30:06 +00:00
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2009-07-24 15:06:10 +00:00
|
|
|
%doc Changelog README example.cfg
|
2007-01-15 23:30:06 +00:00
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%{perl_vendorarch}/auto/Config
|
|
|
|
%{perl_vendorlib}/Config
|
|
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
|
2007-08-05 15:36:29 +00:00
|
|
|
%changelog
|