opensp-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. Summary: SGML and XML parser
  2. Summary(ja): SGML, XML パーサ
  3. Name: opensp
  4. Version: 1.5.2
  5. Release: 11%{?_dist_release}
  6. Group: publishing
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: MIT
  10. URL: http://openjade.sourceforge.net/
  11. Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz
  12. Patch0: opensp-multilib.patch
  13. Patch1: opensp-nodeids.patch
  14. Patch2: opensp-sigsegv.patch
  15. Patch3: opensp-manpage.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. #BuildRequires: jadetex
  18. BuildRequires: xmlto
  19. Requires: sgml-common >= 0.5
  20. %description
  21. OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML
  22. (Standard Generalized Markup Language). OpenSP is based on James
  23. Clark's SP implementation of SGML. OpenSP is a command-line
  24. application and a set of components, including a generic API.
  25. %package devel
  26. Summary: Files for developing applications that use OpenSP
  27. Summary(ja): OpenSP を用いるアプリケーションの開発に必要なファイル
  28. Group: programming
  29. Requires: %{name} = %{version}-%{release}
  30. %description devel
  31. Header files and libtool library for developing applications that use OpenSP.
  32. %debug_package
  33. %prep
  34. %setup -q -n OpenSP-%{version}
  35. %patch0 -p1 -b .multilib
  36. %patch1 -p1 -b .nodeids
  37. %patch2 -p1 -b .sigsegv
  38. %patch3 -p1 -b .manpage
  39. # convert files to UTF-8
  40. iconv -f latin1 -t utf8 ChangeLog -o ChangeLog.tmp
  41. mv -f ChangeLog.tmp ChangeLog
  42. %build
  43. %configure --disable-dependency-tracking --disable-static --enable-http \
  44. --enable-default-catalog=%{_sysconfdir}/sgml/catalog \
  45. --enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml
  46. # specify --skip-validation option
  47. make %{?_smp_mflags} XMLTO="%{_bindir}/xmlto --skip-validation"
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. # Get rid of libtool libraries
  52. rm $RPM_BUILD_ROOT%{_libdir}/*.la
  53. # oMy, othis ois osilly.
  54. for file in nsgmls sgmlnorm spam spent sx ; do
  55. ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file
  56. echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1
  57. done
  58. #
  59. # Rename sx to sgml2xml.
  60. mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml
  61. mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1
  62. #
  63. # Clean out (installed) redundant copies of the docs and DTDs.
  64. rm -rf $RPM_BUILD_ROOT%{_docdir}/OpenSP
  65. rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenSP
  66. %find_lang sp5
  67. %check
  68. make check || : # failures as of 1.5.2pre1 :(
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %files -f sp5.lang
  74. %defattr(-,root,root)
  75. %license COPYING
  76. %doc doc/*.htm
  77. %doc docsrc/releasenotes.html
  78. %doc AUTHORS BUGS ChangeLog NEWS README
  79. %doc pubtext/opensp-implied.dcl
  80. %{_bindir}/*
  81. %{_libdir}/libosp.so.*
  82. %{_mandir}/man1/*.1*
  83. %files devel
  84. %defattr(-,root,root)
  85. %{_includedir}/OpenSP/
  86. %{_libdir}/libosp.so
  87. %changelog
  88. * Sat Feb 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.2-11
  89. - rebuilt with current environment.
  90. * Mon Jul 4 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.2-10
  91. - rebuilt with new toolchain.
  92. * Mon Nov 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.5.2-9
  93. - converted doc files to UTF
  94. - added XMLTO option to build on current xmlto
  95. - added Patch3 from FC
  96. * Thu Aug 15 2013 Ondrej Vasik <ovasik@redhat.com> - 1.5.2-18
  97. - fix the inconsistency between man page and help (#854941)
  98. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.2-8
  99. - rebuild with VineSeed environment
  100. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 1.5.2-7
  101. - rebuilt with rpm-4.8.1-3
  102. * Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5.2-6
  103. - rebuilt with new toolchain
  104. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 1.5.2-5vl5
  105. - removed *.la
  106. - spec in utf-8
  107. * Sun May 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5.2-4vl5
  108. - added Patch1 and 2 from Fedora
  109. * Thu Jun 21 2007 Ondrej Vasik <ovasik@redhat.com>
  110. - fixed SIGSEGV (bug #245104)
  111. * Mon Feb 12 2007 Tim Waugh <twaugh@redhat.com>
  112. - Give IDs to nodes in the release notes source to prevent releasenotes.html
  113. having multilib conflicts (bug #228320).
  114. * Wed May 09 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.2-3vl1
  115. - based on FC6 1.5.2-3.1, built on new toolchain
  116. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-3.1
  117. - rebuild
  118. * Tue Jun 13 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-3
  119. - Fixed multilib fix (bug #194702).
  120. * Fri May 26 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-2
  121. - Fixed multilib devel conflicts (bug #192741).
  122. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-1.2
  123. - bump again for double-long bug on ppc(64)
  124. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-1.1
  125. - rebuilt for new gcc4.1 snapshot and glibc changes
  126. * Thu Jan 5 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-1
  127. - 1.5.2.
  128. * Wed Dec 14 2005 Tim Waugh <twaugh@redhat.com> 1.5.1-2
  129. - Backported patch from 1.5.2pre1 to fix ArcEngine crash.
  130. * Tue Dec 13 2005 Tim Waugh <twaugh@redhat.com> 1.5.1-1
  131. - Back down to 1.5.1 for now.
  132. - Fixes for GCC4.1.
  133. * Sun Dec 4 2005 Ville Skytt辰 <ville.skytta at iki.fi> - 1.5.2-0.1.pre1
  134. - Fix build dependencies.
  135. - Require exact version of main package in -devel.
  136. - Build with dependency tracking disabled.
  137. - Add %%{_datadir}/xml to default search path.
  138. - Run test suite during build.
  139. - Add URL tag.
  140. - Use %%find_lang.
  141. - Cosmetic improvements.
  142. * Tue Nov 29 2005 Terje Bless <link@pobox.com> 1.5.2-0.pre1
  143. - New package OpenSP.