source: projects/specs/branches/6/lib/libx/libxml2/libxml2-vl.spec @ 6312

Revision 6312, 17.5 KB checked in by iwamoto, 12 years ago (diff)

libxml2: 20120610-2 update

Line 
1Summary: Library providing XML and HTML support
2Summary(ja): XML や HTML サポートを提供するライブラリ
3Name: libxml2
4Version: 2.7.8
5Release: 4%{_dist_release}
6License: MIT
7Group: System Environment/Libraries
8Source: ftp://xmlsoft.org/libxml2-%{version}.tar.gz
9
10Patch0: libxml2-multilib.patch
11Patch1: libxml2-2.7.8-reactivate-versionning-script.patch
12Patch10: libxml2-2.7.8-CVE-2010-4494.patch
13Patch11: libxml2-2.7.8-xpath.patch
14Patch12: libxml2-2.7.8-CVE-2011-0216.patch
15Patch13: libxml2-2.7.8-CVE-2011-2821.patch
16Patch14: libxml2-2.7.8-CVE-2011-2834.patch
17Patch15: libxml2-2.7.8-CVE-2011-3905.patch
18Patch16: libxml2-2.7.8-CVE-2011-3919.patch
19Patch17: libxml2-2.7.8-CVE-2011-3102.patch
20
21BuildRoot: %{_tmppath}/%{name}-%{version}-root
22BuildRequires: python
23BuildRequires: python-devel
24BuildRequires: zlib-devel
25BuildRequires: pkgconfig
26
27URL: http://xmlsoft.org/
28
29Vendor: Project Vine
30Distribution: Vine Linux
31
32%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
33
34%description
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%description -l ja
46このライブラリはXMLファイルを扱う事ができます。XMLやHTMLファイルを読み込み、
47修正、書き込みをサポートしています。DTDに対応しており、パース時や一度
48ドキュメントが修正された後でも複雑なDTDであってもパースと確認が出来ます。
49出力は簡単なSAXストリームやメモリ内のDOM形式を使えます。この場合、
50選択したサブノードやレンジの実装に組み込まれたXPathやXPointerを使うことが
51出来ます。HTTPやFTPモジュールやURIライブラリを使って柔軟な入力/出力が可能です。
52
53%package -n compat32-%{name}
54Summary: Library providing XML and HTML support
55Summary(ja): XML や HTML サポートを提供するライブラリ
56Group: System Environment/Libraries
57Requires: %{name} = %{version}-%{release}
58
59%description -n compat32-%{name}
60This library allows to manipulate XML files. It includes support
61to read, modify and write XML and HTML files. There is DTDs support
62this includes parsing and validation even with complex DtDs, either
63at parse time or later once the document has been modified. The output
64can be a simple SAX stream or and in-memory DOM like representations.
65In this case one can use the built-in XPath and XPointer implementation
66to select subnodes or ranges. A flexible Input/Output mechanism is
67available, with existing HTTP and FTP modules and combined to an
68URI library.
69
70%description -n compat32-%{name} -l ja
71このライブラリはXMLファイルを扱う事ができます。XMLやHTMLファイルを読み込み、
72修正、書き込みをサポートしています。DTDに対応しており、パース時や一度
73ドキュメントが修正された後でも複雑なDTDであってもパースと確認が出来ます。
74出力は簡単なSAXストリームやメモリ内のDOM形式を使えます。この場合、
75選択したサブノードやレンジの実装に組み込まれたXPathやXPointerを使うことが
76出来ます。HTTPやFTPモジュールやURIライブラリを使って柔軟な入力/出力が可能です。
77
78%package devel
79Summary: Libraries, includes, etc. to develop XML and HTML applications
80Summary(ja): XML や HTML アプリケーションを開発するためのライブラリやヘッダ類
81Group: Development/Libraries
82Requires: %{name} = %{version}-%{release}
83Requires: zlib-devel
84
85%description devel
86Libraries, include files, etc you can use to develop XML applications.
87This library allows to manipulate XML files. It includes support
88to read, modify and write XML and HTML files. There is DTDs support
89this includes parsing and validation even with complex DtDs, either
90at parse time or later once the document has been modified. The output
91can be a simple SAX stream or and in-memory DOM like representations.
92In this case one can use the built-in XPath and XPointer implementation
93to select subnodes or ranges. A flexible Input/Output mechanism is
94available, with existing HTTP and FTP modules and combined to an
95URI library.
96
97%description devel -l ja
98XMLアプリケーションを開発するためのライブラリやヘッダファイル類。
99このライブラリはXMLファイルを扱う事ができます。
100XMLやHTMLファイルを読み込み、修正、書き込みをサポートしています。
101DTDに対応しており、パース時や一度ドキュメントが修正された後でも
102複雑なDTDであってもパースと確認が出来ます。
103出力は簡単なSAXストリームやメモリ内のDOM形式を使えます。この場合、
104選択したサブノードやレンジの実装に組み込まれたXPathやXPointerを使うことが
105出来ます。HTTPやFTPモジュールやURIライブラリを使って柔軟な入力/出力が可能です。
106
107%package -n compat32-%{name}-devel
108Summary: Libraries, includes, etc. to develop XML and HTML applications
109Summary(ja): XML や HTML アプリケーションを開発するためのライブラリやヘッダ類
110Group: Development/Libraries
111Requires: compat32-%{name} = %{version}-%{release}
112Requires: %{name}-devel    = %{version}-%{release}
113Requires: compat32-zlib-devel
114
115%description -n compat32-%{name}-devel
116Libraries, include files, etc you can use to develop XML applications.
117This library allows to manipulate XML files. It includes support
118to read, modify and write XML and HTML files. There is DTDs support
119this includes parsing and validation even with complex DtDs, either
120at parse time or later once the document has been modified. The output
121can be a simple SAX stream or and in-memory DOM like representations.
122In this case one can use the built-in XPath and XPointer implementation
123to select subnodes or ranges. A flexible Input/Output mechanism is
124available, with existing HTTP and FTP modules and combined to an
125URI library.
126
127%description -n compat32-%{name}-devel -l ja
128XMLアプリケーションを開発するためのライブラリやヘッダファイル類。
129このライブラリはXMLファイルを扱う事ができます。
130XMLやHTMLファイルを読み込み、修正、書き込みをサポートしています。
131DTDに対応しており、パース時や一度ドキュメントが修正された後でも
132複雑なDTDであってもパースと確認が出来ます。
133出力は簡単なSAXストリームやメモリ内のDOM形式を使えます。この場合、
134選択したサブノードやレンジの実装に組み込まれたXPathやXPointerを使うことが
135出来ます。HTTPやFTPモジュールやURIライブラリを使って柔軟な入力/出力が可能です。
136
137%package static
138Summary: Static library for libxml2
139Summary(ja): libxml2 のスタティックライブラリ
140Group: Development/Libraries
141Requires: libxml2 = %{version}-%{release}
142
143%description static
144Static library for libxml2 provided for specific uses or shaving a few
145microseconds when parsing, do not link to them for generic purpose packages.
146
147%package python
148Summary: Python bindings for the libxml2 library
149Summary(ja): libxml2 ライブラリ用の python バインディング
150Group: Development/Libraries
151Requires: %{name} = %{version}-%{release}
152Requires: python >= 2.2
153
154%description python
155The libxml2-python package contains a module that permits applications
156written in the Python programming language to use the interface
157supplied by the libxml2 library to manipulate XML files.
158
159This library allows to manipulate XML files. It includes support
160to read, modify and write XML and HTML files. There is DTDs support
161this includes parsing and validation even with complex DTDs, either
162at parse time or later once the document has been modified.
163
164%description python -l ja
165libxml2-pythonはXMLファイルを扱うlibxml2ライブラリによって提供される
166インターフェースを使用するためにpythonプログラム言語で書かれた
167アプリケーションを許可するモジュール類を含んでいます。
168
169このライブラリはXMLファイルを扱う事ができます。
170XMLやHTMLファイルを読み込み、修正、書き込みをサポートしています。
171DTDに対応しており、パース時や一度ドキュメントが修正された後でも複雑な
172DTDであってもパースと確認が出来ます。
173
174%prep
175%setup -q
176
177%patch0 -p1
178%patch1 -p1
179
180%patch10 -p1 -b .CVE-2010-4494
181%patch11 -p1 -b .xpath
182%patch12 -p1 -b .CVE-2011-0216
183%patch13 -p1 -b .CVE-2011-2821
184%patch14 -p1 -b .CVE-2011-2834
185%patch15 -p1 -b .CVE-2011-3905
186%patch16 -p1 -b .CVE-2011-3919
187%patch17 -p1 -b .CVE-2011-3102
188
189%build
190%configure
191make %{?_smp_mflags}
192gzip -9 ChangeLog
193
194
195%install
196[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
197
198%makeinstall
199gzip -9 doc/libxml2-api.xml
200
201rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
202rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
203
204# multiarch crazyness on timestamp differences or Makefile/binaries for examples
205touch -m --reference=$RPM_BUILD_ROOT/%{_includedir}/libxml2/libxml/parser.h $RPM_BUILD_ROOT/%{_bindir}/xml2-config
206
207(cd doc/examples ; make clean ; rm -rf .deps Makefile)
208
209%clean
210[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
211
212%post -p /sbin/ldconfig
213
214%postun -p /sbin/ldconfig
215
216%post -n compat32-%{name} -p /sbin/ldconfig
217
218%postun -n compat32-%{name} -p /sbin/ldconfig
219
220%files
221%defattr(-, root, root)
222%doc AUTHORS ChangeLog.gz NEWS README COPYING Copyright TODO
223%{_bindir}/xmlcatalog
224%{_bindir}/xmllint
225%{_libdir}/lib*.so.*
226%{_mandir}/man1/xmllint.1*
227%{_mandir}/man1/xmlcatalog.1*
228%{_mandir}/man3/libxml.3*
229
230%files devel
231%defattr(-, root, root)
232%doc doc/*.html doc/html doc/*.gif doc/*.png
233%doc doc/tutorial doc/libxml2-api.xml.gz
234%{_bindir}/xml2-config
235%{_datadir}/aclocal/libxml.m4
236%{_includedir}/*
237%{_libdir}/lib*.so
238%{_libdir}/lib*.a
239%{_libdir}/*.sh
240%{_libdir}/pkgconfig/libxml-2.0.pc
241%{_mandir}/man1/xml2-config.1*
242%{_datadir}/gtk-doc/html/libxml2
243
244%files static
245%defattr(-, root, root)
246%{_libdir}/lib*.a
247
248%files python
249%defattr(-, root, root)
250%doc AUTHORS ChangeLog.gz NEWS README Copyright
251%doc python/TODO
252%doc python/libxml2class.txt
253%doc python/tests/*.py
254%doc doc/*.py
255%doc doc/python.html
256%{_libdir}/python*/site-packages/*
257
258%if %{build_compat32}
259%files -n compat32-%{name}
260%defattr(-, root, root)
261%{_libdir}/lib*.so.*
262
263%files -n compat32-%{name}-devel
264%defattr(-, root, root)
265%{_libdir}/lib*.so
266%{_libdir}/lib*.a
267%{_libdir}/*.sh
268%{_libdir}/pkgconfig/libxml-2.0.pc
269%endif
270
271%changelog
272* Fri May 25 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.8-4
273- add patch17 for fix CVE-2011-3102 (xpointer off by one)
274
275* Sat Jan 28 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.8-3
276- add patch12 for fix CVE-2011-0216 (encoding.c)
277- add patch13 for fix CVE-2011-2821 (xpath)
278- add patch14 for fix CVE-2011-2834 (xpath)
279- add patch15 for fix CVE-2011-3905 (parser)
280- add patch16 for fix CVE-2011-3919 (parser)
281- Note: patch11 is for CVE-2011-1944
282
283* Wed Jun 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.7.8-2
284- add Patch11 (libxml2-2.7.8-xpath.patch)
285
286* Mon Apr 25 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.8-1
287- new upstream release with security fix (CVE-2010-4008)
288- add patch1 from fc16
289- add patch10 for fix CVE-2010-4494 (xpath)
290
291* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.7.7-2
292- build with rpm-4.8.1-1 for pkg-config file
293
294* Tue Jun 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.7.7-1
295- new upstream release
296
297* Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.7.6-6
298- rebuilt with gcc-4.4.3-3 on ppc
299
300* Sat Feb  6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.6-5
301- removed %%{_libdir}/python*/site-packages/*.{a,la}
302
303* Fri Feb  5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.7.6-4
304- rebuilt with rpm-4.8.0-3 (on ppc)
305
306* Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.7.6-3
307- rebuild with python-2.6
308
309* Tue Feb  2 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.7.6-2
310- rebuilt with new toolchain
311
312* Sun Nov  1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.6-1
313- new upstream release
314
315* Wed Aug 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.32-4
316- use smp flag in make section
317
318* Wed Aug 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.32-3
319- add patch100 for fix CVE-2009-2414/2416
320
321* Fri Jul 18 2008 Shu KONNO <owa@bg.wakwak.com> 2.6.32-2
322- rebuilt with python-2.5.2
323
324* Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.32-1
325- new upstream release
326- removed *.la files from devel package
327
328* Fri Feb 29 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.31-0vl1
329- new upstream release with security fix (CVE-2007-6284)
330
331* Wed Oct  3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.30-0vl1
332- new upstream release
333
334* Sun Feb  4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.27-0vl1
335- new upstream release
336
337* Fri Jul 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.26-0vl1
338- new upstream release
339- fixed typo
340
341* Sun May 21 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.6.23-0vl3
342- added "libdir" options
343- added compat32- packages for x86_64 architecture support
344
345* Wed Jan 18 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.6.23-0vl2
346- fix typo
347
348* Tue Jan 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.6.23-0vl1
349- new upstream release
350- add Requires: zlib-devel for libxml2-devel
351- add gtk-doc/html/libxml2 to libxml2-devel
352
353* Sat Oct 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.22-0vl1
354- new upstream release
355
356* Mon Jul 18 2005 Satoshi MACHINO <machino@vinelinux.org> 2.6.20-0vl1
357- new upstream release (libxml2-2.6.20)
358
359* Mon Apr 04 2005 Satoshi MACHINO <machino@vinelinux.org> 2.6.19-0vl1
360- new upstream version (libxml2-2.6.19)
361
362* Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 2.6.17-0vl3
363- rebuild with python-2.4.1-0vl1
364
365* Sun Feb 06 2005 Satoshi MACHINO <machino@vinelinux.org> 2.6.17-0vl2
366- fixed japanesedescription
367
368* Sun Feb 06 2005 Satoshi MACHINO <machino@vinelinux.org> 2.6.17-0vl1
369- new upstream version (libxml2-2.6.17)
370- added japanese description
371
372* Tue Dec 21 2004 Satoshi MACHINO <machino@vinelinux.org> 2.6.16-0vl1
373- new upstream version (libxml2-2.6.16)
374
375* Wed Nov 03 2004 Satoshi MACHINO <machino@vinelinux.org> 2.6.15-0vl1
376- new upstream version (libxml2-2.6.15)
377        -- some security fixes.(See http://secunia.com/advisories/13000/)
378
379* Sun Oct 17 2004 Satoshi MACHINO <machino@vinelinux.org> 2.6.14-0vl1
380- new upstream version (libxml2-2.6.14)
381
382* Tue Sep 07 2004 Satoshi MACHINO <machino@vinelinux.org> 2.6.13-0vl1
383- new upstream version (libxml2-2.6.13)
384
385* Tue Apr 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.6.9-0vl1
386- source upgrade
387
388* Sat Apr 17 2004 Shu KONNO <owa@bg.wakwak.com> 2.6.8-0vl2
389- rebuild with python-2.3.3-0vl1
390
391* Sun Apr 11 2004 Shu KONNO <owa@bg.wakwak.com> 2.6.8-0vl1.1
392- rebuild with python-2.3.3-0vl0.3 (for TestPkg)
393
394* Thu Mar 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.8-0vl1
395- new upstream release
396
397* Wed Jan 28 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.6.5-0vl1
398- new upstream release
399
400* Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.11-0vl1
401- new upstream release
402
403* Fri Sep 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.10-0vl1
404- new upstream release
405
406* Thu Jul 20 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.8-0vl1
407- source upgrade
408
409* Sat May 17 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.7-0vl1
410- source upgrade
411
412* Tue Feb 18 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.5.3-0vl1
413- source upgrade
414
415* Tue Jan 21 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.1-0vl2
416- rebuild with python-2.2.2-9vl0
417- add BuildPrereq: automake14
418
419* Fri Jan 10 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.5.1-0vl1
420- source upgrade
421- update and cleanup %files section
422
423* Sun Dec 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.4.30-0vl1
424- source upgrade
425- build with new toolchains
426
427* Tue Oct 29 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.26-0vl1
428- source update to 2.4.26
429
430* Sun May 26 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.4.21-1vl1
431- merged with 2.4.21-1
432 -- Fri Feb  1 2002 Daniel Veillard <veillard@redhat.com>
433  - Added the python package
434- clean up spec
435
436* Mon Mar 18 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.4.13-0vl2
437- changed License to MIT (not LGPL)
438- add BuildPrereq: zlib-devel >= 1.1.4
439
440* Sat Feb 23 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.4.13-0vl1
441- source update
442- cleaned up specfile
443
444* Sun Oct 14 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.4.12-0vl1
445- source update
446
447* Sun Oct 14 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.4.6-1vl1
448- Build for VineSeed
449
450* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
451
452[2.3.7]
453- Added libxml.m4 to the distribution file list
454- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
455- Moved programmer documentation into the devel package
456
457* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
458
459- corrected the spec file alpha stuff
460- switched to version 1.7.1
461- Added validation, XPath, nanohttp, removed memory leaks
462- Renamed CHAR to xmlChar
463
464* Wed Jun  2 1999 Daniel Veillard <daniel@veillard.com>
465
466- Switched to version 1.1: SAX extensions, better entities support, lots of
467  bug fixes.
468
469* Sun Oct  4 1998 Daniel Veillard <daniel@veillard.com>
470
471- Added xml-config to the package
472
473* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
474
475- Built release 0.30
Note: See TracBrowser for help on using the repository browser.