8
0

Accepting request 725126 from home:pmonrealgonzalez:branches:devel:languages:perl

- Add cpanspec.yml file

- Remove not needed files in doc section [bsc#1146634]
- Fix permissions in samples directory

- Updated spec file with spec-celaner
- Use https and metacpan release

OBS-URL: https://build.opensuse.org/request/show/725126
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Parser?expand=0&rev=33
This commit is contained in:
2019-08-28 10:31:29 +00:00
committed by Git OBS Bridge
parent 2e90f6c366
commit e577712fb8
3 changed files with 62 additions and 14 deletions

26
cpanspec.yml Normal file
View File

@@ -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

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Wed Aug 21 17:37:23 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Add cpanspec.yml file
-------------------------------------------------------------------
Wed Aug 21 16:40:21 UTC 2019 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- 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 <pmonrealgonzalez@suse.com>
- Updated spec file with spec-celaner
- Use https and metacpan release
-------------------------------------------------------------------
Sun Feb 8 08:01:54 UTC 2015 - coolo@suse.com

View File

@@ -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