libxslt-vl.spec 13 KB

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