2016-03-04 21:50:27 +00:00
|
|
|
%define sourcename tldp
|
|
|
|
%define name python-tldp
|
2016-03-28 21:08:12 +00:00
|
|
|
%define version 0.7.0
|
|
|
|
%define unmangled_version 0.7.0
|
|
|
|
%define unmangled_version 0.7.0
|
2016-03-04 21:50:27 +00:00
|
|
|
%define release 1
|
|
|
|
|
2016-03-27 07:51:49 +00:00
|
|
|
Summary: processing tools for Asciidoc, DocBook XML, DocBook SGML and Linuxdoc
|
2016-03-04 21:50:27 +00:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Source0: %{sourcename}-%{unmangled_version}.tar.gz
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildArch: noarch
|
|
|
|
Vendor: Martin A. Brown <martin@linux-ip.net>
|
2016-03-10 19:11:39 +00:00
|
|
|
BuildRequires: python-setuptools
|
|
|
|
Requires: asciidoc
|
|
|
|
Requires: jing
|
|
|
|
Requires: htmldoc
|
|
|
|
Requires: sgmltool
|
|
|
|
Requires: openjade
|
2016-03-10 19:43:25 +00:00
|
|
|
Requires: docbook-utils
|
2016-03-10 19:11:39 +00:00
|
|
|
Requires: docbook-utils-minimal
|
|
|
|
Requires: docbook-dsssl-stylesheets
|
|
|
|
Requires: docbook-xsl-stylesheets
|
|
|
|
Requires: docbook5-xsl-stylesheets
|
2016-03-10 19:19:51 +00:00
|
|
|
Requires: libxslt-tools
|
2016-03-10 19:18:40 +00:00
|
|
|
Requires: python-networkx
|
2016-03-04 21:50:27 +00:00
|
|
|
|
|
|
|
%description
|
2016-03-27 07:51:49 +00:00
|
|
|
tldp - processing tools for Asciidoc, DocBook XML, DocBook SGML and Linuxdoc
|
|
|
|
============================================================================
|
|
|
|
A toolset for publishing multiple output formats (PDF, text, chunked HTML and
|
|
|
|
single-page HTML) from each source document in one of the supported formats.
|
|
|
|
|
|
|
|
* Asciidoc
|
|
|
|
* Linuxdoc
|
|
|
|
* Docbook SGML 3.x (though deprecated, please no new submissions)
|
|
|
|
* Docbook SGML 4.x
|
|
|
|
* Docbook XML 4.x
|
|
|
|
* Docbook XML 5.x (basic support, as of 2016-03-10)
|
2016-03-04 21:50:27 +00:00
|
|
|
|
|
|
|
TLDP = The Linux Documentation Project.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n %{sourcename}-%{unmangled_version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
|
|
perl -pi -e 's,(/etc/ldptool/ldptool.ini),%config(noreplace) $1,' INSTALLED_FILES
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f INSTALLED_FILES
|
|
|
|
%defattr(-,root,root)
|