From d6ff777faf984b6c2a24dbe754e16c38df00647c Mon Sep 17 00:00:00 2001 From: CentOS Buildsys Date: Mar 16 2013 15:23:07 +0000 Subject: import epydoc-3.0.1-13.el7.src.rpm --- diff --git a/.epydoc.metadata b/.epydoc.metadata new file mode 100644 index 0000000..afa00d0 --- /dev/null +++ b/.epydoc.metadata @@ -0,0 +1 @@ +ccd5cb602cbf8df1a6c61670793d0122fc569523 SOURCES/epydoc-3.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/epydoc-3.0.1-giftopng.patch b/SOURCES/epydoc-3.0.1-giftopng.patch new file mode 100644 index 0000000..290d48a --- /dev/null +++ b/SOURCES/epydoc-3.0.1-giftopng.patch @@ -0,0 +1,66 @@ +diff -Naupr epydoc-3.0.1.orig/epydoc/docwriter/dotgraph.py epydoc-3.0.1/epydoc/docwriter/dotgraph.py +--- epydoc-3.0.1.orig/epydoc/docwriter/dotgraph.py 2008-01-28 19:15:33.000000000 +0100 ++++ epydoc-3.0.1/epydoc/docwriter/dotgraph.py 2008-12-22 20:19:42.037246526 +0100 +@@ -140,7 +140,7 @@ class DotGraph: + # the cmapx with a single call to dot. Otherwise, we need to + # run dot twice. + if get_dot_version() > [1,8,10]: +- cmapx = self._run_dot('-Tgif', '-o%s' % image_file, '-Tcmapx') ++ cmapx = self._run_dot('-Tpng', '-o%s' % image_file, '-Tcmapx') + if cmapx is None: return '' # failed to render + else: + if not self.write(image_file): +@@ -220,7 +220,7 @@ class DotGraph: + if url: attribs['href'] = url + else: del attribs['href'] + +- def write(self, filename, language='gif'): ++ def write(self, filename, language='png'): + """ + Render the graph using the output format `language`, and write + the result to `filename`. +@@ -234,7 +234,7 @@ class DotGraph: + result = result.decode('utf-8') + return (result is not None) + +- def render(self, language='gif'): ++ def render(self, language='png'): + """ + Use the ``dot`` command to render this graph, using the output + format `language`. Return the result as a string, or ``None`` +diff -Naupr epydoc-3.0.1.orig/epydoc/docwriter/html.py epydoc-3.0.1/epydoc/docwriter/html.py +--- epydoc-3.0.1.orig/epydoc/docwriter/html.py 2008-01-29 13:43:04.000000000 +0100 ++++ epydoc-3.0.1/epydoc/docwriter/html.py 2008-12-22 20:19:56.195371915 +0100 +@@ -1627,7 +1627,7 @@ class HTMLWriter: + def render_graph(self, graph): + if graph is None: return '' + graph.caption = graph.title = None +- image_url = '%s.gif' % graph.uid ++ image_url = '%s.png' % graph.uid + image_file = os.path.join(self._directory, image_url) + return graph.to_html(image_file, image_url) + +diff -Naupr epydoc-3.0.1.orig/epydoc/markup/epytext.py epydoc-3.0.1/epydoc/markup/epytext.py +--- epydoc-3.0.1.orig/epydoc/markup/epytext.py 2007-09-26 06:45:35.000000000 +0200 ++++ epydoc-3.0.1/epydoc/markup/epytext.py 2008-12-22 20:20:14.630371505 +0100 +@@ -1878,7 +1878,7 @@ class ParsedEpytextDocstring(ParsedDocst + docindex, context) + if not graph: return '' + # Write the graph. +- image_url = '%s.gif' % graph.uid ++ image_url = '%s.png' % graph.uid + image_file = os.path.join(directory, image_url) + return graph.to_html(image_file, image_url) + else: +diff -Naupr epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py epydoc-3.0.1/epydoc/markup/restructuredtext.py +--- epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py 2008-01-28 19:15:33.000000000 +0100 ++++ epydoc-3.0.1/epydoc/markup/restructuredtext.py 2008-12-22 20:20:23.679309245 +0100 +@@ -663,7 +663,7 @@ class _EpydocHTMLTranslator(HTMLTranslat + if graph is None: return + + # Write the graph. +- image_url = '%s.gif' % graph.uid ++ image_url = '%s.png' % graph.uid + image_file = os.path.join(self._directory, image_url) + self.body.append(graph.to_html(image_file, image_url)) + raise SkipNode() diff --git a/SOURCES/epydoc-3.0.1-new-docutils.patch b/SOURCES/epydoc-3.0.1-new-docutils.patch new file mode 100644 index 0000000..d17a610 --- /dev/null +++ b/SOURCES/epydoc-3.0.1-new-docutils.patch @@ -0,0 +1,29 @@ +From b293e11299566005b5d918c735bdf9c0ab5ded6f Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Thu, 1 Apr 2010 20:23:12 +0200 +Subject: [PATCH] Fix restructuredtext formatting for python-docutils-0.6 + +--- + epydoc/markup/restructuredtext.py | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/epydoc/markup/restructuredtext.py b/epydoc/markup/restructuredtext.py +index 8b6ac04..4726cb5 100644 +--- a/epydoc/markup/restructuredtext.py ++++ b/epydoc/markup/restructuredtext.py +@@ -304,10 +304,10 @@ class _SummaryExtractor(NodeVisitor): + # Extract the first sentence. + for child in node: + if isinstance(child, docutils.nodes.Text): +- m = self._SUMMARY_RE.match(child.data) ++ m = self._SUMMARY_RE.match(child) + if m: + summary_pieces.append(docutils.nodes.Text(m.group(1))) +- other = child.data[m.end():] ++ other = child[m.end():] + if other and not other.isspace(): + self.other_docs = True + break +-- +1.7.0.1 + diff --git a/SOURCES/epydoc-3.0.1-nohashbang.patch b/SOURCES/epydoc-3.0.1-nohashbang.patch new file mode 100644 index 0000000..a586d58 --- /dev/null +++ b/SOURCES/epydoc-3.0.1-nohashbang.patch @@ -0,0 +1,8 @@ +diff -Naupr epydoc-3.0.1.orig/epydoc/gui.py epydoc-3.0.1/epydoc/gui.py +--- epydoc-3.0.1.orig/epydoc/gui.py 2008-01-30 14:06:15.000000000 +0100 ++++ epydoc-3.0.1/epydoc/gui.py 2008-03-22 22:00:49.000000000 +0100 +@@ -1,4 +1,3 @@ +-#!/usr/bin/env python + # + # objdoc: epydoc command-line interface + # Edward Loper diff --git a/SOURCES/epydocgui.desktop b/SOURCES/epydocgui.desktop new file mode 100644 index 0000000..d503ffa --- /dev/null +++ b/SOURCES/epydocgui.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=Epydoc +Comment=Python API documentation generator +Exec=epydocgui +Type=Application +Terminal=false +Categories=Application;Development; diff --git a/SPECS/epydoc.spec b/SPECS/epydoc.spec new file mode 100644 index 0000000..393c494 --- /dev/null +++ b/SPECS/epydoc.spec @@ -0,0 +1,159 @@ +%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") + +Summary: Automatic API documentation generation tool for Python +Name: epydoc +Version: 3.0.1 +Release: 13%{?dist} +Group: Development/Tools +License: MIT +URL: http://epydoc.sourceforge.net/ +Source0: http://dl.sf.net/epydoc/epydoc-%{version}.tar.gz +Source1: epydocgui.desktop +Patch0: epydoc-3.0.1-nohashbang.patch +Patch1: epydoc-3.0.1-giftopng.patch +Patch2: epydoc-3.0.1-new-docutils.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Requires: tkinter +# Needed for some outputs, like --pdf (#522249) +Requires: tex(dvips) +Requires: tex(latex) +BuildRequires: python-devel +BuildRequires: 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. + + +%prep +%setup -q +%patch0 -p1 -b .nohashbang +%patch1 -p1 -b .giftopng +%patch2 -p1 -b .new-docutils + + +%build +%{__python} setup.py build + + +%install +%{__rm} -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root=%{buildroot} + +desktop-file-install \ + --vendor="" \ + --dir=%{buildroot}%{_datadir}/applications \ + --mode=0644 \ + %{SOURCE1} + +# Also install the man pages +%{__mkdir_p} %{buildroot}%{_mandir}/man1 +%{__install} -p -m 0644 man/*.1 %{buildroot}%{_mandir}/man1/ + +# Prevent having *.pyc and *.pyo in _bindir +%{__mv} %{buildroot}%{_bindir}/apirst2html.py %{buildroot}%{_bindir}/apirst2html + + +%clean +%{__rm} -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt README.txt doc/ +%{_bindir}/apirst2html +%{_bindir}/epydoc +%{_bindir}/epydocgui +%{python_sitelib}/epydoc/ +%{python_sitelib}/epydoc-*.egg-info +%{_datadir}/applications/epydocgui.desktop +%{_mandir}/man1/*.1* + + +%changelog +* Wed Feb 13 2013 Fedora Release Engineering - 3.0.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Rex Dieter 3.0.1-12 +- Requires: tex(dvips) tex(latex) + +* Wed Jul 18 2012 Fedora Release Engineering - 3.0.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 3.0.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 3.0.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Wed Jul 21 2010 David Malcolm - 3.0.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild + +* Tue Apr 13 2010 Lubomir Rintel 3.0.1-7 +- Fix crash with newer docutils (#578920) + +* Tue Dec 8 2009 Matthias Saou 3.0.1-6 +- Add texlive-dvips and texlive-latex requirements (#522249). + +* Fri Jul 24 2009 Fedora Release Engineering - 3.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 3.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Dec 22 2008 Matthias Saou 3.0.1-3 +- Include patch to use png instead of gif for generated images (#459857). + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 3.0.1-2 +- Rebuild for Python 2.6 + +* Sat Mar 22 2008 Matthias Saou 3.0.1-1 +- Update to 3.0.1. +- Update nohashbang patch. +- Include new apirst2html script, but remove .py extension to avoid .pyc/pyo. +- Include egg-info file. + +* Tue Jun 19 2007 Matthias Saou 2.1-8 +- Remove desktop file prefix and X-Fedora category. +- Include patch to remove #! python from files only meant to be included. + +* Mon Dec 11 2006 Matthias Saou 2.1-7 +- Rebuild against python 2.5. +- Remove no longer needed explicit python-abi requirement. +- Change python build requirement to python-devel, as it's needed now. + +* Wed Sep 6 2006 Matthias Saou 2.1-6 +- No longer ghost the .pyo files, as per new python guidelines (#205374). + +* Mon Aug 28 2006 Matthias Saou 2.1-5 +- FC6 rebuild. +- Add %%{?dist} tag. +- Update summary line. + +* Fri Apr 7 2005 Michael Schwendt +- rebuilt + +* Mon Dec 20 2004 Ville Skyttä - 2.1-3 +- Change to noarch. +- Get Python site-packages dir from distutils, should fix x86_64 build. +- Require python-abi and tkinter. +- %%ghost'ify *.pyo. +- Fix man page permissions. +- Add menu entry for epydocgui. + +* Tue Nov 16 2004 Matthias Saou 2.1-2 +- Bump release to provide Extras upgrade path. + +* Thu Oct 21 2004 Matthias Saou 2.1-1 +- Picked up and rebuilt. +- Added doc and man pages. + +* Fri May 07 2004 Thomas Vander Stichele +- 2.1-0.fdr.1: Initial package +