opensp-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. Summary: SGML and XML parser
  2. Summary(ja): SGML, XML パーサ
  3. Name: opensp
  4. Version: 1.5.2
  5. Release: 7%{?_dist_release}
  6. URL: http://openjade.sourceforge.net/
  7. Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz
  8. Patch0: opensp-multilib.patch
  9. Patch1: opensp-nodeids.patch
  10. Patch2: opensp-sigsegv.patch
  11. License: BSD
  12. Group: Applications/Text
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: xmlto, jadetex
  15. Requires: sgml-common >= 0.5
  16. %description
  17. OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML
  18. (Standard Generalized Markup Language). OpenSP is based on James
  19. Clark's SP implementation of SGML. OpenSP is a command-line
  20. application and a set of components, including a generic API.
  21. %package devel
  22. Summary: Files for developing applications that use OpenSP
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. %description devel
  26. Header files and libtool library for developing applications that use OpenSP.
  27. %prep
  28. %setup -q -n OpenSP-%{version}
  29. %patch0 -p1 -b .multilib
  30. %patch1 -p1 -b .nodeids
  31. %patch2 -p1 -b .sigsegv
  32. %build
  33. %configure --disable-dependency-tracking --disable-static --enable-http \
  34. --enable-default-catalog=%{_sysconfdir}/sgml/catalog \
  35. --enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml
  36. make %{?_smp_mflags}
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install DESTDIR=$RPM_BUILD_ROOT
  40. # Fix up libtool libraries
  41. find $RPM_BUILD_ROOT -name '*.la' | \
  42. xargs perl -p -i -e "s|-L$RPM_BUILD_DIR[\w/.-]*||g"
  43. # oMy, othis ois osilly.
  44. for file in nsgmls sgmlnorm spam spent sx ; do
  45. ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file
  46. echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1
  47. done
  48. #
  49. # Rename sx to sgml2xml.
  50. mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml
  51. mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1
  52. #
  53. # Clean out (installed) redundant copies of the docs and DTDs.
  54. rm -rf $RPM_BUILD_ROOT%{_docdir}/OpenSP
  55. rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenSP
  56. %find_lang sp5
  57. ## remove unuse files
  58. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  59. %check
  60. make check || : # failures as of 1.5.2pre1 :(
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post -p /sbin/ldconfig
  64. %postun -p /sbin/ldconfig
  65. %files -f sp5.lang
  66. %defattr(-,root,root)
  67. %doc doc/*.htm
  68. %doc docsrc/releasenotes.html
  69. %doc AUTHORS BUGS COPYING ChangeLog NEWS README
  70. %doc pubtext/opensp-implied.dcl
  71. %{_bindir}/*
  72. %{_libdir}/libosp.so.*
  73. %{_mandir}/man1/*.1*
  74. %files devel
  75. %defattr(-,root,root)
  76. %{_includedir}/OpenSP/
  77. %{_libdir}/libosp.so
  78. #%{_libdir}/libosp.la
  79. %changelog
  80. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 1.5.2-7
  81. - rebuilt with rpm-4.8.1-3
  82. * Fri Feb 19 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5.2-6
  83. - rebuilt with new toolchain
  84. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 1.5.2-5vl5
  85. - removed *.la
  86. - spec in utf-8
  87. * Sun May 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.5.2-4vl5
  88. - added Patch1 and 2 from Fedora
  89. * Thu Jun 21 2007 Ondrej Vasik <ovasik@redhat.com>
  90. - fixed SIGSEGV (bug #245104)
  91. * Mon Feb 12 2007 Tim Waugh <twaugh@redhat.com>
  92. - Give IDs to nodes in the release notes source to prevent releasenotes.html
  93. having multilib conflicts (bug #228320).
  94. * Wed May 09 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.5.2-3vl1
  95. - based on FC6 1.5.2-3.1, built on new toolchain
  96. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-3.1
  97. - rebuild
  98. * Tue Jun 13 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-3
  99. - Fixed multilib fix (bug #194702).
  100. * Fri May 26 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-2
  101. - Fixed multilib devel conflicts (bug #192741).
  102. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-1.2
  103. - bump again for double-long bug on ppc(64)
  104. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-1.1
  105. - rebuilt for new gcc4.1 snapshot and glibc changes
  106. * Thu Jan 5 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-1
  107. - 1.5.2.
  108. * Tue Dec 14 2005 Tim Waugh <twaugh@redhat.com> 1.5.1-2
  109. - Backported patch from 1.5.2pre1 to fix ArcEngine crash.
  110. * Tue Dec 13 2005 Tim Waugh <twaugh@redhat.com> 1.5.1-1
  111. - Back down to 1.5.1 for now.
  112. - Fixes for GCC4.1.
  113. * Sun Dec 4 2005 Ville Skytt辰 <ville.skytta at iki.fi> - 1.5.2-0.1.pre1
  114. - Fix build dependencies.
  115. - Require exact version of main package in -devel.
  116. - Build with dependency tracking disabled.
  117. - Add %%{_datadir}/xml to default search path.
  118. - Run test suite during build.
  119. - Add URL tag.
  120. - Use %%find_lang.
  121. - Cosmetic improvements.
  122. * Tue Nov 29 2005 Terje Bless <link@pobox.com> 1.5.2-0.pre1
  123. - New package OpenSP.