2007-01-15 23:30:06 +00:00
|
|
|
#
|
2010-04-16 16:37:07 +00:00
|
|
|
# spec file for package perl-Config-General (Version 2.45)
|
2007-01-15 23:30:06 +00:00
|
|
|
#
|
2010-01-11 17:08:44 +00:00
|
|
|
# Copyright (c) 2010 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
|
2010-01-11 17:08:44 +00:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
2007-08-05 15:36:29 +00:00
|
|
|
Summary: Generic Config Module
|
2010-04-16 16:37:07 +00:00
|
|
|
Version: 2.45
|
2009-07-24 15:06:10 +00:00
|
|
|
Release: 1
|
2010-01-11 17:08:44 +00:00
|
|
|
License: Artistic License .. ; GPLv2+
|
2007-08-05 15:36:29 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2010-01-11 17:08:44 +00:00
|
|
|
Url: http://search.cpan.org/dist/Config-General
|
|
|
|
Source0: %{cpan_name}-%{version}.tar.bz2
|
2007-08-05 15:36:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-11 17:08:44 +00:00
|
|
|
BuildRequires: perl
|
2010-04-05 16:47:35 +00:00
|
|
|
%if 0%{?suse_version} < 1120
|
2010-01-11 17:08:44 +00:00
|
|
|
BuildRequires: perl-macros
|
2010-04-05 16:47:35 +00:00
|
|
|
%endif
|
2010-01-11 17:08:44 +00:00
|
|
|
Requires: perl = %{perl_version}
|
2010-04-16 16:37:07 +00:00
|
|
|
Provides: %{cpan_name}
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%description
|
2010-01-11 17:08:44 +00:00
|
|
|
This module opens a config file and parses it's contents
|
|
|
|
for you. After parsing the module returns a hash structure
|
|
|
|
which contains the representation of the 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% read-compatible to apache configs, but
|
|
|
|
you can also just use simple name/value pairs in your config
|
2009-07-24 15:06:10 +00:00
|
|
|
files.
|
|
|
|
|
2010-01-11 17:08:44 +00:00
|
|
|
In addition to the capabilities of a apache config file
|
|
|
|
it supports some enhancements such as here-documents, C-
|
|
|
|
style comments or multiline options. It is also possible to
|
|
|
|
save the config back to disk, which makes the module a
|
|
|
|
perfect backend for configuration interfaces.
|
2007-01-15 23:30:06 +00:00
|
|
|
|
2010-01-11 17:08:44 +00:00
|
|
|
It is possible to use variables in config files and there
|
|
|
|
exists also support for object oriented access to the
|
|
|
|
configuration.
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2010-01-11 17:08:44 +00:00
|
|
|
Thomas Linden <tlinden |AT| cpan.org>
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%prep
|
2010-01-11 17:08:44 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%build
|
2010-01-11 17:08:44 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-08-05 15:36:29 +00:00
|
|
|
|
|
|
|
%check
|
2010-01-11 17:08:44 +00:00
|
|
|
%{__make} test
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%install
|
2007-08-05 15:36:29 +00:00
|
|
|
%perl_make_install
|
2010-04-16 16:37:07 +00:00
|
|
|
%perl_process_packlist
|
2010-01-11 17:08:44 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%clean
|
2010-01-11 17:08:44 +00:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-15 23:30:06 +00:00
|
|
|
|
2010-01-11 17:08:44 +00:00
|
|
|
%files -f %{name}.files
|
2007-01-15 23:30:06 +00:00
|
|
|
%defattr(-, root, root)
|
2010-04-16 16:37:07 +00:00
|
|
|
%doc Changelog README example.cfg
|
2007-01-15 23:30:06 +00:00
|
|
|
|
2007-08-05 15:36:29 +00:00
|
|
|
%changelog
|