Sisyphus repository
Last update: 21 april 2019 | SRPMs: 17658 | Visits: 13442593
en ru br
ALT Linux repos
5.0: 3.0.3-alt6.1
4.1: 3.0.3-alt6.1
4.0: 3.0.3-alt6
3.0: 3.0.3-alt5.1

Group :: Publishing
RPM: sgmltools-lite

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: sgmltools-lite
Version: 3.0.3
Release: alt6.2.1

Summary: Transforms SGML DocBook files to various formats
Group: Publishing
License: GPL
Packager: Yuri N. Sedunov <aris at>
BuildArch: noarch

Patch0: %name-3.0.3-cvs-20020815.patch
Patch1: %name-3.0.3-deb-fixes.patch

Requires: docbook-style-dsssl jadetex
# hack
Provides: python%__python_version(Backend), python%__python_version(utils)

BuildRequires: openjade, python

This package contains some scripts to transform SGML (not XML) DocBook
(with some limitations LinuxDoc) source code to various formats,
including PDF, PostScript, DVI, HTML, ASCII, iSilo, and RTF.

%{expand:%define sgml_base_dir %(sed -ne 's/^SGML_BASE_DIR=\\(.\\+\\)/\\1/p' `sgmlwhich`)}
%{expand:%define sgml_catalogs_dir %(sed -ne 's/^SGML_CATALOGS_DIR=\\(.\\+\\)/\\1/p' `sgmlwhich`)}
%{expand:%define openjade_catalog %(find %sgml_base_dir -type f -path '*openjade*/catalog')}
%{expand:%define iso_entities_catalog %(find %sgml_base_dir -type f -path '*iso-entities-8879.1986*/catalog')}
%define dsssldir %sgml_base_dir/docbook/dsssl-stylesheets
%define sgmltools_dir %sgml_base_dir/stylesheets/sgmltools
%define sgmltools_dtd_dir %sgml_base_dir/dtd/sgmltools
%define sgmltools_python_dir %sgml_base_dir/misc/sgmltools/python

%setup -q
%patch0 -p0
%patch1 -p1

export ac_cv_path_W3M=no
export ac_cv_path_LYNX=/usr/bin/lynx
%configure --with-etcsgml=%sgml_catalogs_dir --with-dbimages=%dsssldir/images

# make install specific we create own catalog tree
%__mkdir_p %buildroot{%_bindir,%sgmltools_dir,%sgmltools_dtd_dir,\

%__install -m755 bin/{sgmltools,gensgmlenv,buildcat} %buildroot%_bindir/
%__install -m644 dsssl/{*.dsl,*.cat} %buildroot%sgmltools_dir/
%__install -m644 dtd/[a-z]* %buildroot%sgmltools_dtd_dir/
%__install -m644 python/*.py %buildroot%sgmltools_python_dir/
%__install -m644 python/backends/*.py %buildroot%sgmltools_python_dir/backends/
%__install -m644 VERSION %buildroot%sgml_base_dir/misc/sgmltools/
%__install -m644 aliases %buildroot%sgml_catalogs_dir/aliases
%__install -m644 man/sgmltools-lite.1 %buildroot%_man1dir/

# Create catalog for %name

%__cat <<__EOF__ >
CATALOG "%sgmltools_dtd_dir/catalog"
CATALOG "%sgmltools_dir/"
CATALOG "%openjade_catalog"
CATALOG "%iso_entities_catalog"

%__install -pD -m644 %buildroot%sgml_catalogs_dir/

%define catalog_entry CATALOG "%sgml_catalogs_dir/"

echo '%catalog_entry' >> %sgml_catalogs_dir/catalog

if [ "$1" -eq 0 -a -s %sgml_catalogs_dir/catalog ]; then
%__subst '\|%catalog_entry|d' %sgml_catalogs_dir/catalog ||:

%config %sgml_catalogs_dir/*
%doc README *INSTALL index.html


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin