2007-01-15 23:30:06 +00:00
|
|
|
#
|
2011-03-31 12:24:32 +00:00
|
|
|
# spec file for package perl-Config-General
|
2007-01-15 23:30:06 +00:00
|
|
|
#
|
2013-06-04 08:39:58 +00:00
|
|
|
# Copyright (c) 2013 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
|
|
|
#
|
|
|
|
|
2011-03-31 12:24:32 +00:00
|
|
|
|
2007-08-05 15:36:29 +00:00
|
|
|
Name: perl-Config-General
|
2013-06-04 08:39:58 +00:00
|
|
|
Version: 2.51
|
|
|
|
Release: 0
|
2010-07-16 13:34:28 +00:00
|
|
|
%define cpan_name Config-General
|
2007-08-05 15:36:29 +00:00
|
|
|
Summary: Generic Config Module
|
2013-06-04 08:39:58 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2011-03-31 09:11:08 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-04 08:39:58 +00:00
|
|
|
Url: http://search.cpan.org/dist/Config-General/
|
|
|
|
Source: http://www.cpan.org/authors/id/T/TL/TLINDEN/%{cpan_name}-%{version}.tar.gz
|
2013-06-21 08:48:42 +00:00
|
|
|
# PATCH-FIX-UPSTREAM RT#85132
|
|
|
|
Patch0: 0001-Fix-deprecation-warning-in-5.18-about-splitting-in-r.patch
|
2007-08-05 15:36:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-01-11 17:08:44 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-04 08:39:58 +00:00
|
|
|
#BuildRequires: perl(Config::General) >= 1.18
|
|
|
|
#BuildRequires: perl(Config::General::Extended)
|
|
|
|
#BuildRequires: perl(Config::General::Interpolated)
|
|
|
|
#BuildRequires: perl(Tie::IxHash)
|
2011-03-31 09:11:08 +00:00
|
|
|
%{perl_requires}
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%description
|
2011-03-31 09:11:08 +00:00
|
|
|
This module opens a config file and parses its contents for you. The *new*
|
2010-07-16 13:34:28 +00:00
|
|
|
method requires one parameter which needs to be a filename. The method
|
2011-03-31 09:11:08 +00:00
|
|
|
*getall* returns a hash which contains all options and its associated
|
|
|
|
values of your config file.
|
2009-07-24 15:06:10 +00:00
|
|
|
|
2011-03-31 09:11:08 +00:00
|
|
|
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.
|
2007-01-15 23:30:06 +00:00
|
|
|
|
2011-03-31 09:11:08 +00:00
|
|
|
In addition to the capabilities of an Apache config file it supports some
|
2010-07-16 13:34:28 +00:00
|
|
|
enhancements such as here-documents, C-style comments or multiline options.
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%prep
|
2010-01-11 17:08:44 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2013-06-21 08:48:42 +00:00
|
|
|
%patch0 -p1
|
2007-01-15 23:30:06 +00:00
|
|
|
|
|
|
|
%build
|
2011-03-31 09:11:08 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
2010-07-16 13:34:28 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
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
|
2011-03-31 09:11:08 +00:00
|
|
|
%perl_process_packlist
|
2010-01-11 17:08:44 +00:00
|
|
|
%perl_gen_filelist
|
2007-01-15 23:30:06 +00:00
|
|
|
|
2010-01-11 17:08:44 +00:00
|
|
|
%files -f %{name}.files
|
2013-06-04 08:39:58 +00:00
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc Changelog README
|
2007-01-15 23:30:06 +00:00
|
|
|
|
2007-08-05 15:36:29 +00:00
|
|
|
%changelog
|