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

Last change on this file since 17 was 17, checked in by Yuri Dario, 15 years ago

spec: fixed suffix extensions for patched files.

  • Property svn:eol-style set to native
File size: 4.8 KB
Line 
1Summary: Library providing XML and HTML support
2Name: libxml2
3Version: 2.7.7
4Release: 1
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: %{name}-%{version}-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 .base~
72
73%build
74export CONFIG_SHELL="/bin/sh" ; \
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}.cache"
81
82make %{_smp_mflags}
83gzip -9 ChangeLog
84
85%install
86rm -fr %{buildroot}
87
88%makeinstall
89gzip -9 doc/libxml2-api.xml
90rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
91rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python*
92
93cp libxml2.dll $RPM_BUILD_ROOT%{_libdir}
94cp .libs/xml2.lib $RPM_BUILD_ROOT%{_libdir}
95cp .libs/xml2_s.a $RPM_BUILD_ROOT%{_libdir}
96rm $RPM_BUILD_ROOT%{_libdir}/xml2Conf.sh
97
98# multiarch crazyness on timestamp differences or Makefile/binaries for examples
99touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config
100(cd doc/examples ; make clean ; rm -rf .deps Makefile)
101
102%clean
103rm -fr %{buildroot}
104
105#%post -p /sbin/ldconfig
106
107#%postun -p /sbin/ldconfig
108
109%files
110%defattr(-, root, root)
111
112%doc AUTHORS ChangeLog.gz NEWS README Copyright TODO
113%doc %{_mandir}/man1/xmllint.1*
114%doc %{_mandir}/man1/xmlcatalog.1*
115%doc %{_mandir}/man3/libxml.3*
116
117%{_libdir}/lib*.dll
118%{_bindir}/xmllint.exe
119%{_bindir}/xmlcatalog.exe
120
121%files devel
122%defattr(-, root, root)
123
124%doc %{_mandir}/man1/xml2-config.1*
125%doc doc/*.html doc/html doc/*.gif doc/*.png
126%doc doc/tutorial doc/libxml2-api.xml.gz
127%doc doc/examples
128%doc %dir %{_datadir}/gtk-doc/html/libxml2
129%doc %{_datadir}/gtk-doc/html/libxml2/*.devhelp
130%doc %{_datadir}/gtk-doc/html/libxml2/*.html
131%doc %{_datadir}/gtk-doc/html/libxml2/*.png
132%doc %{_datadir}/gtk-doc/html/libxml2/*.css
133
134%{_libdir}/lib*.dll
135%{_libdir}/xml2.a
136%{_libdir}/xml2.lib
137#%{_libdir}/*.sh
138%{_includedir}/*
139%{_bindir}/xml2-config
140%{_datadir}/aclocal/libxml.m4
141%{_libdir}/pkgconfig/libxml-2.0.pc
142
143%files static
144%defattr(-, root, root)
145
146%{_libdir}/xml2_s.a
147
148#%files python
149#%defattr(-, root, root)
150#%{_libdir}/python*/site-packages/libxml2.py*
151#%{_libdir}/python*/site-packages/drv_libxml2.py*
152#%{_libdir}/python*/site-packages/libxml2mod*
153#%doc python/TODO
154#%doc python/libxml2class.txt
155#%doc python/tests/*.py
156#%doc doc/*.py
157#%doc doc/python.html
158
159%changelog
Note: See TracBrowser for help on using the repository browser.