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

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