2012-06-01 05:32:03 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-XML-Compile
|
|
|
|
#
|
2016-01-19 15:29:02 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-06-01 05:32:03 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-XML-Compile
|
2016-07-17 08:15:25 +00:00
|
|
|
Version: 1.53
|
2012-06-01 05:32:03 +00:00
|
|
|
Release: 0
|
|
|
|
%define cpan_name XML-Compile
|
|
|
|
Summary: Compilation based XML processing
|
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/dist/XML-Compile/
|
2015-04-17 04:53:26 +00:00
|
|
|
Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
|
|
|
|
Source1: cpanspec.yml
|
2012-06-01 05:32:03 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2015-04-17 04:53:26 +00:00
|
|
|
BuildRequires: perl(Log::Report) >= 1.03
|
2012-06-01 05:32:03 +00:00
|
|
|
BuildRequires: perl(MIME::Base64) >= 3.1
|
|
|
|
BuildRequires: perl(Test::Deep) >= 0.095
|
2015-04-17 04:53:26 +00:00
|
|
|
BuildRequires: perl(XML::Compile::Tester) >= 0.9
|
|
|
|
BuildRequires: perl(XML::LibXML) >= 2.01
|
|
|
|
Requires: perl(Log::Report) >= 1.03
|
2012-06-01 05:32:03 +00:00
|
|
|
Requires: perl(MIME::Base64) >= 3.1
|
|
|
|
Requires: perl(Test::Deep) >= 0.095
|
2015-04-17 04:53:26 +00:00
|
|
|
Requires: perl(XML::Compile::Tester) >= 0.9
|
|
|
|
Requires: perl(XML::LibXML) >= 2.01
|
2012-06-01 05:32:03 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Many (professional) applications process XML messages based on a formal
|
|
|
|
specification, expressed in XML Schemas. XML::Compile translates between
|
|
|
|
XML and Perl with the help of such schemas. Your Perl program only handles
|
|
|
|
a tree of nested HASHes and ARRAYs, and does not need to understand
|
|
|
|
namespaces and other general XML and schema nastiness.
|
|
|
|
|
|
|
|
Three serious WARNINGS:
|
|
|
|
|
2016-01-19 15:29:02 +00:00
|
|
|
* The focus is on *data-centric XML*, which means that mixed elements are not
|
|
|
|
handler automatically: you need to work with XML::LibXML nodes yourself, on
|
|
|
|
these spots.
|
2012-06-01 05:32:03 +00:00
|
|
|
|
2016-01-19 15:29:02 +00:00
|
|
|
* The *data is not strictly validated*, still a large number of compile-time
|
|
|
|
errors can be reported. Values are checked quite thoroughly. Structure as
|
|
|
|
well.
|
2012-06-01 05:32:03 +00:00
|
|
|
|
2016-01-19 15:29:02 +00:00
|
|
|
* Imports and includes, as used in the schemas, are NOT performed
|
|
|
|
automatically. Schema's and such are NOT collected from internet
|
|
|
|
dynamically; you have to call XML::Compile::Schema::importDefinitions()
|
|
|
|
explicitly with filenames of locally stored copies. Includes do only work
|
|
|
|
if they have a targetNamespace defined, which is the same as that of the
|
|
|
|
schema it is included into.
|
2012-06-01 05:32:03 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
|
|
|
%doc ChangeLog README README.todo
|
|
|
|
|
|
|
|
%changelog
|