diff --git a/epydoc-3.0.1-new-docutils.patch b/epydoc-3.0.1-new-docutils.patch
deleted file mode 100644
index d17a610..0000000
--- a/epydoc-3.0.1-new-docutils.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From b293e11299566005b5d918c735bdf9c0ab5ded6f Mon Sep 17 00:00:00 2001
-From: Lubomir Rintel
epydoc-log.html
- A page with the log of the epydoc execution. It is available clicking on the
- timestamp below each page, if the documentation was created using the
-- --include-log option. The page also contains the list of the
-- options enabled when the documentation was created. --include-log and --include-timestamp options.
-+ The page also contains the list of the options enabled when the documentation
-+ was created.
-
- api-objects.txt
- A text file containing each available item and the URL where it is
-diff --git a/epydoc/man/epydoc.1 b/epydoc/man/epydoc.1
-index 5fbfcf9..4d527dc 100644
---- a/epydoc/man/epydoc.1
-+++ b/epydoc/man/epydoc.1
-@@ -293,10 +293,14 @@ documentation, instead of including them in the documentation for
- their modules. This creates a separate LaTeX file for each class, so
- it can also be useful if you want to include the documentation for one
- or two classes as sections of your own LaTeX document.
-+.\" --include-timestamp
-+.TP
-+.B \-\-include\-timestamp
-+Include a timestamp in the generated output.
- .\" --suppress-timestamp
- .TP
- .B \-\-suppress\-timestamp
--Do not include a timestamp in the generated output.
-+ignored, only exists for backwards compatibility. (it is now the default)
- .RE
- .PP
- .\"--------------------------------------------------
-diff --git a/epydoc/src/epydoc/cli.py b/epydoc/src/epydoc/cli.py
-index d7a308c..fbbe5de 100644
---- a/epydoc/src/epydoc/cli.py
-+++ b/epydoc/src/epydoc/cli.py
-@@ -152,7 +152,7 @@ def option_defaults():
- fail_on=None, exclude=[], exclude_parse=[], exclude_introspect=[],
- external_api=[], external_api_file=[], external_api_root=[],
- redundant_details=False, src_code_tab_width=8, verbosity=0,
-- include_timestamp=True, target={}, default_target=None,
-+ include_timestamp=False, target={}, default_target=None,
- pdfdriver='auto', show_submodule_list=True, inherit_from_object=False)
-
- # append_const is not defined in py2.3 or py2.4, so use a callback
-@@ -404,9 +404,13 @@ def parse_arguments():
- help=("When generating HTML output, sets the number of spaces "
- "each tab in source code listings is replaced with."))
-
-+ output_group.add_option('--include-timestamp',
-+ action='store_true', dest='include_timestamp',
-+ help=("Include a timestamp in the generated output."))
-+
- output_group.add_option('--suppress-timestamp',
-- action='store_false', dest='include_timestamp',
-- help=("Do not include a timestamp in the generated output."))
-+ action='store_false', dest='ignored_options',
-+ help=("Ignored, only exists for backwards compatibility. (this is now the default)"))
-
- # The group of external API options.
- # Skip if the module couldn't be imported (usually missing docutils)
-diff --git a/epydoc/src/epydoc/docwriter/html.py b/epydoc/src/epydoc/docwriter/html.py
-index b6be5f4..e496f56 100644
---- a/epydoc/src/epydoc/docwriter/html.py
-+++ b/epydoc/src/epydoc/docwriter/html.py
-@@ -361,7 +361,7 @@ class HTMLWriter:
- self._include_log = kwargs.get('include_log', False)
- """Are we generating an HTML log page?"""
-
-- self._include_timestamp = kwargs.get('include_timestamp', True)
-+ self._include_timestamp = kwargs.get('include_timestamp', False)
- """Include a timestamp on the generated docs?"""
-
- self._src_code_tab_width = kwargs.get('src_code_tab_width', 8)
-diff --git a/epydoc/src/epydoc/docwriter/html_css.py b/epydoc/src/epydoc/docwriter/html_css.py
-index 53923aa..9b0c837 100644
---- a/epydoc/src/epydoc/docwriter/html_css.py
-+++ b/epydoc/src/epydoc/docwriter/html_css.py
-@@ -82,8 +82,8 @@ a.link { font-family: monospace; }
- * variables and to show/hide frames; and a page title (using
- * re.sub",
- if a module defines the "__all__" variable, then its
- contents are used to decide which objects are private.
-
--A timestamp below the bottom navigation bar indicates when each --page was last updated.
-+If --include-timestamp was passed, a timestamp below the bottom navigation bar indicates -+when each page was last updated.
- ''' --- -1.9.3 - diff --git a/epydoc-3.0.1svn1812-png-default.patch b/epydoc-3.0.1svn1812-png-default.patch deleted file mode 100644 index dbc5ee5..0000000 --- a/epydoc-3.0.1svn1812-png-default.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ru epydoc-code.orig/epydoc/src/epydoc/docwriter/dotgraph.py epydoc-code/epydoc/src/epydoc/docwriter/dotgraph.py ---- epydoc-code.orig/epydoc/src/epydoc/docwriter/dotgraph.py 2015-10-02 20:18:48.213890123 +0100 -+++ epydoc-code/epydoc/src/epydoc/docwriter/dotgraph.py 2015-10-02 20:33:00.582257332 +0100 -@@ -93,7 +93,7 @@ - """The default minimum size in inches (width,height) for graphs - when rendering with `to_html()`""" - -- DEFAULT_HTML_IMAGE_FORMAT = 'gif' -+ DEFAULT_HTML_IMAGE_FORMAT = 'png' - """The default format used to generate images by `to_html()`""" - - def __init__(self, title, body='', node_defaults=None, diff --git a/epydoc.spec b/epydoc.spec index 13e9b81..22faa9b 100644 --- a/epydoc.spec +++ b/epydoc.spec @@ -1,17 +1,10 @@ Name: epydoc -Version: 3.0.1.20090203svn +Version: 3.0.1 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 +Source0: https://sourceforge.net/projects/epydoc/files/epydoc/${version}/epydoc-%{version}.tar.gz Recommends: tex(dvips) tex(latex) BuildRequires: python2-devel desktop-file-utils @@ -42,40 +35,27 @@ 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 +%doc README.txt 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/* +%doc epydoc/* %changelog -* Tue Dec 31 2019 wangzhishun