[521] | 1 | %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
---|
| 2 | |
---|
| 3 | Summary: Automatic API documentation generation tool for Python |
---|
| 4 | Summary(ja): Python 用の自動 API ドキュメント生成ツール |
---|
| 5 | Name: epydoc |
---|
| 6 | Version: 3.0.1 |
---|
| 7 | Release: 2%{?_dist_release} |
---|
| 8 | Group: Development/Tools |
---|
| 9 | License: MIT |
---|
| 10 | URL: http://epydoc.sourceforge.net/ |
---|
| 11 | Source0: http://dl.sf.net/epydoc/epydoc-%{version}.tar.gz |
---|
| 12 | Source1: epydocgui.desktop |
---|
| 13 | Patch0: epydoc-3.0.1-nohashbang.patch |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | Requires: tkinter |
---|
| 16 | BuildRequires: python-devel |
---|
| 17 | BuildRequires: desktop-file-utils |
---|
| 18 | BuildArch: noarch |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | Epydoc is a tool for generating API documentation for Python modules, |
---|
| 22 | based on their docstrings. For an example of epydoc's output, see the |
---|
| 23 | API documentation for epydoc itself (html, pdf). A lightweight markup |
---|
| 24 | language called epytext can be used to format docstrings, and to add |
---|
| 25 | information about specific fields, such as parameters and instance |
---|
| 26 | variables. Epydoc also understands docstrings written in |
---|
| 27 | ReStructuredText, Javadoc, and plaintext. |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q |
---|
| 32 | %patch0 -p1 -b .nohashbang |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | %{__python} setup.py build |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | %{__rm} -rf %{buildroot} |
---|
| 41 | %{__python} setup.py install -O1 --skip-build --root=%{buildroot} |
---|
| 42 | |
---|
| 43 | desktop-file-install \ |
---|
| 44 | --vendor="" \ |
---|
| 45 | --dir=%{buildroot}%{_datadir}/applications \ |
---|
| 46 | --mode=0644 \ |
---|
| 47 | %{SOURCE1} |
---|
| 48 | |
---|
| 49 | # Also install the man pages |
---|
| 50 | %{__mkdir_p} %{buildroot}%{_mandir}/man1 |
---|
| 51 | %{__install} -p -m 0644 man/*.1 %{buildroot}%{_mandir}/man1/ |
---|
| 52 | |
---|
| 53 | # Prevent having *.pyc and *.pyo in _bindir |
---|
| 54 | %{__mv} %{buildroot}%{_bindir}/apirst2html.py %{buildroot}%{_bindir}/apirst2html |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | %{__rm} -rf %{buildroot} |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %files |
---|
| 62 | %defattr(-,root,root,-) |
---|
| 63 | %doc LICENSE.txt README.txt doc/ |
---|
| 64 | %{_bindir}/apirst2html |
---|
| 65 | %{_bindir}/epydoc |
---|
| 66 | %{_bindir}/epydocgui |
---|
| 67 | %{python_sitelib}/epydoc/ |
---|
| 68 | %{python_sitelib}/epydoc-*.egg-info |
---|
| 69 | %{_datadir}/applications/epydocgui.desktop |
---|
| 70 | %{_mandir}/man1/*.1* |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %changelog |
---|
| 74 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 3.0.1-2 |
---|
| 75 | - rebuilt with python-2.6.4 |
---|
| 76 | |
---|
| 77 | * Tue Sep 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.1-1 |
---|
| 78 | - initial build for Vine Linux |
---|
| 79 | |
---|
| 80 | * Sat Mar 22 2008 Matthias Saou <http://freshrpms.net/> 3.0.1-1 |
---|
| 81 | - Update to 3.0.1. |
---|
| 82 | - Update nohashbang patch. |
---|
| 83 | - Include new apirst2html script, but remove .py extension to avoid .pyc/pyo. |
---|
| 84 | - Include egg-info file. |
---|
| 85 | |
---|
| 86 | * Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 2.1-8 |
---|
| 87 | - Remove desktop file prefix and X-Fedora category. |
---|
| 88 | - Include patch to remove #! python from files only meant to be included. |
---|
| 89 | |
---|
| 90 | * Mon Dec 11 2006 Matthias Saou <http://freshrpms.net/> 2.1-7 |
---|
| 91 | - Rebuild against python 2.5. |
---|
| 92 | - Remove no longer needed explicit python-abi requirement. |
---|
| 93 | - Change python build requirement to python-devel, as it's needed now. |
---|
| 94 | |
---|
| 95 | * Wed Sep 6 2006 Matthias Saou <http://freshrpms.net/> 2.1-6 |
---|
| 96 | - No longer ghost the .pyo files, as per new python guidelines (#205374). |
---|
| 97 | |
---|
| 98 | * Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 2.1-5 |
---|
| 99 | - FC6 rebuild. |
---|
| 100 | - Add %%{?dist} tag. |
---|
| 101 | - Update summary line. |
---|
| 102 | |
---|
| 103 | * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> |
---|
| 104 | - rebuilt |
---|
| 105 | |
---|
| 106 | * Mon Dec 20 2004 Ville Skyttä <ville.skytta at iki.fi> - 2.1-3 |
---|
| 107 | - Change to noarch. |
---|
| 108 | - Get Python site-packages dir from distutils, should fix x86_64 build. |
---|
| 109 | - Require python-abi and tkinter. |
---|
| 110 | - %%ghost'ify *.pyo. |
---|
| 111 | - Fix man page permissions. |
---|
| 112 | - Add menu entry for epydocgui. |
---|
| 113 | |
---|
| 114 | * Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 2.1-2 |
---|
| 115 | - Bump release to provide Extras upgrade path. |
---|
| 116 | |
---|
| 117 | * Thu Oct 21 2004 Matthias Saou <http://freshrpms.net/> 2.1-1 |
---|
| 118 | - Picked up and rebuilt. |
---|
| 119 | - Added doc and man pages. |
---|
| 120 | |
---|
| 121 | * Fri May 07 2004 Thomas Vander Stichele <thomas at apestaart dot org> |
---|
| 122 | - 2.1-0.fdr.1: Initial package |
---|
| 123 | |
---|