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

Last change on this file since 360 was 280, checked in by Yuri Dario, 14 years ago

spec: python, xml2, sqlite3, rebuild with libc 0.6.4 runtime.

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