1 | Summary: Library providing XML and HTML support
|
---|
2 | Name: libxml2
|
---|
3 | Version: 2.7.7
|
---|
4 | Release: 5%{?dist}
|
---|
5 | License: MIT
|
---|
6 | Group: Development/Libraries
|
---|
7 | Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
|
---|
8 |
|
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
---|
10 | BuildRequires: python python-devel zlib-devel pkgconfig
|
---|
11 | URL: http://xmlsoft.org/
|
---|
12 |
|
---|
13 | Patch1: libxml2-os2.diff
|
---|
14 |
|
---|
15 | Requires: python(abi) = 2.7
|
---|
16 |
|
---|
17 | %description
|
---|
18 | This library allows to manipulate XML files. It includes support
|
---|
19 | to read, modify and write XML and HTML files. There is DTDs support
|
---|
20 | this includes parsing and validation even with complex DtDs, either
|
---|
21 | at parse time or later once the document has been modified. The output
|
---|
22 | can be a simple SAX stream or and in-memory DOM like representations.
|
---|
23 | In this case one can use the built-in XPath and XPointer implementation
|
---|
24 | to select subnodes or ranges. A flexible Input/Output mechanism is
|
---|
25 | available, with existing HTTP and FTP modules and combined to an
|
---|
26 | URI library.
|
---|
27 |
|
---|
28 | %package devel
|
---|
29 | Summary: Libraries, includes, etc. to develop XML and HTML applications
|
---|
30 | Group: Development/Libraries
|
---|
31 | Requires: libxml2 = %{version}-%{release}
|
---|
32 | Requires: zlib-devel
|
---|
33 | Requires: pkgconfig
|
---|
34 |
|
---|
35 | %description devel
|
---|
36 | Libraries, include files, etc you can use to develop XML applications.
|
---|
37 | This library allows to manipulate XML files. It includes support
|
---|
38 | to read, modify and write XML and HTML files. There is DTDs support
|
---|
39 | this includes parsing and validation even with complex DtDs, either
|
---|
40 | at parse time or later once the document has been modified. The output
|
---|
41 | can be a simple SAX stream or and in-memory DOM like representations.
|
---|
42 | In this case one can use the built-in XPath and XPointer implementation
|
---|
43 | to select subnodes or ranges. A flexible Input/Output mechanism is
|
---|
44 | available, with existing HTTP and FTP modules and combined to an
|
---|
45 | URI library.
|
---|
46 |
|
---|
47 | %package static
|
---|
48 | Summary: Static library for libxml2
|
---|
49 | Group: Development/Libraries
|
---|
50 | Requires: libxml2 = %{version}-%{release}
|
---|
51 |
|
---|
52 | %description static
|
---|
53 | Static library for libxml2 provided for specific uses or shaving a few
|
---|
54 | microseconds when parsing, do not link to them for generic purpose packages.
|
---|
55 |
|
---|
56 | %package python
|
---|
57 | Summary: Python bindings for the libxml2 library
|
---|
58 | Group: Development/Libraries
|
---|
59 | Requires: libxml2 = %{version}-%{release}
|
---|
60 |
|
---|
61 | %description python
|
---|
62 | The libxml2-python package contains a module that permits applications
|
---|
63 | written in the Python programming language to use the interface
|
---|
64 | supplied by the libxml2 library to manipulate XML files.
|
---|
65 |
|
---|
66 | This library allows to manipulate XML files. It includes support
|
---|
67 | to read, modify and write XML and HTML files. There is DTDs support
|
---|
68 | this includes parsing and validation even with complex DTDs, either
|
---|
69 | at parse time or later once the document has been modified.
|
---|
70 |
|
---|
71 | %package debug
|
---|
72 | Summary: HLL debug data for exception handling support.
|
---|
73 |
|
---|
74 | %description debug
|
---|
75 | HLL debug data for exception handling support.
|
---|
76 |
|
---|
77 | %prep
|
---|
78 | %setup -q
|
---|
79 | %patch001 -p1 -b .os2~
|
---|
80 |
|
---|
81 | %build
|
---|
82 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
---|
83 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
|
---|
84 | export LIBS="-lurpo -lmmap -lpthread" ; \
|
---|
85 | %configure \
|
---|
86 | --without-python \
|
---|
87 | --enable-shared --disable-static \
|
---|
88 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
---|
89 |
|
---|
90 | make %{?smp_mflags}
|
---|
91 |
|
---|
92 | gzip -9 ChangeLog
|
---|
93 |
|
---|
94 | %install
|
---|
95 | rm -fr %{buildroot}
|
---|
96 |
|
---|
97 | %makeinstall
|
---|
98 | gzip -9 doc/libxml2-api.xml
|
---|
99 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
---|
100 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python*
|
---|
101 |
|
---|
102 | cp libxml2.dll $RPM_BUILD_ROOT%{_libdir}
|
---|
103 | cp .libs/xml2.lib $RPM_BUILD_ROOT%{_libdir}
|
---|
104 | cp .libs/xml2_s.a $RPM_BUILD_ROOT%{_libdir}
|
---|
105 | rm $RPM_BUILD_ROOT%{_libdir}/xml2Conf.sh
|
---|
106 |
|
---|
107 | # multiarch crazyness on timestamp differences or Makefile/binaries for examples
|
---|
108 | touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config
|
---|
109 | (cd doc/examples ; make clean ; rm -rf .deps Makefile)
|
---|
110 |
|
---|
111 | %clean
|
---|
112 | rm -fr %{buildroot}
|
---|
113 |
|
---|
114 | #%post -p /sbin/ldconfig
|
---|
115 |
|
---|
116 | #%postun -p /sbin/ldconfig
|
---|
117 |
|
---|
118 | %files
|
---|
119 | %defattr(-, root, root)
|
---|
120 |
|
---|
121 | %doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
|
---|
122 | %doc %{_mandir}/man1/xmllint.1*
|
---|
123 | %doc %{_mandir}/man1/xmlcatalog.1*
|
---|
124 | %doc %{_mandir}/man3/libxml.3*
|
---|
125 |
|
---|
126 | %{_libdir}/lib*.dll
|
---|
127 | %{_bindir}/xmllint.exe
|
---|
128 | %{_bindir}/xmlcatalog.exe
|
---|
129 |
|
---|
130 | %files devel
|
---|
131 | %defattr(-, root, root)
|
---|
132 |
|
---|
133 | %doc %{_mandir}/man1/xml2-config.1*
|
---|
134 | %doc doc/*.html doc/html doc/*.gif doc/*.png
|
---|
135 | %doc doc/tutorial doc/libxml2-api.xml.gz
|
---|
136 | %doc doc/examples
|
---|
137 | %doc %dir %{_datadir}/gtk-doc/html/libxml2
|
---|
138 | %doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
|
---|
139 | %doc %{_datadir}/gtk-doc/html/libxml2/*.html
|
---|
140 | %doc %{_datadir}/gtk-doc/html/libxml2/*.png
|
---|
141 | %doc %{_datadir}/gtk-doc/html/libxml2/*.css
|
---|
142 |
|
---|
143 | %{_libdir}/lib*.dll
|
---|
144 | %{_libdir}/xml2.a
|
---|
145 | %{_libdir}/xml2.lib
|
---|
146 | #%{_libdir}/*.sh
|
---|
147 | %{_includedir}/*
|
---|
148 | %{_bindir}/xml2-config
|
---|
149 | %{_datadir}/aclocal/libxml.m4
|
---|
150 | %{_libdir}/pkgconfig/libxml-2.0.pc
|
---|
151 |
|
---|
152 | %files static
|
---|
153 | %defattr(-, root, root)
|
---|
154 |
|
---|
155 | %{_libdir}/xml2_s.a
|
---|
156 |
|
---|
157 | #%files python
|
---|
158 | #%defattr(-, root, root)
|
---|
159 | #%{_libdir}/python*/site-packages/libxml2.py*
|
---|
160 | #%{_libdir}/python*/site-packages/drv_libxml2.py*
|
---|
161 | #%{_libdir}/python*/site-packages/libxml2mod*
|
---|
162 | #%doc python/TODO
|
---|
163 | #%doc python/libxml2class.txt
|
---|
164 | #%doc python/tests/*.py
|
---|
165 | #%doc doc/*.py
|
---|
166 | #%doc doc/python.html
|
---|
167 |
|
---|
168 | %files debug
|
---|
169 | %defattr(-,root,root)
|
---|
170 | %{_bindir}/*.dbg
|
---|
171 | %{_libdir}/*.dbg
|
---|
172 |
|
---|
173 | %changelog
|
---|
174 | * Mon Apr 07 2014 yd
|
---|
175 | - build for python 2.7.
|
---|
176 | - added debug package with symbolic info for exceptq.
|
---|
177 |
|
---|
178 | * Mon Jan 16 2012 yd
|
---|
179 | - rebuild with libc 0.6.4 runtime.
|
---|