82 lines
2.4 KiB
RPMSpec
82 lines
2.4 KiB
RPMSpec
Name: epydoc
|
|
Version: 3.0.1.20090203svn
|
|
Release: 11
|
|
Summary: API Documentation Generation Tool
|
|
License: MIT
|
|
URL: http://epydoc.sourceforge.net/
|
|
Source0: http://dl.sf.net/epydoc/epydoc-%{version}.tar.gz
|
|
Source1: epydocgui.desktop
|
|
|
|
Patch0001: epydoc-3.0.1-nohashbang.patch
|
|
Patch0002: epydoc-3.0.1svn1812-png-default.patch
|
|
Patch0003: epydoc-3.0.1-new-docutils.patch
|
|
Patch0004: epydoc-3.0.1svn1812-make-suppress-timestamp-the-default.patch
|
|
Patch0005: epydoc-3.0.1svn1812-fix-relative-import.patch
|
|
|
|
Recommends: tex(dvips) tex(latex)
|
|
BuildRequires: python2-devel desktop-file-utils
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
Epydoc is a tool for generating API documentation for Python modules, based on
|
|
their docstrings. For an example of epydoc's output, see the API documentation
|
|
for epydoc itself (html, pdf). A lightweight markup language called epytext can be used
|
|
to format docstrings, and to add information about specific fields, such as parameters
|
|
and instance variables. Epydoc also understands docstrings written in ReStructuredText,
|
|
Javadoc, and plaintext.
|
|
|
|
%package help
|
|
Summary: Help document files for %{name}
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
|
|
%description help
|
|
Help document files for %{name}.
|
|
|
|
%package gui
|
|
Summary: Graphical user interface for epydoc modules
|
|
Requires: %{name} = %{version}-%{release} python2-tkinter
|
|
|
|
%description gui
|
|
This package provides Graphical user interface for epydoc.
|
|
|
|
%prep
|
|
%setup -q
|
|
rm -rf epydoc/doc/.cvsignore
|
|
%patch0001 -p1 -d epydoc/src/ -b .nohashbang
|
|
%patch0002 -p1 -b .default-png
|
|
%patch0003 -p1 -d epydoc/src/ -b .new-docutils
|
|
%patch0004 -p1 -b .no-timestamp
|
|
%patch0005 -p1 -d epydoc/src/ -b .fix-relative-import
|
|
|
|
%build
|
|
cd epydoc/src/
|
|
%py2_build
|
|
|
|
%install
|
|
cd epydoc/src/
|
|
%py2_install
|
|
|
|
desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications --mode=0644 %{SOURCE1}
|
|
mv %{buildroot}%{_bindir}/apirst2html.py %{buildroot}%{_bindir}/apirst2html
|
|
install -Dt %{buildroot}%{_mandir}/man1/ -p -m 0644 ../man/*.1
|
|
|
|
%files
|
|
%doc epydoc/src/README.txt epydoc/src/LICENSE.txt
|
|
%{_bindir}/{apirst2html,epydoc}
|
|
%{python2_sitelib}/epydoc/
|
|
%{python2_sitelib}/epydoc-*.egg-info
|
|
|
|
%files gui
|
|
%{_bindir}/epydocgui
|
|
%{_datadir}/applications/epydocgui.desktop
|
|
|
|
%files help
|
|
%doc epydoc/doc
|
|
%{_mandir}/man1/*
|
|
|
|
%changelog
|
|
* Tue Dec 31 2019 wangzhishun <wangzhishun1@huawei.com> - 3.0.1.20090203svn-11
|
|
- Package init
|
|
|