summaryrefslogtreecommitdiff
path: root/packaging/perl-XML-LibXML.spec
blob: f3fb2b5610969bc9bbf91cc5ab391863fd67077c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#
# spec file for package perl-XML-LibXML (Version 1.70)
#
# Copyright (c) 2010 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/
#

%define cpan_name XML-LibXML
Name:           perl-XML-LibXML
Summary:        Perl Binding for libxml2
Version:        2.0134
Release:        0
Group:          Development/Libraries/Perl
License:        Artistic License ..
Url:            http://search.cpan.org/dist/XML-LibXML/
Source:         %{cpan_name}-%{version}.tar.bz2
Source1001:     %{name}.manifest

BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  libxml2-devel
BuildRequires:  perl(XML::SAX) >= 0.11

Requires:       perl(XML::SAX) >= 0.11
Provides:       perl-XML-LibXML-Common = %{version}
Obsoletes:      perl-XML-LibXML-Common < %{version}

%description
This module implements a Perl interface to the Gnome libxml2 library which
provides interfaces for parsing and manipulating XML files. This module allows
Perl programmers to make use of the highly capable validating XML parser and
the high performance DOM implementation.

Authors:
	Matt Sergeant, Christian Glahn, Petr Pajas

%prep
%setup -q -n %{cpan_name}-%{version}
cp %{SOURCE1001} .

%build
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make} %{?_smp_mflags}

%check
# %{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%manifest %{name}.manifest
%defattr(-,root,root)
%doc Changes LICENSE README

%changelog