source: projects/specs/branches/6/lib/libx/libxslt/libxslt-vl.spec @ 7627

Revision 7627, 12.2 KB checked in by iwamoto, 11 years ago (diff)

update: libxslt, kernel, krb5, openjpeg, perl specfiles

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary: Library providing the Gnome XSLT engine
4Summary(ja): XSLT エンジンライブラリ
5Name: libxslt
6Version: 1.1.26
7Release: 8%{_dist_release}
8License: MIT
9Group: System Environment/Libraries
10URL: http://xmlsoft.org/XSLT/
11Source0: ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz
12
13Patch1: libxslt-Fix-direct-pattern-matching-bug.patch
14Patch2: libxslt-Fix-popping-of-vars-in-xsltCompilerNodePop.patch
15Patch3: libxslt-Fix-bug-602515.patch
16Patch4: libxslt-Fix-generate-id-to-not-expose-object-addresses.patch
17Patch5: libxslt-Fix-some-case-of-pattern-parsing-errors.patch
18Patch6: libxslt-Fix-a-bug-in-selecting-XSLT-elements.patch
19Patch7: libxslt-Fix-portability-to-upcoming-libxml2-2.9.0.patch
20Patch8: libxslt-Fix-default-template-processing-on-namespace-nodes.patch
21Patch9: libxslt-Cleanup-of-the-pattern-compilation-code.patch
22Patch10: libxslt-Hardening-of-code-checking-node-types-in-various-entry-point.patch
23Patch11: libxslt-Hardening-of-code-checking-node-types-in-EXSLT.patch
24Patch12: libxslt-Fix-system-property-with-unknown-namespace.patch
25Patch13: libxslt-xsltproc-should-return-an-error-code-if-xinclude-fails.patch
26Patch14: libxslt-Fix-a-dictionary-string-usage.patch
27Patch15: libxslt-Avoid-a-heap-use-after-free-error.patch
28
29Patch16: libxslt-1.1.26_CVE-2012-6139_1.patch
30Patch17: libxslt-1.1.26_CVE-2012-6139_2.patch
31
32BuildRoot: %{_tmppath}/%{name}-%{version}-root
33BuildRequires: libxml2-devel >= 2.6.27
34BuildRequires: zlib-devel >= 1.1.4
35BuildRequires: python python-devel perl libxml2-python
36Requires: libxml2 >= 2.6.27
37
38Vendor: Project Vine
39Distribution: Vine Linux
40
41%description
42This C library allows to transform XML files into other XML files
43(or HTML, text, ...) using the standard XSLT stylesheet transformation
44mechanism. To use it you need to have a version of libxml2 >= 2.6.15
45installed. The xsltproc command is a command line interface to the XSLT engine
46
47%description -l ja
48XSLTスタイルシートを使ってXML型式をHTML型式に変換するためのライブラリです。
49
50%package devel
51Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
52Summary(ja): XSLT 開発用ファイル
53Group: Development/Libraries
54Requires: %{name} = %{version}-%{release}
55Requires: libxml2-devel >= 2.6.27
56
57%description devel
58This C library allows to transform XML files into other XML files
59(or HTML, text, ...) using the standard XSLT stylesheet transformation
60mechanism. To use it you need to have a version of libxml2 >= 2.6.15
61installed.
62
63%description devel -l ja
64XSLTのための開発用ファイルです。
65
66%package static
67Summary: Static library for %{name}
68Summary(ja): %{name} のスタティックライブラリ
69Group: Development/Libraries
70Requires: libxslt-devel = %{version}-%{release}
71
72%description static
73The libxslt-static package contains the static library for libxslt.
74
75%package python
76Summary: Python bindings for the libxslt library
77Group: Development/Libraries
78Requires: libxslt = %{version}-%{release}
79Requires: libxml2 >= 2.6.27
80Requires: python
81
82%description python
83The libxslt-python package contains a module that permits applications
84written in the Python programming language to use the interface
85supplied by the libxslt library to apply XSLT transformations.
86
87This library allows to parse sytlesheets, uses the libxml2-python
88to load and save XML and HTML files. Direct access to XPath and
89the XSLT transformation context are possible to extend the XSLT language
90with XPath functions written in Python.
91
92# compat32
93%package -n compat32-%{name}
94Summary: Library providing the Gnome XSLT engine
95Summary(ja): XSLT エンジンライブラリ
96Group: System Environment/Libraries
97Requires: %{name} = %{version}-%{release}
98Requires: compat32-libxml2 >= 2.6.27
99
100%description -n compat32-%{name}
101This C library allows to transform XML files into other XML files
102(or HTML, text, ...) using the standard XSLT stylesheet transformation
103mechanism. To use it you need to have a version of libxml2 >= 2.6.15
104installed. The xsltproc command is a command line interface to the XSLT engine
105
106%description -n compat32-%{name} -l ja
107XSLTスタイルシートを使ってXML型式をHTML型式に変換するためのライブラリです。
108
109%package -n compat32-%{name}-devel
110Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
111Summary(ja): XSLT 開発用ファイル
112Group: Development/Libraries
113Requires: %{name}-devel = %{version}-%{release}
114Requires: compat32-%{name} = %{version}-%{release}
115Requires: compat32-libxml2-devel >= 2.6.27
116
117%description -n compat32-%{name}-devel
118This C library allows to transform XML files into other XML files
119(or HTML, text, ...) using the standard XSLT stylesheet transformation
120mechanism. To use it you need to have a version of libxml2 >= 2.6.15
121installed.
122
123%description -n compat32-%{name}-devel -l ja
124XSLTのための開発用ファイルです。
125
126%prep
127%setup -q
128
129%patch1 -p1
130%patch2 -p1
131%patch3 -p1
132%patch4 -p1
133%patch5 -p1
134%patch6 -p1
135%patch7 -p1
136%patch8 -p1
137%patch9 -p1
138%patch10 -p1
139%patch11 -p1
140%patch12 -p1
141%patch13 -p1
142%patch14 -p1
143%patch15 -p1
144
145%patch16 -p1 -b .CVE-2012-6139_1
146%patch17 -p1 -b .CVE-2012-6139_2
147
148%build
149%configure --without-crypto
150make %{?_smp_mflags}
151
152%install
153[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
154
155make DESTDIR=$RPM_BUILD_ROOT install
156
157rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
158rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
159
160#
161# this is a bit ugly but tries to generate the bindings for all versions
162# of python installed
163#for i in %{prefix}/include/python*
164#do
165#    py_version=`echo $i | sed "s+%{prefix}/include/python++"`
166#    if test -x %{prefix}/bin/python$py_version
167#    then
168#        echo generating bindings for Python $py_version
169#        (cd python ; make clean ; \
170#         make PYTHON="%{prefix}/bin/python$py_version" \
171#              PYTHON_VERSION="$py_version"; \
172#         make PYTHON="%{prefix}/bin/python$py_version" \
173#              PYTHON_VERSION="$py_version" \
174#              prefix=$RPM_BUILD_ROOT%{prefix} \
175#              mandir=$RPM_BUILD_ROOT%{_mandir} install)
176#    fi
177#done
178
179%clean
180[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
181
182%post -p /sbin/ldconfig
183
184%postun -p /sbin/ldconfig
185
186%post -n compat32-%{name} -p /sbin/ldconfig
187
188%postun -n compat32-%{name} -p /sbin/ldconfig
189
190%files
191%defattr(-, root, root)
192%doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
193%doc doc/*.html doc/html doc/tutorial doc/EXSLT
194%{_bindir}/xsltproc
195%{_libdir}/lib*.so.*
196%{_mandir}/man1/xsltproc.1*
197
198%files devel
199%defattr(-, root, root)
200%doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
201%{_includedir}/*
202%{_libdir}/lib*.so
203%{_libdir}/*.sh
204%{_libdir}/pkgconfig/*.pc
205%{_bindir}/xslt-config
206%{_datadir}/aclocal/*.m4
207%{_mandir}/man3/*
208
209%files static
210%defattr(-, root, root)
211%{_libdir}/lib*.a
212
213%files python
214%defattr(-, root, root)
215%doc AUTHORS ChangeLog NEWS README Copyright FEATURES
216%doc python/TODO
217%doc python/libxsltclass.txt
218%doc python/tests/*.py
219%doc python/tests/*.xml
220%doc python/tests/*.xsl
221%{_libdir}/python*/site-packages/libxslt.py
222%{_libdir}/python*/site-packages/libxsltmod*
223
224# compat32
225%if %{build_compat32}
226%files -n compat32-%{name}
227%defattr(-, root, root)
228%{_libdir}/lib*.so.*
229
230%files -n compat32-%{name}-devel
231%defattr(-, root, root)
232%{_libdir}/lib*.so
233%{_libdir}/lib*.a
234%{_libdir}/*.sh
235%{_libdir}/pkgconfig/*.pc
236%endif
237
238%changelog
239* Sun Apr  7 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.1.26-8
240- add patch16,17 for fix CVE-2012-6139 (from debian patch)
241
242* Thu Sep 20 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.1.26-7
243- add patch1 - 15 for security fixes
244  (CVE-2011-1202 CVE-2011-3970 CVE-2012-2825 CVE-2012-2871 CVE-2012-2870)
245- add Vendor/Distri Tags
246
247* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.1.26-6
248- build with rpm-4.8.1-1 for pkg-config file
249
250* Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.26-5
251- rebuilt with gcc-4.4.3-3 on ppc
252
253* Sat Feb  6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.26-4
254- removed %%{_libdir}/python*/site-packages/*.{a,la}
255
256* Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.26-3
257- rebuild with python-2.6
258
259* Tue Feb  2 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.26-2
260- rebuilt with new toolchain
261
262* Wed Jan 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.26-1
263- new upstream release
264- split static libraries to subpackage
265
266* Mon Jul 13 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.23-3
267- added compat32 package for x86_64 arch support
268
269* Fri Jul 18 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.23-2
270- rebuilt with python-2.5.2
271
272* Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.23-1
273- new upstream release
274- remove *.la file from devel package
275
276* Wed Oct  3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.22-0vl1
277- new upstream release
278
279* Sun Feb  4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.20-0vl1
280- new upstream release
281- updated BuildRequires: libxml2-devel >= 2.6.27
282- updated Requires: libxml2 >= 2.6.27
283
284* Sat Aug 05 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.17-0vl1
285- added --libdir=%%{_libdir} to ./configure option
286
287* Fri Jul 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.17-0vl1
288- new upstream release
289- updated libxml2 dependancy
290
291* Mon Oct 17 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.15-0vl1
292- new upstream release
293
294* Tue Apr 12 2005 Satoshi MACHINO <machino@vinelinux.org> 1.1.14-0vl1
295- new upstream release
296
297* Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 1.1.12-0vl3
298- rebuild with python-2.4.1-0vl1
299
300* Thu Nov 11 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.12-0vl2
301- build without libgcrypt (add --without-crypto to configure option)
302- remove lines about snapshot release
303- use %%makeinstall
304- add %%{_libdir}/python*/site-packages/libxsltmod* to python package
305
306* Thu Nov 11 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.12-0vl1
307- source upgrade (security fix)
308- BuildPrereq: libxml2-devel >= 2.6.15
309- Requires: libxml2 >= 2.6.15
310- add doc/EXSLT to %%doc
311
312* Tue Sep 07 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.9-0vl1
313- new upstream version
314
315* Tue Apr 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.6-0vl1
316- source upgrade
317- BuildPrereq: libxml2-devel >= 2.6.8
318- Requires: libxml2 >= 2.6.8
319
320* Sat Apr 17 2004 Shu KONNO <owa@bg.wakwak.com> 1.1.4-0vl2
321- rebuild with python-2.3.3-0vl1
322
323* Sat Apr 10 2004 Shu KONNO <owa@bg.wakwak.com> 1.1.4-0vl1.1
324- rebuild with python-2.3.3-0vl0.3 (for TestPkg)
325
326* Thu Mar 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.4-0vl1
327- new upstream release
328
329* Thu Jan 29 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2-0vl1
330- new upstream release
331- BuildPrereq: libxml2-devel >= 2.6.3
332- Requires: libxml2 >= 2.6.3
333
334* Fri Sep 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.32-0vl1
335- new upstream release
336
337* Sun Jul 20 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.31-0vl1
338- source upgrade
339
340* Sat May 17 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.30-0vl1
341- source upgrade
342
343* Tue Feb 17 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.26-0vl1
344- source upgrade
345- BuildPrereq: libxml2-devel >= 2.5.2
346- Requires: libxml2 >= 2.5.2
347
348* Sun Dec 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.23-0vl1
349- source upgrade
350- build with new toolchains
351
352* Tue Oct 29 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.22-0vl1
353- source update to 1.0.22
354- BuildPrereq: libxml2-devel >= 2.4.23
355- Requires: libxml2 >= 2.4.23
356
357* Sun May 26 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.17-1vl1
358- merged with 1.0.17-1
359 -- Fri Feb  8 2002 Daniel.Veillard <veillard@redhat.com>
360  - added the python module
361- clean up spec
362- BuildPrereq: libxml2-devel >= 2.4.17
363- Requires: libxml2 >= 2.4.17
364
365* Mon Mar 18 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.10-0vl2
366- changed License to MIT (not LGPL)
367- add BuildPrereq: zlib-devel >= 1.1.4 perl
368
369* Sun Feb 24 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.10-0vl1
370- source update
371- BuildPrereq: libxml2-devel >= 2.4.13
372
373* Thu Oct 11 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.9-0vl1
374- add gtk-doc to BuildPrereq
375
376* Thu Oct 11 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com>
377- 1.0.1-1vl2
378- Build for VineSeed
379
380* Fri Aug 24 2001 Tuscus Pino-potamus Japonus <ursragna@hotmail.com>
381- 1.0.1-1vl1
382- cleaning
383
384* Fri Jul 27 2001 Tuscus Pino-potamus Japonus <ursragna@hotmail.com>
385- 1.0.1-1vl0
386- modify for Vine Linux 2.1x
387
388* Mon Jan 22 2001 Daniel.Veillard <daniel@veillard.com>
389- created based on libxml2 spec file
Note: See TracBrowser for help on using the repository browser.