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

Revision 5534, 17.3 KB checked in by iwamoto, 13 years ago (diff)

libxml2-vl: fix CVE-2011-0216,2821,2834,3905,3919

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