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