Files
perl-Apache-ConfigParser/perl-Apache-ConfigParser.spec

80 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-Apache-ConfigParser
#
# Copyright (c) 2015 SUSE LINUX 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/
#
Name: perl-Apache-ConfigParser
Version: 1.02
Release: 0
%define cpan_name Apache-ConfigParser
Summary: Load Apache configuration files
License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
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}
%description
The 'Apache::ConfigParser' module is used to load an Apache configuration
file to allow programs to determine Apache's configuration directives and
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%changelog