libxslt-vl.spec 14 KB

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