source: spec/trunk/SPECS/libxml2.spec@ 858

Last change on this file since 858 was 406, checked in by Yuri Dario, 11 years ago

spec: libxml2, libxslt, added debug package with symbolic info for exceptq.

  • Property svn:eol-style set to native
File size: 5.2 KB
Line 
1Summary: Library providing XML and HTML support
2Name: libxml2
3Version: 2.7.7
4Release: 5%{?dist}
5License: MIT
6Group: Development/Libraries
7Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
8
9BuildRoot: %{_tmppath}/%{name}-%{version}-root
10BuildRequires: python python-devel zlib-devel pkgconfig
11URL: http://xmlsoft.org/
12
13Patch1: libxml2-os2.diff
14
15Requires: python(abi) = 2.7
16
17%description
18This library allows to manipulate XML files. It includes support
19to read, modify and write XML and HTML files. There is DTDs support
20this includes parsing and validation even with complex DtDs, either
21at parse time or later once the document has been modified. The output
22can be a simple SAX stream or and in-memory DOM like representations.
23In this case one can use the built-in XPath and XPointer implementation
24to select subnodes or ranges. A flexible Input/Output mechanism is
25available, with existing HTTP and FTP modules and combined to an
26URI library.
27
28%package devel
29Summary: Libraries, includes, etc. to develop XML and HTML applications
30Group: Development/Libraries
31Requires: libxml2 = %{version}-%{release}
32Requires: zlib-devel
33Requires: pkgconfig
34
35%description devel
36Libraries, include files, etc you can use to develop XML applications.
37This library allows to manipulate XML files. It includes support
38to read, modify and write XML and HTML files. There is DTDs support
39this includes parsing and validation even with complex DtDs, either
40at parse time or later once the document has been modified. The output
41can be a simple SAX stream or and in-memory DOM like representations.
42In this case one can use the built-in XPath and XPointer implementation
43to select subnodes or ranges. A flexible Input/Output mechanism is
44available, with existing HTTP and FTP modules and combined to an
45URI library.
46
47%package static
48Summary: Static library for libxml2
49Group: Development/Libraries
50Requires: libxml2 = %{version}-%{release}
51
52%description static
53Static library for libxml2 provided for specific uses or shaving a few
54microseconds when parsing, do not link to them for generic purpose packages.
55
56%package python
57Summary: Python bindings for the libxml2 library
58Group: Development/Libraries
59Requires: libxml2 = %{version}-%{release}
60
61%description python
62The libxml2-python package contains a module that permits applications
63written in the Python programming language to use the interface
64supplied by the libxml2 library to manipulate XML files.
65
66This library allows to manipulate XML files. It includes support
67to read, modify and write XML and HTML files. There is DTDs support
68this includes parsing and validation even with complex DTDs, either
69at parse time or later once the document has been modified.
70
71%package debug
72Summary: HLL debug data for exception handling support.
73
74%description debug
75HLL debug data for exception handling support.
76
77%prep
78%setup -q
79%patch001 -p1 -b .os2~
80
81%build
82export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
83export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
84export LIBS="-lurpo -lmmap -lpthread" ; \
85%configure \
86 --without-python \
87 --enable-shared --disable-static \
88 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
89
90make %{?smp_mflags}
91
92gzip -9 ChangeLog
93
94%install
95rm -fr %{buildroot}
96
97%makeinstall
98gzip -9 doc/libxml2-api.xml
99rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
100rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python*
101
102cp libxml2.dll $RPM_BUILD_ROOT%{_libdir}
103cp .libs/xml2.lib $RPM_BUILD_ROOT%{_libdir}
104cp .libs/xml2_s.a $RPM_BUILD_ROOT%{_libdir}
105rm $RPM_BUILD_ROOT%{_libdir}/xml2Conf.sh
106
107# multiarch crazyness on timestamp differences or Makefile/binaries for examples
108touch -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
112rm -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.
Note: See TracBrowser for help on using the repository browser.