145 lines
4.6 KiB
RPMSpec
145 lines
4.6 KiB
RPMSpec
![]() |
#
|
||
|
# spec file for package perl-XML-Compile
|
||
|
#
|
||
|
# Copyright (c) 2012 SUSE LINUX Products 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.25
|
||
|
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/
|
||
|
Source: http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl-macros
|
||
|
BuildRequires: perl(Log::Report) >= 0.9
|
||
|
BuildRequires: perl(MIME::Base64) >= 3.1
|
||
|
BuildRequires: perl(Test::Deep) >= 0.095
|
||
|
BuildRequires: perl(XML::Compile::Tester) >= 0.05
|
||
|
BuildRequires: perl(XML::LibXML) >= 1.7
|
||
|
#BuildRequires: perl(anyAtomicType)
|
||
|
#BuildRequires: perl(TestTools)
|
||
|
#BuildRequires: perl(XML::Compile)
|
||
|
#BuildRequires: perl(XML::Compile::Iterator)
|
||
|
#BuildRequires: perl(XML::Compile::Schema)
|
||
|
#BuildRequires: perl(XML::Compile::Schema::BuiltInFacets)
|
||
|
#BuildRequires: perl(XML::Compile::Schema::BuiltInTypes)
|
||
|
#BuildRequires: perl(XML::Compile::Schema::Instance)
|
||
|
#BuildRequires: perl(XML::Compile::Schema::NameSpaces)
|
||
|
#BuildRequires: perl(XML::Compile::Schema::Specs)
|
||
|
#BuildRequires: perl(XML::Compile::Translate)
|
||
|
#BuildRequires: perl(XML::Compile::Util)
|
||
|
Requires: perl(Log::Report) >= 0.9
|
||
|
Requires: perl(MIME::Base64) >= 3.1
|
||
|
Requires: perl(Test::Deep) >= 0.095
|
||
|
Requires: perl(XML::Compile::Tester) >= 0.05
|
||
|
Requires: perl(XML::LibXML) >= 1.7
|
||
|
%{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 *schema itself is not strictly validated*, still a large number of
|
||
|
compile-time errors can be reported. On the other hand, the processed
|
||
|
*data is strictly validated* against the schema: both input and output
|
||
|
will follow the specs closely (unless disabled).
|
||
|
|
||
|
* .
|
||
|
|
||
|
Imports and includes, as used in the schemas, are NOT performed
|
||
|
automaticly. Schema's and such are NOT collected from internet
|
||
|
dynamically; you have to call XML::Compile::Schema/"Administration"
|
||
|
explictly 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.
|
||
|
|
||
|
For end-users, the following packages are of interest (the other are
|
||
|
support packages):
|
||
|
|
||
|
* XML::Compile::Schema
|
||
|
|
||
|
Interpret schema elements and types: create processors for XML messages.
|
||
|
|
||
|
* XML::Compile::SOAP
|
||
|
|
||
|
Use the SOAP protocol, client side.
|
||
|
|
||
|
* XML::Compile::WSDL11
|
||
|
|
||
|
Use SOAP with a WSDL version 1.1 communication specification file.
|
||
|
|
||
|
* XML::Compile::SOAP::Daemon
|
||
|
|
||
|
Create a SOAP daemon, directly from a WSDL file.
|
||
|
|
||
|
* XML::Compile::Tester
|
||
|
|
||
|
Helps you write regression tests.
|
||
|
|
||
|
* XML::Compile::Cache
|
||
|
|
||
|
Helps you administer compiled readers and writers, especially useful it
|
||
|
there are a lot of them. Extends XML::Compile::Schema.
|
||
|
|
||
|
* XML::Rewrite
|
||
|
|
||
|
Clean-up XML structures: beautify, simplify, extract.
|
||
|
|
||
|
* XML::Compile::Dumper
|
||
|
|
||
|
Enables you to save pre-compiled XML handlers, the results of any
|
||
|
'compileClient'. However, this results in huge files, so this may not be
|
||
|
worth the effort.
|
||
|
|
||
|
%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
|