bfca93
Summary: SGML and XML parser
bfca93
Name: opensp
bfca93
Version: 1.5.2
bfca93
Release: 38%{?dist}
bfca93
Requires: sgml-common >= 0.5
bfca93
Provides: bundled(gettext) = 0.14.5
bfca93
URL: http://openjade.sourceforge.net/
bfca93
Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz
bfca93
Patch0: opensp-multilib.patch
bfca93
Patch1: opensp-nodeids.patch
bfca93
Patch2: opensp-sigsegv.patch
bfca93
Patch3: opensp-manpage.patch
bfca93
License: MIT
bfca93
bfca93
BuildRequires: make
bfca93
BuildRequires:  gcc-c++
bfca93
bfca93
%if ! 0%{?_module_build}
bfca93
BuildRequires: xmlto, jadetex
bfca93
%endif
bfca93
bfca93
%description
bfca93
OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML
bfca93
(Standard Generalized Markup Language). OpenSP is based on James
bfca93
Clark's SP implementation of SGML. OpenSP is a command-line
bfca93
application and a set of components, including a generic API.
bfca93
bfca93
%package devel
bfca93
Summary: Files for developing applications that use OpenSP
bfca93
Requires: %{name} = %{version}-%{release}
bfca93
bfca93
%description devel
bfca93
Header files and libtool library for developing applications that use OpenSP.
bfca93
bfca93
bfca93
%prep
bfca93
%setup -q -n OpenSP-%{version}
bfca93
%patch0 -p1 -b .multilib
bfca93
%patch1 -p1 -b .nodeids
bfca93
%patch2 -p1 -b .sigsegv
bfca93
%patch3 -p1 -b .manpage
bfca93
# convert files to UTF-8
bfca93
iconv -f latin1 -t utf8 ChangeLog -o ChangeLog.tmp
bfca93
mv -f ChangeLog.tmp ChangeLog
bfca93
bfca93
# ensure that applying the above patches doesn't cause lib/parser_inst.cxx to
bfca93
# be regenerated
bfca93
bfca93
touch lib/parser_inst.cxx
bfca93
bfca93
%build
bfca93
%configure \
bfca93
%if 0%{?_module_build}
bfca93
 --disable-doc-build \
bfca93
%endif
bfca93
 --disable-dependency-tracking --disable-static --enable-http \
bfca93
 --enable-default-catalog=%{_sysconfdir}/sgml/catalog \
bfca93
 --enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml
bfca93
make %{?_smp_mflags}
bfca93
bfca93
%install
bfca93
rm -rf $RPM_BUILD_ROOT
bfca93
bfca93
make install DESTDIR=$RPM_BUILD_ROOT
bfca93
bfca93
# Get rid of libtool libraries
bfca93
rm $RPM_BUILD_ROOT%{_libdir}/*.la
bfca93
bfca93
# oMy, othis ois osilly.
bfca93
for file in nsgmls sgmlnorm spam spent sx ; do
bfca93
   ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file
bfca93
%if ! 0%{?_module_build}
bfca93
   echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1
bfca93
%endif
bfca93
done
bfca93
bfca93
#
bfca93
# Rename sx to sgml2xml.
bfca93
mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml
bfca93
%if ! 0%{?_module_build}
bfca93
mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1
bfca93
%endif
bfca93
bfca93
#
bfca93
# Clean out (installed) redundant copies of the docs and DTDs.
bfca93
rm -rf $RPM_BUILD_ROOT%{_docdir}/OpenSP
bfca93
rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenSP
bfca93
bfca93
%find_lang sp5
bfca93
bfca93
bfca93
%check
bfca93
make check || : # TODO: failures as of 1.5.2 :(
bfca93
bfca93
bfca93
%ldconfig_scriptlets
bfca93
bfca93
bfca93
%files -f sp5.lang
bfca93
%if ! 0%{?_module_build}
bfca93
%doc doc/*.htm
bfca93
%doc docsrc/releasenotes.html
bfca93
%endif
bfca93
%doc AUTHORS BUGS COPYING ChangeLog NEWS README
bfca93
%doc pubtext/opensp-implied.dcl
bfca93
%{_bindir}/*
bfca93
%{_libdir}/libosp.so.*
bfca93
%if ! 0%{?_module_build}
bfca93
%{_mandir}/man1/*.1*
bfca93
%endif
bfca93
bfca93
%files devel
bfca93
%{_includedir}/OpenSP/
bfca93
%{_libdir}/libosp.so
bfca93
bfca93
bfca93
%changelog
bfca93
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-38
bfca93
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
bfca93
  Related: rhbz#1991688
bfca93
bfca93
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.5.2-37
bfca93
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
bfca93
bfca93
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-36
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bfca93
bfca93
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-35
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
bfca93
bfca93
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-34
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bfca93
bfca93
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-33
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bfca93
bfca93
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-32
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bfca93
bfca93
* Tue Nov 27 2018 Ondrej Vasik <ovasik@redhat.com> - 1.5.2-31
bfca93
- add note about bundled old gettext library
bfca93
bfca93
* Sat Jul 21 2018 Ondrej Vasik <ovasik@redhat.com> - 1.5.2-30
bfca93
- BuildRequires: gcc-c++ (#1605338)
bfca93
bfca93
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-29
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bfca93
bfca93
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-28
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
bfca93
bfca93
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-27
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
bfca93
bfca93
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-26
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
bfca93
bfca93
* Tue Apr 25 2017 Nils Philippsen <nils@redhat.com> - 1.5.2-25
bfca93
- don't regenerate lib/parser_inst.cxx, this would require perl as a build
bfca93
  dependency
bfca93
bfca93
* Mon Apr 24 2017 Nils Philippsen <nils@redhat.com> - 1.5.2-25
bfca93
- don't build documentation during modular build
bfca93
- fix bogus changelog date
bfca93
bfca93
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-24
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bfca93
bfca93
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-23
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bfca93
bfca93
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-22
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
bfca93
bfca93
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.5.2-21
bfca93
- Rebuilt for GCC 5 C++11 ABI change
bfca93
bfca93
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-20
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
bfca93
bfca93
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-19
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bfca93
bfca93
* Thu Aug 15 2013 Ondrej Vasik <ovasik@redhat.com> - 1.5.2-18
bfca93
- fix the inconsistency between man page and help (#854941)
bfca93
bfca93
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-17
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bfca93
bfca93
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-16
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
bfca93
bfca93
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-15
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bfca93
bfca93
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-14
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
bfca93
bfca93
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-13
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
bfca93
bfca93
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-12
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
bfca93
bfca93
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-11
bfca93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bfca93
bfca93
* Fri Oct 24 2008 Ondrej Vasik <ovasik@redhat.com> 1.5.2-10
bfca93
- move conversion to prep, do not convert html doc(#226217)
bfca93
bfca93
* Thu Oct 23 2008 Ondrej Vasik <ovasik@redhat.com> 1.5.2-9
bfca93
- convert doc files to UTF-8 (#226217)
bfca93
bfca93
* Wed Oct 22 2008 Ondrej Vasik <ovasik@redhat.com> 1.5.2-8
bfca93
- merge review by V.Skyttä (#226217), changed license to
bfca93
  MIT, dropped .la, adjusted comments
bfca93
bfca93
* Mon Feb 11 2008 Ondrej Vasik <ovasik@redhat.com> 1.5.2-7
bfca93
- gcc43 rebuild
bfca93
bfca93
* Mon Aug 27 2007 Ondrej Vasik <ovasik@redhat.com> 1.5.2-6
bfca93
- License tag change to BSD
bfca93
- Rebuilt for F8
bfca93
bfca93
* Thu Jun 21 2007 Ondrej Vasik <ovasik@redhat.com> 1.5.2-5
bfca93
- fixed SIGSEGV (bug #245104)
bfca93
bfca93
* Mon Feb 12 2007 Tim Waugh <twaugh@redhat.com> 1.5.2-4
bfca93
- Fixed build root.
bfca93
- Give IDs to nodes in the release notes source to prevent releasenotes.html
bfca93
  having multilib conflicts (bug #228320).
bfca93
bfca93
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-3.1
bfca93
- rebuild
bfca93
bfca93
* Tue Jun 13 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-3
bfca93
- Fixed multilib fix (bug #194702).
bfca93
bfca93
* Fri May 26 2006 Tim Waugh <twaugh@redhat.com> 1.5.2-2
bfca93
- Fixed multilib devel conflicts (bug #192741).
bfca93
bfca93
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-1.2
bfca93
- bump again for double-long bug on ppc(64)
bfca93
bfca93
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.5.2-1.1
bfca93
- rebuilt for new gcc4.1 snapshot and glibc changes
bfca93
bfca93
* Thu Jan  5 2006 Tim Waugh <twaugh@redhat.com>  1.5.2-1
bfca93
- 1.5.2.
bfca93
bfca93
* Wed Dec 14 2005 Tim Waugh <twaugh@redhat.com>  1.5.1-2
bfca93
- Backported patch from 1.5.2pre1 to fix ArcEngine crash.
bfca93
bfca93
* Tue Dec 13 2005 Tim Waugh <twaugh@redhat.com>  1.5.1-1
bfca93
- Back down to 1.5.1 for now.
bfca93
- Fixes for GCC4.1.
bfca93
bfca93
* Sun Dec  4 2005 Ville Skyttä <ville.skytta at iki.fi> - 1.5.2-0.1.pre1
bfca93
- Fix build dependencies.
bfca93
- Require exact version of main package in -devel.
bfca93
- Build with dependency tracking disabled.
bfca93
- Add %%{_datadir}/xml to default search path.
bfca93
- Run test suite during build.
bfca93
- Add URL tag.
bfca93
- Use %%find_lang.
bfca93
- Cosmetic improvements.
bfca93
bfca93
* Tue Nov 29 2005 Terje Bless <link@pobox.com> 1.5.2-0.pre1
bfca93
- New package OpenSP.
bfca93