2011-11-17 15:19:02 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Apache-ConfigParser
|
|
|
|
#
|
2015-06-09 08:13:09 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-11-17 15:19:02 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-11-19 21:57:40 +00:00
|
|
|
Name: perl-Apache-ConfigParser
|
2015-06-09 08:13:09 +00:00
|
|
|
Version: 1.02
|
2010-11-19 21:57:40 +00:00
|
|
|
Release: 0
|
2015-06-09 08:13:09 +00:00
|
|
|
%define cpan_name Apache-ConfigParser
|
|
|
|
Summary: Load Apache configuration files
|
|
|
|
License: GPL-1.0+ or Artistic-1.0
|
2010-11-19 21:57:40 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2015-06-09 08:13:09 +00:00
|
|
|
Url: http://search.cpan.org/dist/Apache-ConfigParser/
|
|
|
|
Source0: http://www.cpan.org/authors/id/B/BZ/BZAJAC/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
|
|
|
BuildArch: noarch
|
2011-11-17 15:19:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-19 21:57:40 +00:00
|
|
|
BuildRequires: perl
|
2010-12-03 13:54:45 +00:00
|
|
|
BuildRequires: perl-macros
|
2015-06-09 08:13:09 +00:00
|
|
|
BuildRequires: perl(File::FnMatch) >= 0.01
|
|
|
|
BuildRequires: perl(Tree::DAG_Node) >= 1.04
|
|
|
|
Requires: perl(File::FnMatch) >= 0.01
|
|
|
|
Requires: perl(Tree::DAG_Node) >= 1.04
|
|
|
|
%{perl_requires}
|
2010-11-19 21:57:40 +00:00
|
|
|
|
|
|
|
%description
|
2015-06-09 08:13:09 +00:00
|
|
|
The 'Apache::ConfigParser' module is used to load an Apache configuration
|
2010-11-19 21:57:40 +00:00
|
|
|
file to allow programs to determine Apache's configuration directives and
|
2015-06-09 08:13:09 +00:00
|
|
|
contexts. The resulting object contains a tree based structure using the
|
|
|
|
'Apache::ConfigParser::Directive' class, which is a subclass of
|
|
|
|
'Tree::DAG_node', so all of the methods that enable tree based searches and
|
|
|
|
modifications from 'Tree::DAG_Node' are also available. The tree structure
|
|
|
|
is used to represent the ability to nest sections, such as <VirtualHost>,
|
|
|
|
<Directory>, etc.
|
|
|
|
|
|
|
|
Apache does a great job of checking Apache configuration files for errors
|
|
|
|
and this modules leaves most of that to Apache. This module does minimal
|
|
|
|
configuration file checking. The module currently checks for:
|
|
|
|
|
|
|
|
* Start and end context names match
|
|
|
|
|
|
|
|
The module checks if the start and end context names match. If the end
|
|
|
|
context name does not match the start context name, then it is ignored.
|
|
|
|
The module does not even check if the configuration contexts have valid
|
|
|
|
names.
|
2010-11-19 21:57:40 +00:00
|
|
|
|
|
|
|
%prep
|
2015-06-09 08:13:09 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2010-11-19 21:57:40 +00:00
|
|
|
|
|
|
|
%build
|
2015-06-09 08:13:09 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-11-19 21:57:40 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2015-06-09 08:13:09 +00:00
|
|
|
%perl_gen_filelist
|
2010-11-19 21:57:40 +00:00
|
|
|
|
2015-06-09 08:13:09 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2010-11-19 21:57:40 +00:00
|
|
|
%doc Changes README
|
|
|
|
|
2011-11-17 15:19:02 +00:00
|
|
|
%changelog
|