diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..048559f --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,26 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +patches: + XML-Parser-2.40.diff +preamble: |- + BuildRequires: libexpat-devel +post_prep: |- + chmod 644 samples/{canonical,xml*} +#post_build: |- +# rm unused.files +#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-XML-Parser.changes b/perl-XML-Parser.changes index ca3bec9..804f5d9 100644 --- a/perl-XML-Parser.changes +++ b/perl-XML-Parser.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Wed Aug 21 17:37:23 UTC 2019 - Pedro Monreal Gonzalez + +- Add cpanspec.yml file + +------------------------------------------------------------------- +Wed Aug 21 16:40:21 UTC 2019 - Pedro Monreal Gonzalez + +- Remove not needed files in doc section [bsc#1146634] +- Fix permissions in samples directory + +------------------------------------------------------------------- +Wed Aug 21 15:21:44 UTC 2019 - Pedro Monreal Gonzalez + +- Updated spec file with spec-celaner +- Use https and metacpan release + ------------------------------------------------------------------- Sun Feb 8 08:01:54 UTC 2015 - coolo@suse.com diff --git a/perl-XML-Parser.spec b/perl-XML-Parser.spec index 7dde838..69e3efc 100644 --- a/perl-XML-Parser.spec +++ b/perl-XML-Parser.spec @@ -1,7 +1,7 @@ # # spec file for package perl-XML-Parser # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,27 +12,29 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define cpan_name XML-Parser Name: perl-XML-Parser Version: 2.44 Release: 0 -%define cpan_name XML-Parser Summary: A perl module for parsing XML documents -License: Artistic-1.0 or GPL-1.0+ +License: Artistic-1.0 OR GPL-1.0-or-later Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/XML-Parser/ -Source: http://www.cpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz +URL: https://metacpan.org/release/%{cpan_name} +Source: https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml Patch0: XML-Parser-2.40.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} -# MANUAL +BuildRequires: perl(LWP::UserAgent) +Requires: perl(LWP::UserAgent) +# MANUAL BEGIN BuildRequires: libexpat-devel -Recommends: perl(LWP::UserAgent) +# MANUAL END %description This module provides ways to parse XML documents. It is built on top of the @@ -56,14 +58,17 @@ the _Expat_ object, not the Parser object. %prep %setup -q -n %{cpan_name}-%{version} %patch0 -find . -type f -print0 | xargs -0 chmod 644 +find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 +# MANUAL BEGIN +chmod 644 samples/{canonical,xml*} +# MANUAL END %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} %check -%{__make} test +make %{?_smp_mflags} test %install %perl_make_install @@ -72,6 +77,6 @@ find . -type f -print0 | xargs -0 chmod 644 %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes Expat Parser README samples +%doc Changes README samples/ %changelog