sablotron-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. %define name sablotron
  2. %define version 1.0.3
  3. %define release 5%{?_dist_release}
  4. %define altname Sablot
  5. %define builddir $RPM_BUILD_DIR/%{altname}-%{version}
  6. %define lib_name_orig libsablotron
  7. %define lib_major 0
  8. %define lib_name %{lib_name_orig}%{lib_major}
  9. Summary: XSLT processor
  10. Summary(ja): XSLT プロセッサ
  11. Name: %{name}
  12. Version: %{version}
  13. Release: %{release}
  14. License: MPL/GPL
  15. Group: Applications/Text
  16. URL: http://sourceforge.net/projects/sablotron/
  17. Source0: %{url}/files/sablotron-%{version}/Sablot-%{version}.tar.gz
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: expat-devel >= 1.95.2
  20. BuildRequires: perl-XML-Parser
  21. Requires: expat >= 1.95.2
  22. Requires: %{lib_name}
  23. %description
  24. Sablotron is a fast, compact and portable XML toolkit
  25. implementing XSLT, DOM and XPath.
  26. The goal of this project is to create a lightweight,
  27. reliable and fast XML library processor conforming to the W3C
  28. specification, which is available for public and can be used as a base
  29. for multi-platform XML applications.
  30. %package -n %{lib_name}
  31. Summary: Main library for sablotron
  32. Summary(ja): sablotron ライブラリ
  33. Group: System Environment/Libraries
  34. Provides: %{name} = %{version}-%{release}
  35. %description -n %{lib_name}
  36. Contains the library for sablotron.
  37. %package -n %{lib_name}-devel
  38. Summary: The development libraries and header files for Sablotron
  39. Summary(ja): Sablotron の開発ライブラリおよびヘッダファイル
  40. Requires: sablotron = %{version}
  41. Group: Development/Libraries
  42. Requires: %{lib_name} = %{version}
  43. Provides: %{lib_name_orig}-devel = %{version}-%{release}
  44. %description -n %{lib_name}-devel
  45. These are the development libraries and header files for Sablotron
  46. %prep
  47. %setup -q -n %{altname}-%{version}
  48. %build
  49. export CXXFLAGS="${RPM_OPT_FLAGS}"
  50. %configure --disable-static
  51. make %{?_smp_mflags}
  52. %install
  53. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  54. make install DESTDIR=$RPM_BUILD_ROOT
  55. ## remove unuse files
  56. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  57. # docs
  58. rm -rf _docs_to_include
  59. mkdir -p _docs_to_include
  60. mv $RPM_BUILD_ROOT/%{_docdir}/html/* _docs_to_include
  61. %clean
  62. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  63. %post -n %{lib_name} -p /sbin/ldconfig
  64. %postun -n %{lib_name} -p /sbin/ldconfig
  65. %files
  66. %defattr(755,root,root)
  67. %doc _docs_to_include/*
  68. %{_bindir}/sabcmd
  69. %{_mandir}/man1/sabcmd.*
  70. #{_docdir}/html/jsdom-ref
  71. #{_docdir}/html/sablot
  72. #{_docdir}/html/sxp
  73. %files -n %{lib_name}
  74. %defattr(-,root,root)
  75. %{_libdir}/libsablot.so.*
  76. %doc README RELEASE
  77. %files -n %{lib_name}-devel
  78. %defattr(-,root,root)
  79. %{_bindir}/sablot-config
  80. #{_libdir}/lib*.a
  81. #{_libdir}/lib*.la
  82. %{_libdir}/lib*.so
  83. %{_includedir}/*.h
  84. %changelog
  85. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 1.0.3-5
  86. - rebuild with gcc-5.4.0
  87. * Mon Dec 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.3-4
  88. - rebuilt on current VineSeed
  89. - excluded static library from libsablotron-devel package
  90. - moved html document to %{_docdir}/%{name}-%{version}
  91. * Sun Feb 05 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.3-3
  92. - rebuild with Vine6 environment
  93. * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.0.3-2
  94. - rebuilt with new toolchain
  95. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.3-1vl5
  96. - applied new versioning policy, spec in utf-8
  97. - removed *.la
  98. * Wed Feb 27 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.3-0vl2
  99. - rebuild with expat-2.0.1
  100. * Sun Jan 6 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.3-0vl1
  101. - updated Sablot to 1.0.3
  102. - dropt sablot-lib-0.71.patch.bz2
  103. * Sat Jul 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97-0vl5
  104. - rebuilt with new toolchain
  105. * Mon Jun 19 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97-0vl4
  106. - changed Group to Applications/Text
  107. * Sat Mar 18 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97-0vl3
  108. - added Japanese summary
  109. - changed Group:
  110. * Sat Jan 25 2003 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.97-0vl2
  111. - added BuildRequires: perl-XML-Parser
  112. * Thu Jan 21 2003 Satoshi MACHINO <machino@vinelinux.org> 0.97-0vl1
  113. - new upstream version
  114. * Thu May 16 2002 Satoshi MACHINO <machino@vinelinux.org> 0.90-1vl1
  115. - build on Vine Linux
  116. -- modified spec
  117. * Wed Apr 03 2002 Christian Belisle <cbelisle@mandrakesoft.com> 0.90-1mdk
  118. - release 0.90.
  119. - patch to add -lexpat and -lstdc++ in libsablot.so (required for php4)
  120. * Mon Feb 04 2002 Christian Belisle <cbelisle@mandrakesoft.com> 0.82-1mdk
  121. - release 0.82.
  122. * Wed Jan 16 2002 Christian Belisle <cbelisle@mandrakesoft.com> 0.81-1mdk
  123. - release 0.81.
  124. - Removed patch for 0.80.
  125. * Tue Jan 15 2002 Christian Belisle <cbelisle@mandrakesoft.com> 0.80-1mdk
  126. - release 0.80.
  127. * Wed Nov 21 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.71-1mdk
  128. - release 0.71.
  129. - bzip2 the source.
  130. - remove the patch.
  131. * Tue Nov 06 2001 Philippe Libat <philippe@mandrakesoft.com> 0.70-2mdk
  132. - %macros
  133. - move sabcmd in sablotron rpm
  134. * Mon Nov 05 2001 Christian Belisle <cbelisle@mandrakesoft.com> 0.70-1mdk
  135. - first mdk release.
  136. * Tue Sep 18 2001 Petr Cimprich <petr@gingerall.cz>
  137. - sablotron 0.70 RPM release 1
  138. * Wed Aug 15 2001 Petr Cimprich <petr@gingerall.cz>
  139. - sablotron 0.65 RPM release 1
  140. * Thu Jun 14 2001 Petr Cimprich <petr@gingerall.cz>
  141. - sablotron 0.60 RPM release 1
  142. - build under RedHat 7.1 with rpm 4.0.2
  143. * Wed Apr 22 2001 Petr Cimprich <petr@gingerall.cz>
  144. - sablotron 0.52 RPM release 1
  145. - based on 0.51-5 spec by Henri Gomez
  146. * Thu Feb 22 2001 Henri Gomez <hgomez@slib.fr>
  147. - sablotron 0.51 RPM release 5
  148. - apply patch to add -lexpat and -lstdc++ in libsablot.so
  149. REQUIRED for use with PHP4
  150. * Thu Feb 22 2001 Henri Gomez <hgomez@slib.fr>
  151. - sablotron 0.51 RPM release 4
  152. - follow Redhat way to dispatch between pack and pack-devel
  153. * Tue Feb 20 2001 Henri Gomez <hgomez@slib.fr>
  154. - sablotron 0.51 RPM release 3
  155. - added ldconfig is post/preun and cleanup stuff
  156. - build under Redhat 6.2 + updates with rpm 3.0.5
  157. * Mon Feb 19 2001 Henri Gomez <hgomez@slib.fr>
  158. - sablotron 0.51 RPM release 2
  159. - added Requires expat >= 1.95.1
  160. * Mon Feb 19 2001 Henri Gomez <hgomez@slib.fr>
  161. - sablotron 0.51 RPM release 1
  162. - updated spec file