8
0

Accepting request 365331 from home:AndreasStieger:branches:devel:languages:perl

perl-XML-Structured 1.2

OBS-URL: https://build.opensuse.org/request/show/365331
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-XML-Structured?expand=0&rev=6
This commit is contained in:
Stephan Kulow
2016-03-08 08:27:11 +00:00
committed by Git OBS Bridge
parent 66d24ea2bf
commit 916d2af7f2
5 changed files with 32 additions and 28 deletions

BIN
XML-Structured-1.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
XML-Structured-1.1.tar.bz2 (Stored with Git LFS)

Binary file not shown.

BIN
XML-Structured-1.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 3 12:56:56 UTC 2016 - astieger@suse.com
- updated to version 1.2 (some from Leap 42.1)
-------------------------------------------------------------------
Wed Dec 1 13:36:21 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-XML-Structured
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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
@@ -16,30 +16,36 @@
#
Name: perl-XML-Structured
Version: 1.1
Release: 0
# define the name from CPAN
%define cpan_name XML-Structured
BuildRequires: perl-macros
%define cpan_name XML-Structured
Name: perl-XML-Structured
Version: 1.2
Release: 0
Summary: Simple conversion API from XML to perl structures and back
License: Artistic-1.0
Group: Development/Libraries/Perl
License: Artistic License, Other License(s), see package
Url: http://search.cpan.org/~mls/
Summary: Simple conversion API from XML to perl structures and back
Source: %cpan_name-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
Source: %{cpan_name}-%{version}.tar.bz2
# perl(XML::Parser) has choice: brp-check-suse perl-XML-Parser
BuildRequires: perl-XML-Parser
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
%if 0%{?suse_version} < 1140
Requires: perl = %{perl_version}
%else
%{perl_requires}
%endif
%if 0%{?suse_version} > 1120
BuildRequires: perl(Test::Pod) perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
%endif
%description
Provides a way to convert XML data into a predefined perl data structure and
back to XML. Unlike with modules like XML::Simple, it is an error if the XML
data does not match the provided skeleton (the "DTD").
data does not match the provided skeleton (the "DTD").
Another advantage is that the order of the attributes and elements is taken
from the DTD when converting back to xml.
@@ -47,23 +53,19 @@ from the DTD when converting back to xml.
%setup -q -n %{cpan_name}-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make %{?jobs:-j%jobs}
perl Makefile.PL OPTIMIZE="%{optflags} -Wall"
make %{?_smp_mflags}
%check
make test
make %{?_smp_mflags} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root)
%doc MANIFEST README
%doc MANIFEST README speed test
%changelog