Files
perl-XML-Compile/perl-XML-Compile.spec

95 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-XML-Compile
#
# 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
# 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
Version: 1.50
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/
Source0: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Log::Report) >= 1.03
BuildRequires: perl(MIME::Base64) >= 3.1
BuildRequires: perl(Test::Deep) >= 0.095
BuildRequires: perl(XML::Compile::Tester) >= 0.9
BuildRequires: perl(XML::LibXML) >= 2.01
Requires: perl(Log::Report) >= 1.03
Requires: perl(MIME::Base64) >= 3.1
Requires: perl(Test::Deep) >= 0.095
Requires: perl(XML::Compile::Tester) >= 0.9
Requires: perl(XML::LibXML) >= 2.01
%{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:
* *
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.
* *
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.
* *
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/"Administration"
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.
%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