forked from vmware/photon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXML-Parser.spec
76 lines (67 loc) · 2.59 KB
/
XML-Parser.spec
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
71
72
73
74
75
76
Summary: XML-Parser perl module
Name: XML-Parser
Version: 2.46
Release: 3%{?dist}
License: GPL+
URL: http://search.cpan.org/~toddr/%{name}-%{version}/
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/%{name}-%{version}.tar.gz
%define sha512 XML-Parser=c4609495cc5ca34952f61876a690ef76d42eee6689d1bedb8036c9eab918525ec5213f1639c7178c029ee0f8765a2ca5eb0197f6e39b8be6d5dbc3f3c1d0b389
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon
BuildRequires: expat-devel
BuildRequires: perl
Requires: expat
Requires: perl
%description
The XML::Parser module is a Perl extension interface to James Clark's XML parser, expat
%prep
%autosetup
%build
perl Makefile.PL
if [ %{_host} != %{_build} ]; then
ln -s /target-%{_arch}%{perl_privlib}/%{_arch}-linux %{perl_privlib}/%{_arch}-linux
mkdir -p %{perl_vendorlib}
ln -s /target-%{_arch}%{perl_vendorlib}/%{_arch}-linux %{perl_vendorlib}/%{_arch}-linux
# ugly hack again, similarly to cmake:
ln -sf %{_arch}-linux-gnu-gcc /usr/bin/gcc
ln -sf %{_arch}-linux-gnu-g++ /usr/bin/g++
ln -sf %{_arch}-linux-gnu-ld /usr/bin/ld
ln -sf %{_arch}-linux-gnu-ar /usr/bin/ar
fi
make %{?_smp_mflags}
%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install
%define __perl_version 5.36.0
rm %{buildroot}/%{_libdir}/perl5/%{__perl_version}/*/perllocal.pod
%check
make %{?_smp_mflags} test
%files
%defattr(-,root,root)
%{_libdir}/perl5/*
%{_mandir}/man3/*
%changelog
* Thu Dec 08 2022 Dweep Advani <[email protected]> 2.46-3
- Perl version upgrade to 5.36.0
* Thu Aug 20 2020 Dweep Advani <[email protected]> 2.46-2
- Rebuild for perl version upgrade to 5.30.1
* Thu Jun 25 2020 Gerrit Photon <[email protected]> 2.46-1
- Automatic Version Bump
* Thu Nov 15 2018 Alexey Makhalov <[email protected]> 2.44-6
- Cross compilation support
* Fri Sep 21 2018 Dweep Advani <[email protected]> 2.44-5
- Consuming perl version upgrade of 5.28.0
* Tue Nov 14 2017 Alexey Makhalov <[email protected]> 2.44-4
- Aarch64 support
* Tue Apr 4 2017 Robert Qi <[email protected]> 2.44-3
- Update to version 2.44-3 since perl version updated.
* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> 2.44-2
- GA - Bump release of all rpms
* Tue Feb 23 2016 Harish Udaiya Kumar <[email protected]> 2.44-1
- Upgraded to version 2.44
* Mon Feb 01 2016 Anish Swaminathan <[email protected]> 2.41-3
- Fix for multithreaded perl
* Wed Jan 13 2016 Anish Swaminathan <[email protected]> 2.41-2
- Fix for new perl
* Thu Oct 23 2014 Divya Thaluru <[email protected]> 2.41-1
- Initial build. First version