2006-12-19 00:17:50 +01:00
|
|
|
#
|
2012-07-30 20:40:13 +02:00
|
|
|
# spec file for package sgmltool
|
2006-12-19 00:17:50 +01:00
|
|
|
#
|
2012-07-30 20:40:13 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:17:50 +01:00
|
|
|
#
|
2008-08-07 11:59:46 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:17:50 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-04-25 16:45:11 +02:00
|
|
|
|
2006-12-19 00:17:50 +01:00
|
|
|
Name: sgmltool
|
2012-07-30 20:40:13 +02:00
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: opensp
|
|
|
|
%if 0%{suse_version} > 1220
|
|
|
|
BuildRequires: texlive-kpathsea
|
|
|
|
%endif
|
|
|
|
Provides: sgml-tools
|
2008-08-07 11:59:46 +02:00
|
|
|
Requires: opensp
|
|
|
|
Requires: perl = %perl_version
|
|
|
|
Requires: perl(Text::EntityMap)
|
2012-07-30 20:40:13 +02:00
|
|
|
%if 0%{suse_version} > 1220
|
|
|
|
Requires: texlive-epsf
|
|
|
|
Requires: texlive-latex
|
|
|
|
Requires: texlive-url
|
|
|
|
%define _texmfmaindir %{_libexecdir}/texmf
|
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): coreutils
|
|
|
|
Requires(postun): texlive >= %{texlive_version}
|
|
|
|
Requires(posttrans): texlive >= %{texlive_version}
|
|
|
|
%endif
|
2006-12-19 00:17:50 +01:00
|
|
|
Conflicts: linuxdoc
|
|
|
|
Summary: SGML-Tools - a Text-Formatting Package
|
2012-07-30 20:40:13 +02:00
|
|
|
License: SUSE-Public-Domain
|
|
|
|
Group: Productivity/Publishing/SGML
|
2006-12-19 00:17:50 +01:00
|
|
|
Version: 1.0.9
|
2012-07-30 20:40:13 +02:00
|
|
|
Release: 0
|
2008-08-07 11:59:46 +02:00
|
|
|
Source: ftp://ftp.nllgg.nl/pub2/SGMLtools/v1.0/sgml-tools-%{version}.tar.bz2
|
2006-12-19 00:17:50 +01:00
|
|
|
Source1: lnd-1.0.tar.bz2
|
|
|
|
Patch: sgml-tools-1.0.9.dif
|
|
|
|
Patch1: sgml-tools-temp-vuln-1.0.9.diff
|
|
|
|
Patch2: sgmltool-man-entities.diff
|
|
|
|
Patch3: sgmltool-1.0.9-expandsyntax.diff
|
|
|
|
Patch4: sgml-tools-1.0.9-destdir.diff
|
|
|
|
Patch5: sgml-tools-retval.diff
|
|
|
|
Patch6: cflags-sgml-tools-1.0.9.diff
|
|
|
|
Patch7: sgml-tools-1.0.9-sgmlpre.diff
|
|
|
|
Patch8: sgml-tools-1.0.9-strip.diff
|
2012-07-30 20:40:13 +02:00
|
|
|
Patch9: sgml-tools-1.0.9-latex.diff
|
2012-11-19 10:08:29 +01:00
|
|
|
Patch10: sgmltool-flex.patch
|
2006-12-19 00:17:50 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
SGML-Tools is a text-formatting package based on SGML (Standard
|
|
|
|
Generalized Markup Language), which allows you to produce LaTeX, HTML,
|
|
|
|
GNU info, LyX, RTF, and plain ASCII documents (via groff) from a single
|
|
|
|
source.
|
|
|
|
|
|
|
|
This system is tailored for writing technical software documentation,
|
|
|
|
an example of which is the Linux HOWTO documents. It should be useful
|
|
|
|
for all kinds of printed and online documentation.
|
|
|
|
|
|
|
|
This package is the successor to the Linuxdoc package.
|
|
|
|
|
|
|
|
SGML-Tools cannot process arbitrary SGML documents. In such a case, try
|
|
|
|
jade_dsl and write your own DSSSL scripts (take the docbk30 package as
|
|
|
|
an example).
|
|
|
|
|
|
|
|
%define INSTALL install -m755
|
|
|
|
%define INSTALL_DIR install -d -m755
|
|
|
|
%define INSTALL_DATA install -m644
|
|
|
|
%define GZIP gzip --best --force
|
2008-04-25 16:45:11 +02:00
|
|
|
|
2006-12-19 00:17:50 +01:00
|
|
|
%prep
|
2008-08-07 11:59:46 +02:00
|
|
|
%setup -q -n sgml-tools-%{version} -a1
|
2006-12-19 00:17:50 +01:00
|
|
|
%patch
|
|
|
|
%patch1 -p 1
|
|
|
|
%patch2 -p 1
|
|
|
|
%patch3 -p 1
|
|
|
|
%patch4 -p 1
|
|
|
|
%patch5
|
|
|
|
%patch6 -p 1
|
|
|
|
%patch7 -p 1
|
|
|
|
%patch8
|
2012-07-30 20:40:13 +02:00
|
|
|
%if 0%{suse_version} > 1220
|
|
|
|
%patch9
|
2012-11-19 10:08:29 +01:00
|
|
|
%patch10 -p1
|
2012-07-30 20:40:13 +02:00
|
|
|
%endif
|
2006-12-19 00:17:50 +01:00
|
|
|
|
|
|
|
%build
|
2012-10-18 20:48:12 +02:00
|
|
|
CFLAGS="%optflags -fno-strict-aliasing" \
|
|
|
|
%configure --prefix="%buildroot/%_prefix" \
|
2006-12-19 00:17:50 +01:00
|
|
|
--with-installed-nsgmls
|
2012-10-18 20:48:12 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%optflags -fno-strict-aliasing"
|
|
|
|
make install DESTDIR="%buildroot" prefix="%_prefix"
|
|
|
|
(cd doc; PATH="$PATH:%buildroot/%_bindir" sh Makedoc.sh)
|
2006-12-19 00:17:50 +01:00
|
|
|
cp -p doc/README doc/README.doc
|
2012-10-18 20:48:12 +02:00
|
|
|
# the Makefiles are a bit nasty
|
2006-12-19 00:17:50 +01:00
|
|
|
make clean
|
2012-10-18 20:48:12 +02:00
|
|
|
CFLAGS="%optflags -fno-strict-aliasing" \
|
|
|
|
%configure \
|
2006-12-19 00:17:50 +01:00
|
|
|
--with-installed-nsgmls
|
2012-10-18 20:48:12 +02:00
|
|
|
make %{?_smp_mflags} CFLAGS="%optflags -fno-strict-aliasing"
|
2006-12-19 00:17:50 +01:00
|
|
|
|
|
|
|
%install
|
2012-10-18 20:48:12 +02:00
|
|
|
> doc/Makedoc.sh
|
|
|
|
make install DESTDIR="%buildroot";
|
2006-12-19 00:17:50 +01:00
|
|
|
rm -fr $RPM_BUILD_ROOT/usr/doc/sgml-tools
|
|
|
|
perlpath=`ls -1d /usr/lib/perl5/5.*/Text`
|
|
|
|
mkdir -p $RPM_BUILD_ROOT$perlpath
|
|
|
|
mv $RPM_BUILD_ROOT/usr/lib/perl5/Text/EntityMap.pm $RPM_BUILD_ROOT$perlpath/
|
|
|
|
|
2012-07-30 20:40:13 +02:00
|
|
|
%if 0%{suse_version} > 1220
|
|
|
|
%post
|
|
|
|
mkdir -p /var/run/texlive
|
|
|
|
> /var/run/texlive/run-mktexlsr
|
|
|
|
|
|
|
|
%postun
|
|
|
|
if test $1 = 0; then
|
|
|
|
%{_bindir}/mktexlsr 2> /dev/null || :
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
mkdir -p /var/run/texlive
|
|
|
|
> /var/run/texlive/run-mktexlsr
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
VERBOSE=false %{_texmfmaindir}/texconfig/update || :
|
|
|
|
%endif
|
|
|
|
|
2006-12-19 00:17:50 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc lnd-1.0
|
|
|
|
%doc COPYING BUGS CHANGES CONTRIBUTORS README TODO
|
|
|
|
%doc doc/README.doc doc/example.sgml doc/guide.info doc/guide.lyx
|
|
|
|
%doc doc/guide.ps.gz doc/guide.sgml doc/guide.txt
|
|
|
|
%doc doc/html doc/rtf
|
|
|
|
/usr/bin/sgmlsasp
|
|
|
|
/usr/bin/rtf2rtf
|
|
|
|
/usr/bin/sgmltools.v1
|
|
|
|
/usr/bin/sgml2html
|
|
|
|
/usr/bin/sgml2info
|
|
|
|
/usr/bin/sgml2latex
|
|
|
|
/usr/bin/sgml2lyx
|
|
|
|
/usr/bin/sgml2rtf
|
|
|
|
/usr/bin/sgml2txt
|
|
|
|
/usr/bin/sgmlcheck
|
|
|
|
/usr/bin/sgmlpre
|
|
|
|
%dir /usr/lib/entity-map
|
|
|
|
/usr/lib/entity-map/0.1.0
|
|
|
|
/usr/lib/perl5/5.*/Text/EntityMap.pm
|
|
|
|
%dir /usr/lib/sgml
|
|
|
|
/usr/lib/sgml-tools
|
|
|
|
/usr/lib/sgml/iso-entities-8879.1986
|
2012-07-30 20:40:13 +02:00
|
|
|
%if 0%{suse_version} > 1220
|
|
|
|
/usr/lib/texmf/tex/latex/sgml-tools
|
|
|
|
%endif
|
2006-12-19 00:17:50 +01:00
|
|
|
%{_mandir}/man1/sgml2html.1.gz
|
|
|
|
%{_mandir}/man1/sgml2info.1.gz
|
|
|
|
%{_mandir}/man1/sgml2latex.1.gz
|
|
|
|
%{_mandir}/man1/sgml2lyx.1.gz
|
|
|
|
%{_mandir}/man1/sgml2rtf.1.gz
|
|
|
|
%{_mandir}/man1/sgml2txt.1.gz
|
|
|
|
%{_mandir}/man1/sgmlsasp.1.gz
|
|
|
|
%{_mandir}/man1/sgmlcheck.1.gz
|
|
|
|
%{_mandir}/man1/sgmltools.1.gz
|
|
|
|
|
2007-03-29 18:28:23 +02:00
|
|
|
%changelog
|