# # spec file for package perl-Apache-ConfigParser # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name Apache-ConfigParser Name: perl-Apache-ConfigParser Version: 1.20.0 Release: 0 # 1.02 -> normalize -> 1.20.0 %define cpan_version 1.02 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Load Apache configuration files URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BZ/BZAJAC/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::FnMatch) >= 0.10.0 BuildRequires: perl(Tree::DAG_Node) >= 1.04 Requires: perl(File::FnMatch) >= 0.10.0 Requires: perl(Tree::DAG_Node) >= 1.04 Provides: perl(Apache::ConfigParser) = %{version} Provides: perl(Apache::ConfigParser::Directive) = %{version} %undefine __perllib_provides %{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 , , 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 %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes README %changelog