diff --git a/Apache-ConfigParser-1.01.tar.gz b/Apache-ConfigParser-1.01.tar.gz deleted file mode 100644 index 274f5fc..0000000 --- a/Apache-ConfigParser-1.01.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d4d8c74911480a1ac62857a70d7bebb78106a8d5930067ce3e9c82f59493cac -size 201739 diff --git a/Apache-ConfigParser-1.02.tar.gz b/Apache-ConfigParser-1.02.tar.gz new file mode 100644 index 0000000..aa53bda --- /dev/null +++ b/Apache-ConfigParser-1.02.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63af31eaefda27e1520b9ba53edb1697a45ce5ba5533fa581b858a4e8f592214 +size 203342 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-Apache-ConfigParser.changes b/perl-Apache-ConfigParser.changes index af363cc..d15854a 100644 --- a/perl-Apache-ConfigParser.changes +++ b/perl-Apache-ConfigParser.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jun 7 08:11:02 UTC 2015 - coolo@suse.com + +- updated to 1.02 + see /usr/share/doc/packages/perl-Apache-ConfigParser/Changes + ------------------------------------------------------------------- Wed Dec 1 06:55:30 UTC 2010 - coolo@novell.com diff --git a/perl-Apache-ConfigParser.spec b/perl-Apache-ConfigParser.spec index 3ffa2cc..3477c57 100644 --- a/perl-Apache-ConfigParser.spec +++ b/perl-Apache-ConfigParser.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Apache-ConfigParser # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -15,63 +15,65 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Apache-ConfigParser -Version: 1.01 +Version: 1.02 Release: 0 -Summary: Apache configuration parser module for Perl -# http://search.cpan.org/CPAN/authors/id/B/BZ/BZAJAC/Apache-ConfigParser-%{version}.tar.gz -Source: Apache-ConfigParser-%{version}.tar.gz -Url: http://search.cpan.org/dist/Apache-ConfigParser +%define cpan_name Apache-ConfigParser +Summary: Load Apache configuration files +License: GPL-1.0+ or Artistic-1.0 Group: Development/Libraries/Perl -License: Perl License +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 -%{perl_requires} -Requires: perl(Tree::DAG_Node) -Requires: perl(File::FnMatch) -Requires: perl(File::Spec) BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Tree::DAG_Node) -BuildRequires: perl(File::FnMatch) -BuildRequires: perl(File::Spec) -BuildRequires: perl(Test::More) +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 +The 'Apache::ConfigParser' module is used to load an Apache configuration file to allow programs to determine Apache's configuration directives and -contexts. +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 -%setup -q -n "Apache-ConfigParser-%{version}" -%__sed -i '/^auto_install/d' Makefile.PL +%setup -q -n %{cpan_name}-%{version} %build -%__perl Makefile.PL PREFIX="%{_prefix}" -%__make %{?jobs:-j%{jobs}} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist +%perl_gen_filelist -%check -%__make test - -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - -%files -%defattr(-,root,root) +%files -f %{name}.files +%defattr(-,root,root,755) %doc Changes README -%dir %{perl_vendorlib}/Apache -%{perl_vendorlib}/Apache/ConfigParser -%{perl_vendorlib}/Apache/ConfigParser.pm -%doc %{perl_vendorlib}/Apache/ConfigParser.pod -%dir %{perl_vendorarch}/auto/Apache -%{perl_vendorarch}/auto/Apache/ConfigParser -%doc %{perl_man3dir}/Apache::ConfigParser.%{perl_man3ext}%{ext_man} -%doc %{perl_man3dir}/Apache::ConfigParser::*.%{perl_man3ext}%{ext_man} %changelog