File sgmltool.spec of Package sgmltool

# spec file for package sgmltool (Version 1.0.9)
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

# norootforbuild

Name:           sgmltool
BuildRequires:  flex opensp
License:        SUSE-Public-Domain
Group:          Productivity/Publishing/SGML
Provides:       sgml-tools 
Requires:       opensp
Requires:       perl = %perl_version
Requires:       perl(Text::EntityMap)
Conflicts:      linuxdoc
AutoReqProv:    on
Summary:        SGML-Tools - a Text-Formatting Package
Version:        1.0.9
Release:        1052
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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

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).

    Cees A. de Groot <>
    Arun Sharma <>
    Andre Schoorl <aschoorl@engr.UVic.CA>
    Daniele Giacomini <>
    Dave Love <>
    Dave Platt <>
    Eric S. Raymond <>
    Francisco J. Montilla <>
    Fabrizio Polacco <>
    Frank Pavageau <>
    Jan Echternach <>
    Henry S. Thompson <>
    Karsten Tinnefeld <>
    Kees de Bruin <>
    Ken MacLeod <>
    Lee Marzke <>
    Marco Budde <>
    Mitchell Perilstein <>
    Sven Rudolph <>
    Tommy Marcus McGuire <>
    Ulrich Windl <>

%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%define GZIP gzip --best --force

%setup -q -n sgml-tools-%{version} -a1
%patch1 -p 1
%patch2 -p 1
%patch3 -p 1
%patch4 -p 1
%patch6 -p 1
%patch7 -p 1

CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
./configure --prefix=$RPM_BUILD_ROOT/usr \
            --mandir=%{_mandir} \
make %{?jobs:-j%jobs} "CFLAGS=$RPM_OPT_FLAGS -fno-strict-aliasing"
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr \
(cd doc; PATH=$PATH:$RPM_BUILD_ROOT/%_bindir sh
cp -p doc/README doc/README.doc
# the Makefiles are a bit garstig
make clean
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
./configure --prefix=/usr \
            --mandir=%{_mandir} \
make %{?jobs:-j%jobs} "CFLAGS=$RPM_OPT_FLAGS -fno-strict-aliasing"

: > doc/
make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr \
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/ $RPM_BUILD_ROOT$perlpath/


%doc lnd-1.0
%doc doc/README.doc doc/example.sgml doc/ doc/guide.lyx
%doc doc/ doc/guide.sgml doc/guide.txt
%doc doc/html doc/rtf
%dir /usr/lib/entity-map
%dir /usr/lib/sgml

openSUSE Build Service is sponsored by