libxslt-vl.spec 13 KB

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