%define opensp_ver 1.5 Summary: A DSSSL implementation. Name: openjade Version: 1.3.1 Release: 12.fdr.1 Prereq: sgml-common >= 0.5 Prereq: docbook-dtds Source0: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz Source1: http://download.sourceforge.net/openjade/OpenSP-%{opensp_ver}.tar.gz Patch0: openjade-1.3.1-manpage.patch Patch1: openjade-ppc64.patch Patch3: opensp-1.5-gcc33.patch Patch4: openjade-1.3.1-nsl.patch License: Distributable Group: Applications/Text BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Prefix: /usr Obsoletes: jade Provides: jade BuildRequires: autoconf, automake BuildRequires: gettext BuildRequires: libtool BuildRequires: gcc-c++ %description OpenJade is an implementation of the ISO/IEC 10179:1996 standard DSSSL (Document Style Semantics and Specification Language). OpenJade is based on James Clark's Jade implementation of DSSSL. OpenJade is a command-line application and a set of components. The DSSSL engine inputs an SGML or XML document and can output a variety of formats: XML, RTF, TeX, MIF (FrameMaker), SGML, or XML. %package devel Summary: Files for developing applications that use openjade/OpenSP. Requires: %{name} = %{version} Group: Development/Libraries %description devel The header files, static library, libtool library and man pages for developing applications that use openjade/OpenSP. %define openjadetop %{_builddir}/%{name}-%{version} %prep %setup -q -c -a1 pushd %{openjadetop}/openjade-%{version} %patch0 -p1 -b .manpage %patch1 -p1 -b .ppc64 %patch4 -p1 popd pushd %{openjadetop}/OpenSP-%{opensp_ver} %patch3 -p1 -b .gcc33 popd %build pushd %{openjadetop}/OpenSP-%{opensp_ver} aclocal libtoolize --copy --force automake --add-missing --copy autoconf --force %configure --enable-http --datadir=/usr/share/sgml/%{name}-%{version} \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml make %{?_smp_mflags} # This is needed because openjade has an awful hack in its own config.h. cp config.h include # This is to catch #include ln -s . include/OpenSP popd pushd %{openjadetop}/openjade-%{version} #cp config/configure.in . #libtoolize --copy --force %configure --enable-http --datadir=/usr/share/sgml/%{name}-%{version} \ --enable-spincludedir=%{openjadetop}/OpenSP-%{opensp_ver}/include \ --enable-splibdir=%{openjadetop}/OpenSP-%{opensp_ver}/lib \ --enable-default-catalog=/etc/sgml/catalog \ --enable-default-search-path=/usr/share/sgml make %{?_smp_mflags} popd %install rm -rf $RPM_BUILD_ROOT pushd %{openjadetop}/OpenSP-%{opensp_ver} %makeinstall datadir=$RPM_BUILD_ROOT/usr/share/sgml/%{name}-%{version} make install-man mandir=$RPM_BUILD_ROOT/%{_mandir} popd pushd %{openjadetop}/openjade-%{version} %makeinstall datadir=$RPM_BUILD_ROOT/usr/share/sgml/%{name}-%{version} make install-man mandir=$RPM_BUILD_ROOT/%{_mandir} popd # Fix up libtool libraries find $RPM_BUILD_ROOT -name '*.la' | \ xargs perl -p -i -e "s|-L$RPM_BUILD_DIR[\w/.-]*||g" # oMy, othis ois osilly. ln -s openjade $RPM_BUILD_ROOT/%{prefix}/bin/jade echo ".so man1/openjade.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/jade.1 for file in nsgmls sgmlnorm spam spent sx ; do ln -s o$file $RPM_BUILD_ROOT/%{prefix}/bin/$file echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT/%{_mandir}/man1/${file}.1 done mv $RPM_BUILD_ROOT/%{prefix}/bin/sx $RPM_BUILD_ROOT/%{prefix}/bin/sgml2xml mv $RPM_BUILD_ROOT/%{_mandir}/man1/{sx,sgml2xml}.1 # install jade/jade $RPM_BUILD_ROOT/%{prefix}/bin/jade cp %{openjadetop}/openjade-%{version}/dsssl/catalog $RPM_BUILD_ROOT/%{prefix}/share/sgml/%{name}-%{version}/ cp %{openjadetop}/openjade-%{version}/dsssl/dsssl.dtd \ %{openjadetop}/openjade-%{version}/dsssl/style-sheet.dtd \ %{openjadetop}/openjade-%{version}/dsssl/fot.dtd \ $RPM_BUILD_ROOT/%{prefix}/share/sgml/%{name}-%{version} rm -rf $RPM_BUILD_ROOT/usr/doc/OpenSP rm -rf $RPM_BUILD_ROOT/%{prefix}/share/sgml/%{name}-%{version}/doc %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc */doc/ openjade-*/jadedoc/ openjade-*/dsssl/ */pubtext/ */unicode/ %doc --parents */README */COPYING openjade-*/VERSION %{_bindir}/* %{_libdir}/*.so.* %{prefix}/share/sgml %{_mandir}/*/* %files devel %defattr(-,root,root) %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/*.la %{_includedir}/* %changelog * Mon Dec 04 2003 Thomas Vander Stichele - 1.3.1-12.fdr.1 - use the F1 1.3.2 spec file as a base to rebuild this for rh9, which - requires the 1.3.1 version * Mon Oct 20 2003 Tim Waugh 1.3.2-8 - Rebuilt. * Tue Sep 23 2003 Florian La Roche 1.3.2-7 - do not link against -lnsl * Thu Aug 7 2003 Tim Waugh 1.3.2-6 - Rebootstrap to create a libtool that actually works. * Wed Aug 6 2003 Tim Waugh 1.3.2-5 - Rebuilt. * Wed Jun 04 2003 Elliot Lee 1.3.2-4 - rebuilt * Thu May 22 2003 Tim Waugh 1.3.2-3 - Fixes for GCC 3.3. - Use --parents for %doc. * Tue Mar 18 2003 Tim Waugh 1.3.2-2 - Provide sgml2xml man page (bug #83759). - Add devel subpackage. * Fri Mar 14 2003 Tim Waugh 1.3.2-1 - OpenSP 1.5, openjade 1.3.2. - Renumber patches. * Thu Feb 13 2003 Elliot Lee 1.3.1-13 - Add openjade-ppc64.patch * Wed Jan 22 2003 Tim Powers - rebuilt * Tue Jan 7 2003 Jeff Johnson 1.3.1-11 - don't include -debuginfo files in package. * Thu Dec 12 2002 Tim Waugh - Fix typo in description (bug #79395). * Mon Nov 4 2002 Tim Waugh 1.3.1-10 - Fix DTD retrieval from virtual hosts (bug #77137). * Sat Aug 10 2002 Elliot Lee - rebuilt with gcc-3.2 (we hope) * Mon Jul 22 2002 Tim Powers 1.3.1-8 - rebuild using gcc-3.2-0.1 * Fri Jun 21 2002 Tim Powers 1.3.1-7 - automated rebuild * Thu Jun 13 2002 Tim Waugh 1.3.1-6 - Fix sgmlnorm(1) man page (bug #64136). - Fix %%files list (bug #64323). * Thu May 23 2002 Tim Powers 1.3.1-5 - automated rebuild * Thu Feb 21 2002 Tim Waugh 1.3.1-4 - Avoid bad triggers. * Thu Feb 21 2002 Tim Waugh 1.3.1-3 - Rebuild in new environment. * Mon Jan 28 2002 Tim Waugh 1.3.1-2 - Ship man pages. * Mon Jan 28 2002 Tim Waugh 1.3.1-1 - 1.3.1. - Patches no longer needed: decl, strdup, foo, size_t, 31525, indev, ligature, twosidestartonright. - Updated lt patch. * Mon Jan 14 2002 Tim Waugh 1.3-22 - Enable build on GCC 3.0 onwards. - Run libtoolize. * Fri Nov 2 2001 Tim Waugh 1.3-21 - Enable HTTP support. Now a DocBook XML document can be processed by either xsltproc or openjade. * Tue Oct 30 2001 Tim Waugh 1.3-20 - Apply twosidestartonright patch from Ian Castle. * Thu Oct 11 2001 Tim Waugh 1.3-19 - s/Copyright:/License:/ - Use %%{_tmppath}. - Fix up libtool libraries (bug #46212). * Wed Sep 12 2001 Tim Powers 1.3-18 - rebuild with new gcc and binutils * Fri Jun 15 2001 Tim Waugh 1.3-17 - Apply patch from CVS to break up unintentional ligatures (bugs #11497, #11779) * Mon Jun 4 2001 Tim Waugh 1.3-16 - Apply the iNdev openjade-1.3.patch patch. * Tue May 29 2001 Tim Waugh 1.3-15 - ldconfig (bug #32824). - Fix up some libtool problems. * Fri Apr 27 2001 Bill Nottingham 1.3-14 - rebuild for C++ exception handling on ia64 - build with optimization on ia64 * Tue Mar 13 2001 Tim Waugh - Avoid creating bogus TeX output for section headings containing special characters (#bug 31525). * Mon Jan 22 2001 Florian La Roche - Apply original autoconf patch to s390 s390x only. This patch can be deleted once s390* uses a current compiler. * Thu Jan 19 2001 Tim Waugh - Don't conflict with stylesheets; require sgml-common >= 0.5 instead. - Revert autoconf change, as it's still broken. * Wed Jan 17 2001 Florian La Roche - fix this autoconf macro to work on all archs :-) * Wed Jan 17 2001 Florian La Roche - apply patch from Fritz Elfert - removed explicit stripping - Added autoconf macro for correctly recognizing if size_t is unsigned int * Tue Jan 16 2001 Tim Waugh - Default catalog file is /etc/sgml/catalog. * Mon Jan 08 2001 Tim Waugh - Conflict with stylesheets (new-trials location changes). - /usr/lib/sgml -> /usr/share/sgml/%%{name}-%%{version}. - Remove %%post and %%postun. * Wed Oct 18 2000 Matt Wilson - rebuilt against g++-2.96-60, fixes jade on alpha * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jul 4 2000 Jakub Jelinek - Rebuild with new C++ * Wed May 31 2000 Matt Wilson - fix several C++ build problems (declarations) - build against new libstdc++ * Wed May 17 2000 Matt Wilson - build with -O0 on alpha - fix -j testing * Thu May 5 2000 Bill Nottingham - openjade is maintained, and actually builds. Let's try that. * Thu Mar 9 2000 Bill Nottingham - this package is way too huge. strip *everything* * Mon Feb 21 2000 Matt Wilson - build with CXXFLAGS="-O2 -ggdb" to work around segfault on alpha * Thu Feb 3 2000 Bill Nottingham - strip binaries * Wed Jan 5 2000 Bill Nottingham - sanitize spec file some * Tue Aug 17 1999 Tim Powers - fixed conflict problem with sgml-tools * Sat Jul 17 1999 Tim Powers - changed buildroot path to /var/tmp - rebuilt for 6.1 * Fri Apr 23 1999 Michael K. Johnson - quiet scripts * Thu Apr 23 1999 Owen Taylor - Made requires for sgml-common into prereq