Browse code

Add perl-XML-LibXML and its dependencies. (bug 2102188)

Change-Id: I9a21f5434310821aef63efed795f2c80f2b8767b
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/5082
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Sharath George

Xiaolin Li authored on 2018/04/25 07:53:03
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,49 @@
0
+Summary:        Perl interface to the Gnome libxml2 library
1
+Name:           perl-XML-LibXML
2
+Version:        2.0132
3
+Release:        1%{?dist}
4
+Group:          Development/Libraries
5
+License:        (GPL+ or Artistic) and Public Domain
6
+URL:            http://search.cpan.org/dist/XML-LibXML/
7
+Source0:        http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXML-%{version}.tar.gz
8
+%define sha1    XML-LibXML=c5e316a5fabd656324d9d75c33b2593289c28c33
9
+Vendor:         VMware, Inc.
10
+Distribution:   Photon
11
+BuildRequires:  libxml2-devel >= 2.9.6
12
+BuildRequires:  perl
13
+BuildRequires:  perl-DBI
14
+Requires:       perl-DBI
15
+Requires:       perl
16
+Requires:       perl-XML-NamespaceSupport
17
+Requires:       perl-XML-SAX
18
+
19
+%description
20
+This module implements a Perl interface to the Gnome libxml2 library which
21
+provides interfaces for parsing and manipulating XML files. This module allows
22
+Perl programmers to make use of the highly capable validating XML parser and
23
+the high performance DOM implementation.
24
+
25
+%prep
26
+%setup -q -n XML-LibXML-%{version}
27
+
28
+%build
29
+CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
30
+make %{?_smp_mflags} OPTIMIZE="%{optflags}"
31
+
32
+%install
33
+make pure_install DESTDIR=%{buildroot}
34
+find %{buildroot} -type f \( -name .packlist -o \
35
+     -name '*.bs' -size 0 \) -exec rm -f {} ';'
36
+%{_fixperms} %{buildroot}/*
37
+
38
+%check
39
+make test
40
+
41
+%files
42
+%{perl_vendorarch}/auto/*
43
+%{perl_vendorarch}/XML/
44
+%{_mandir}/man3/*
45
+
46
+%changelog
47
+*   Tue Apr 24 2018 Xiaolin Li <xiaolinl@vmware.com> 2.0132-1
48
+-   Initial version.
0 49
new file mode 100644
... ...
@@ -0,0 +1,47 @@
0
+%global debug_package %{nil}
1
+Summary:        Offers a simple way to process namespaced XML names
2
+Name:           perl-XML-NamespaceSupport
3
+Version:        1.12
4
+Release:        1%{?dist}
5
+Group:          Development/Libraries
6
+License:        (GPL+ or Artistic) and Public Domain
7
+URL:            http://search.cpan.org/dist/XML-NamespaceSupport/
8
+Source0:        http://search.cpan.org/CPAN/authors/id/P/PE/PERIGRIN/XML-NamespaceSupport-%{version}.tar.gz
9
+%define sha1    XML-NamespaceSupport=f07cf650e0bd52714fc3da39d19a95bc6290e4ef
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+BuildRequires:  perl
13
+BuildRequires:  perl-DBI
14
+Requires:       perl-DBI
15
+Requires:       perl
16
+BuildArch:      noarch
17
+
18
+%description
19
+This module offers a simple way to process namespaced XML names (unames) from within any application that may need them. It also helps maintain a prefix to namespace URI map, and provides a number of basic checks.
20
+
21
+The model for this module is SAX2's NamespaceSupport class, readable at
22
+http://www.saxproject.org/namespaces.html
23
+
24
+%prep
25
+%setup -q -n XML-NamespaceSupport-%{version}
26
+
27
+%build
28
+CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
29
+make %{?_smp_mflags} OPTIMIZE="%{optflags}"
30
+
31
+%install
32
+make pure_install DESTDIR=%{buildroot}
33
+find %{buildroot} -type f \( -name .packlist -o \
34
+     -name '*.bs' -size 0 \) -exec rm -f {} ';'
35
+%{_fixperms} %{buildroot}/*
36
+
37
+%check
38
+make test
39
+
40
+%files
41
+%{perl_vendorlib}/XML/*
42
+%{_mandir}/man3/*
43
+
44
+%changelog
45
+*   Tue Apr 24 2018 Xiaolin Li <xiaolinl@vmware.com> 1.12-1
46
+-   Initial version.
0 47
new file mode 100644
... ...
@@ -0,0 +1,45 @@
0
+%global debug_package %{nil}
1
+Summary:        Simple API for XML
2
+Name:           perl-XML-SAX
3
+Version:        1.00
4
+Release:        1%{?dist}
5
+Group:          Development/Libraries
6
+License:        (GPL+ or Artistic) and Public Domain
7
+URL:            http://search.cpan.org/dist/XML-SAX/
8
+Source0:        http://search.cpan.org/CPAN/authors/id/G/GR/GRANTM/XML-SAX-%{version}.tar.gz
9
+%define sha1    XML-SAX=1151e38f305dd1362372c6f9834fae2200d90dbc
10
+Vendor:         VMware, Inc.
11
+Distribution:   Photon
12
+BuildRequires:  perl
13
+BuildRequires:  perl-DBI
14
+Requires:       perl-DBI
15
+Requires:       perl
16
+Requires:       perl-XML-NamespaceSupport
17
+BuildArch:      noarch
18
+
19
+%description
20
+XML::SAX is a SAX parser access API for Perl. It includes classes and APIs required for implementing SAX drivers, along with a factory class for returning any SAX parser installed on the user's system.
21
+
22
+%prep
23
+%setup -q -n XML-SAX-%{version}
24
+
25
+%build
26
+CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
27
+make %{?_smp_mflags} OPTIMIZE="%{optflags}"
28
+
29
+%install
30
+make pure_install DESTDIR=%{buildroot}
31
+find %{buildroot} -type f \( -name .packlist -o \
32
+     -name '*.bs' -size 0 \) -exec rm -f {} ';'
33
+%{_fixperms} %{buildroot}/*
34
+
35
+%check
36
+make test
37
+
38
+%files
39
+%{perl_vendorlib}/XML/*
40
+%{_mandir}/man3/*
41
+
42
+%changelog
43
+*   Tue Apr 24 2018 Xiaolin Li <xiaolinl@vmware.com> 1.00-1
44
+-   Initial version.