Пакет python-doc-tools: Specfile

# -*- coding: utf-8 -*-
%define targetdir  %_datadir/python-doc-tools

# Hack! Hack! Hack!
%define _perl_lib_path %targetdir/tools
%define __find_provides %SOURCE1
%define __find_requires %SOURCE2

Name: python-doc-tools
Version: 0.0.1
Release: alt1
BuildArch: noarch

Requires: make python perl-base tetex-dvips tetex-latex latex2html lynx

Summary: A set of standard tools to convert python modules documentation
License: PSF
Group: Development/Python
Url: http://www.python.org

Source0: %name-%version.tar.bz2
Source1: %name.find-provides
Source2: %name.find-requires

%description
This package contains a set of scripts (python, perl), images, TeX
style files, etc. to build unified-styled documentation for python
modules from TeX/LaTeX sources.

%description -l ru_RU.UTF-8
Этот пакет содержит набор сценариев (python, perl), изображений,
файлов стилей TeX и т.д. для построения выдержанной в едином стиле
документации для модулей питон из исходников на TeX/LaTex

%prep
%setup -q -n %name
cat >README <<EOF
Usage:

    make -f %targetdir/Makefile MODULE=<YourModuleName> [<TargetFormat>]

Supported formats:
    html
    text
    dvi
    ps
EOF
rm -rf tools/push-docs.sh
rm -rf tools/update-docs.sh

%install
%__mkdir_p %buildroot%targetdir
cp -pr * %buildroot%targetdir
unset RPM_PYTHON

%files
%doc README
%targetdir

%changelog
* Tue Jan 13 2004 Alexey Morozov <morozov@altlinux.org> 0.0.1-alt1
- Initial build (sources shamelessly stolen from python-pyOpenSSL
  package)