libxslt-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: Library providing the Gnome XSLT engine
  3. Summary(ja): XSLT エンジンライブラリ
  4. Name: libxslt
  5. Version: 1.1.28
  6. Release: 2%{_dist_release}
  7. License: MIT
  8. Group: System Environment/Libraries
  9. URL: http://xmlsoft.org/XSLT/
  10. Source0: ftp://xmlsoft.org/XSLT/%{name}-%{version}.tar.gz
  11. # from upstream
  12. Patch0: libxslt-1.1.28-CVE-2015-7995.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: libxml2-devel >= 2.6.27
  15. BuildRequires: zlib-devel >= 1.1.4
  16. BuildRequires: python python-devel perl libxml2-python
  17. Requires: libxml2 >= 2.6.27
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. %description
  21. This C library allows to transform XML files into other XML files
  22. (or HTML, text, ...) using the standard XSLT stylesheet transformation
  23. mechanism. To use it you need to have a version of libxml2 >= 2.6.15
  24. installed. The xsltproc command is a command line interface to the XSLT engine
  25. %description -l ja
  26. XSLTスタイルシートを使ってXML型式をHTML型式に変換するためのライブラリです。
  27. %package devel
  28. Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
  29. Summary(ja): XSLT 開発用ファイル
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: libxml2-devel >= 2.6.27
  33. %description devel
  34. This C library allows to transform XML files into other XML files
  35. (or HTML, text, ...) using the standard XSLT stylesheet transformation
  36. mechanism. To use it you need to have a version of libxml2 >= 2.6.15
  37. installed.
  38. %description devel -l ja
  39. XSLTのための開発用ファイルです。
  40. %package static
  41. Summary: Static library for %{name}
  42. Summary(ja): %{name} のスタティックライブラリ
  43. Group: Development/Libraries
  44. Requires: libxslt-devel = %{version}-%{release}
  45. %description static
  46. The libxslt-static package contains the static library for libxslt.
  47. %package python
  48. Summary: Python bindings for the libxslt library
  49. Group: Development/Libraries
  50. Requires: libxslt = %{version}-%{release}
  51. Requires: libxml2 >= 2.6.27
  52. Requires: python
  53. %description python
  54. The libxslt-python package contains a module that permits applications
  55. written in the Python programming language to use the interface
  56. supplied by the libxslt library to apply XSLT transformations.
  57. This library allows to parse sytlesheets, uses the libxml2-python
  58. to load and save XML and HTML files. Direct access to XPath and
  59. the XSLT transformation context are possible to extend the XSLT language
  60. with XPath functions written in Python.
  61. # compat32
  62. %package -n compat32-%{name}
  63. Summary: Library providing the Gnome XSLT engine
  64. Summary(ja): XSLT エンジンライブラリ
  65. Group: System Environment/Libraries
  66. Requires: %{name} = %{version}-%{release}
  67. Requires: compat32-libxml2 >= 2.6.27
  68. %description -n compat32-%{name}
  69. This C library allows to transform XML files into other XML files
  70. (or HTML, text, ...) using the standard XSLT stylesheet transformation
  71. mechanism. To use it you need to have a version of libxml2 >= 2.6.15
  72. installed. The xsltproc command is a command line interface to the XSLT engine
  73. %description -n compat32-%{name} -l ja
  74. XSLTスタイルシートを使ってXML型式をHTML型式に変換するためのライブラリです。
  75. %package -n compat32-%{name}-devel
  76. Summary: Libraries, includes, etc. to embed the Gnome XSLT engine
  77. Summary(ja): XSLT 開発用ファイル
  78. Group: Development/Libraries
  79. Requires: %{name}-devel = %{version}-%{release}
  80. Requires: compat32-%{name} = %{version}-%{release}
  81. Requires: compat32-libxml2-devel >= 2.6.27
  82. %description -n compat32-%{name}-devel
  83. This C library allows to transform XML files into other XML files
  84. (or HTML, text, ...) using the standard XSLT stylesheet transformation
  85. mechanism. To use it you need to have a version of libxml2 >= 2.6.15
  86. installed.
  87. %description -n compat32-%{name}-devel -l ja
  88. XSLTのための開発用ファイルです。
  89. %prep
  90. %setup -q
  91. %patch0 -p1 -b .CVE-2015-7995
  92. %build
  93. %configure --without-crypto
  94. make %{?_smp_mflags}
  95. %install
  96. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  97. make DESTDIR=$RPM_BUILD_ROOT install
  98. rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
  99. rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.{a,la}
  100. #
  101. # this is a bit ugly but tries to generate the bindings for all versions
  102. # of python installed
  103. #for i in %{prefix}/include/python*
  104. #do
  105. # py_version=`echo $i | sed "s+%{prefix}/include/python++"`
  106. # if test -x %{prefix}/bin/python$py_version
  107. # then
  108. # echo generating bindings for Python $py_version
  109. # (cd python ; make clean ; \
  110. # make PYTHON="%{prefix}/bin/python$py_version" \
  111. # PYTHON_VERSION="$py_version"; \
  112. # make PYTHON="%{prefix}/bin/python$py_version" \
  113. # PYTHON_VERSION="$py_version" \
  114. # prefix=$RPM_BUILD_ROOT%{prefix} \
  115. # mandir=$RPM_BUILD_ROOT%{_mandir} install)
  116. # fi
  117. #done
  118. %clean
  119. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  120. %post -p /sbin/ldconfig
  121. %postun -p /sbin/ldconfig
  122. %post -n compat32-%{name} -p /sbin/ldconfig
  123. %postun -n compat32-%{name} -p /sbin/ldconfig
  124. %files
  125. %defattr(-, root, root)
  126. %doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
  127. %doc doc/*.html doc/html doc/tutorial doc/EXSLT
  128. %{_bindir}/xsltproc
  129. %{_libdir}/lib*.so.*
  130. %{_mandir}/man1/xsltproc.1*
  131. %files devel
  132. %defattr(-, root, root)
  133. %doc AUTHORS ChangeLog NEWS README Copyright TODO FEATURES
  134. %{_includedir}/*
  135. %{_libdir}/lib*.so
  136. %{_libdir}/*.sh
  137. %{_libdir}/pkgconfig/*.pc
  138. %{_bindir}/xslt-config
  139. %{_datadir}/aclocal/*.m4
  140. %{_mandir}/man3/*
  141. %files static
  142. %defattr(-, root, root)
  143. %{_libdir}/lib*.a
  144. %files python
  145. %defattr(-, root, root)
  146. %doc AUTHORS ChangeLog NEWS README Copyright FEATURES
  147. %doc python/TODO
  148. %doc python/libxsltclass.txt
  149. %doc python/tests/*.py
  150. %doc python/tests/*.xml
  151. %doc python/tests/*.xsl
  152. %{_libdir}/python*/site-packages/libxslt.py
  153. %{_libdir}/python*/site-packages/libxsltmod*
  154. # compat32
  155. %if %{build_compat32}
  156. %files -n compat32-%{name}
  157. %defattr(-, root, root)
  158. %{_libdir}/lib*.so.*
  159. %files -n compat32-%{name}-devel
  160. %defattr(-, root, root)
  161. %{_libdir}/lib*.so
  162. %{_libdir}/lib*.a
  163. %{_libdir}/*.sh
  164. %endif
  165. %changelog
  166. * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.28-2
  167. - add Patch0 (libxslt-1.1.28-CVE-2015-7995.patch)
  168. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.28-1
  169. - update to 1.1.28
  170. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.27-2
  171. - rebuild with VineSeed environment
  172. * Thu Sep 27 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.27-1
  173. - new upstream release
  174. * Thu Feb 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.26-7
  175. - rebuild with python-2.7.2
  176. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 1.1.26-6
  177. - build with rpm-4.8.1-1 for pkg-config file
  178. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.26-5
  179. - rebuilt with gcc-4.4.3-3 on ppc
  180. * Sat Feb 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.26-4
  181. - removed %%{_libdir}/python*/site-packages/*.{a,la}
  182. * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.26-3
  183. - rebuild with python-2.6
  184. * Tue Feb 2 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.26-2
  185. - rebuilt with new toolchain
  186. * Wed Jan 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.26-1
  187. - new upstream release
  188. - split static libraries to subpackage
  189. * Mon Jul 13 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.23-3
  190. - added compat32 package for x86_64 arch support
  191. * Fri Jul 18 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.23-2
  192. - rebuilt with python-2.5.2
  193. * Tue Apr 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.23-1
  194. - new upstream release
  195. - remove *.la file from devel package
  196. * Wed Oct 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.22-0vl1
  197. - new upstream release
  198. * Sun Feb 4 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.20-0vl1
  199. - new upstream release
  200. - updated BuildRequires: libxml2-devel >= 2.6.27
  201. - updated Requires: libxml2 >= 2.6.27
  202. * Sat Aug 05 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.17-0vl1
  203. - added --libdir=%%{_libdir} to ./configure option
  204. * Fri Jul 14 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.17-0vl1
  205. - new upstream release
  206. - updated libxml2 dependancy
  207. * Mon Oct 17 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.15-0vl1
  208. - new upstream release
  209. * Tue Apr 12 2005 Satoshi MACHINO <machino@vinelinux.org> 1.1.14-0vl1
  210. - new upstream release
  211. * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 1.1.12-0vl3
  212. - rebuild with python-2.4.1-0vl1
  213. * Thu Nov 11 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.12-0vl2
  214. - build without libgcrypt (add --without-crypto to configure option)
  215. - remove lines about snapshot release
  216. - use %%makeinstall
  217. - add %%{_libdir}/python*/site-packages/libxsltmod* to python package
  218. * Thu Nov 11 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.12-0vl1
  219. - source upgrade (security fix)
  220. - BuildPrereq: libxml2-devel >= 2.6.15
  221. - Requires: libxml2 >= 2.6.15
  222. - add doc/EXSLT to %%doc
  223. * Tue Sep 07 2004 Satoshi MACHINO <machino@vinelinux.org> 1.1.9-0vl1
  224. - new upstream version
  225. * Tue Apr 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.6-0vl1
  226. - source upgrade
  227. - BuildPrereq: libxml2-devel >= 2.6.8
  228. - Requires: libxml2 >= 2.6.8
  229. * Sat Apr 17 2004 Shu KONNO <owa@bg.wakwak.com> 1.1.4-0vl2
  230. - rebuild with python-2.3.3-0vl1
  231. * Sat Apr 10 2004 Shu KONNO <owa@bg.wakwak.com> 1.1.4-0vl1.1
  232. - rebuild with python-2.3.3-0vl0.3 (for TestPkg)
  233. * Thu Mar 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.4-0vl1
  234. - new upstream release
  235. * Thu Jan 29 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.2-0vl1
  236. - new upstream release
  237. - BuildPrereq: libxml2-devel >= 2.6.3
  238. - Requires: libxml2 >= 2.6.3
  239. * Fri Sep 05 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.32-0vl1
  240. - new upstream release
  241. * Sun Jul 20 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.31-0vl1
  242. - source upgrade
  243. * Sat May 17 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.30-0vl1
  244. - source upgrade
  245. * Mon Feb 17 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.26-0vl1
  246. - source upgrade
  247. - BuildPrereq: libxml2-devel >= 2.5.2
  248. - Requires: libxml2 >= 2.5.2
  249. * Sun Dec 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.23-0vl1
  250. - source upgrade
  251. - build with new toolchains
  252. * Tue Oct 29 2002 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.22-0vl1
  253. - source update to 1.0.22
  254. - BuildPrereq: libxml2-devel >= 2.4.23
  255. - Requires: libxml2 >= 2.4.23
  256. * Sun May 26 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.17-1vl1
  257. - merged with 1.0.17-1
  258. -- Fri Feb 8 2002 Daniel.Veillard <veillard@redhat.com>
  259. - added the python module
  260. - clean up spec
  261. - BuildPrereq: libxml2-devel >= 2.4.17
  262. - Requires: libxml2 >= 2.4.17
  263. * Mon Mar 18 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.10-0vl2
  264. - changed License to MIT (not LGPL)
  265. - add BuildPrereq: zlib-devel >= 1.1.4 perl
  266. * Sun Feb 24 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.10-0vl1
  267. - source update
  268. - BuildPrereq: libxml2-devel >= 2.4.13
  269. * Thu Oct 11 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.9-0vl1
  270. - add gtk-doc to BuildPrereq
  271. * Thu Oct 11 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com>
  272. - 1.0.1-1vl2
  273. - Build for VineSeed
  274. * Fri Aug 24 2001 Tuscus Pino-potamus Japonus <ursragna@hotmail.com>
  275. - 1.0.1-1vl1
  276. - cleaning
  277. * Fri Jul 27 2001 Tuscus Pino-potamus Japonus <ursragna@hotmail.com>
  278. - 1.0.1-1vl0
  279. - modify for Vine Linux 2.1x
  280. * Mon Jan 22 2001 Daniel.Veillard <daniel@veillard.com>
  281. - created based on libxml2 spec file