Matthias Saou d027f5
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
cvsextras d8c5a0
Matthias Saou ca8de3
Summary: Automatic API documentation generation tool for Python
cvsextras d8c5a0
Name: epydoc
Matthias Saou 019662
Version: 3.0.1
Jesse Keating e80d26
Release: 4%{?dist}
cvsextras d8c5a0
Group: Development/Tools
cvsextras d8c5a0
License: MIT
cvsextras d8c5a0
URL: http://epydoc.sourceforge.net/
Matthias Saou df01f7
Source0: http://dl.sf.net/epydoc/epydoc-%{version}.tar.gz
Matthias Saou df01f7
Source1: epydocgui.desktop
Matthias Saou 019662
Patch0: epydoc-3.0.1-nohashbang.patch
Matthias Saou a7e451
Patch1: epydoc-3.0.1-giftopng.patch
cvsextras d8c5a0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Matthias Saou df01f7
Requires: tkinter
Matthias Saou 019662
BuildRequires: python-devel
Matthias Saou 019662
BuildRequires: desktop-file-utils
Matthias Saou df01f7
BuildArch: noarch
cvsextras d8c5a0
cvsextras d8c5a0
%description
cvsextras d8c5a0
Epydoc  is a tool for generating API documentation for Python modules,
cvsextras d8c5a0
based  on their docstrings. For an example of epydoc's output, see the
cvsextras d8c5a0
API  documentation for epydoc itself (html, pdf). A lightweight markup
cvsextras d8c5a0
language  called  epytext can be used to format docstrings, and to add
cvsextras d8c5a0
information  about  specific  fields,  such as parameters and instance
cvsextras d8c5a0
variables.    Epydoc    also   understands   docstrings   written   in
cvsextras d8c5a0
ReStructuredText, Javadoc, and plaintext.
cvsextras d8c5a0
cvsextras d8c5a0
cvsextras d8c5a0
%prep
cvsextras d8c5a0
%setup -q
Matthias Saou d027f5
%patch0 -p1 -b .nohashbang
Matthias Saou a7e451
%patch1 -p1 -b .giftopng
cvsextras d8c5a0
cvsextras d8c5a0
cvsextras d8c5a0
%build
cvsextras d8c5a0
%{__python} setup.py build
cvsextras d8c5a0
cvsextras d8c5a0
cvsextras d8c5a0
%install
cvsextras d8c5a0
%{__rm} -rf %{buildroot}
Matthias Saou df01f7
%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
Matthias Saou df01f7
Matthias Saou df01f7
desktop-file-install \
Matthias Saou d027f5
    --vendor="" \
Matthias Saou 77524f
    --dir=%{buildroot}%{_datadir}/applications \
Matthias Saou d027f5
    --mode=0644 \
Matthias Saou 77524f
    %{SOURCE1}
cvsextras d8c5a0
cvsextras d8c5a0
# Also install the man pages
Matthias Saou d027f5
%{__mkdir_p} %{buildroot}%{_mandir}/man1
Matthias Saou d027f5
%{__install} -p -m 0644 man/*.1 %{buildroot}%{_mandir}/man1/
cvsextras d8c5a0
Matthias Saou 019662
# Prevent having *.pyc and *.pyo in _bindir
Matthias Saou 019662
%{__mv} %{buildroot}%{_bindir}/apirst2html.py %{buildroot}%{_bindir}/apirst2html
Matthias Saou 019662
cvsextras d8c5a0
cvsextras d8c5a0
%clean
cvsextras d8c5a0
%{__rm} -rf %{buildroot}
cvsextras d8c5a0
cvsextras d8c5a0
cvsextras d8c5a0
%files
Matthias Saou d027f5
%defattr(-,root,root,-)
Matthias Saou 019662
%doc LICENSE.txt README.txt doc/
Matthias Saou 019662
%{_bindir}/apirst2html
cvsextras d8c5a0
%{_bindir}/epydoc
cvsextras d8c5a0
%{_bindir}/epydocgui
Matthias Saou 77524f
%{python_sitelib}/epydoc/
Matthias Saou 362c0f
%{python_sitelib}/epydoc-*.egg-info
Matthias Saou d027f5
%{_datadir}/applications/epydocgui.desktop
Matthias Saou d027f5
%{_mandir}/man1/*.1*
cvsextras d8c5a0
cvsextras d8c5a0
cvsextras d8c5a0
%changelog
Jesse Keating e80d26
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.1-4
Jesse Keating e80d26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating e80d26
Matthias Saou a7e451
* Mon Dec 22 2008 Matthias Saou <http://freshrpms.net/> 3.0.1-3
Matthias Saou a7e451
- Include patch to use png instead of gif for generated images (#459857).
Matthias Saou a7e451
Ignacio Vazquez-Abrams fa199f
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 3.0.1-2
Ignacio Vazquez-Abrams fa199f
- Rebuild for Python 2.6
Ignacio Vazquez-Abrams fa199f
Matthias Saou 019662
* Sat Mar 22 2008 Matthias Saou <http://freshrpms.net/> 3.0.1-1
Matthias Saou 019662
- Update to 3.0.1.
Matthias Saou 019662
- Update nohashbang patch.
Matthias Saou 019662
- Include new apirst2html script, but remove .py extension to avoid .pyc/pyo.
Matthias Saou 362c0f
- Include egg-info file.
Matthias Saou 019662
Matthias Saou d027f5
* Tue Jun 19 2007 Matthias Saou <http://freshrpms.net/> 2.1-8
Matthias Saou d027f5
- Remove desktop file prefix and X-Fedora category.
Matthias Saou d027f5
- Include patch to remove #! python from files only meant to be included.
Matthias Saou d027f5
Matthias Saou a9d061
* Mon Dec 11 2006 Matthias Saou <http://freshrpms.net/> 2.1-7
Matthias Saou a9d061
- Rebuild against python 2.5.
Matthias Saou 392b7b
- Remove no longer needed explicit python-abi requirement.
Matthias Saou 392b7b
- Change python build requirement to python-devel, as it's needed now.
Matthias Saou a9d061
Matthias Saou 77524f
* Wed Sep  6 2006 Matthias Saou <http://freshrpms.net/> 2.1-6
Matthias Saou 77524f
- No longer ghost the .pyo files, as per new python guidelines (#205374).
Matthias Saou 77524f
Matthias Saou ca8de3
* Mon Aug 28 2006 Matthias Saou <http://freshrpms.net/> 2.1-5
Matthias Saou ca8de3
- FC6 rebuild.
Matthias Saou ca8de3
- Add %%{?dist} tag.
Matthias Saou ca8de3
- Update summary line.
Matthias Saou ca8de3
Michael Schwendt a31bbd
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
Michael Schwendt a31bbd
- rebuilt
Michael Schwendt a31bbd
Matthias Saou df01f7
* Mon Dec 20 2004 Ville Skyttä <ville.skytta at iki.fi> - 2.1-3
Matthias Saou df01f7
- Change to noarch.
Matthias Saou df01f7
- Get Python site-packages dir from distutils, should fix x86_64 build.
Matthias Saou df01f7
- Require python-abi and tkinter.
Matthias Saou df01f7
- %%ghost'ify *.pyo.
Matthias Saou df01f7
- Fix man page permissions.
Matthias Saou df01f7
- Add menu entry for epydocgui.
Matthias Saou df01f7
Matthias Saou e952be
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 2.1-2
Matthias Saou e952be
- Bump release to provide Extras upgrade path.
Matthias Saou e952be
cvsextras d8c5a0
* Thu Oct 21 2004 Matthias Saou <http://freshrpms.net/> 2.1-1
cvsextras d8c5a0
- Picked up and rebuilt.
cvsextras d8c5a0
- Added doc and man pages.
cvsextras d8c5a0
cvsextras d8c5a0
* Fri May 07 2004 Thomas Vander Stichele <thomas at apestaart dot org>
cvsextras d8c5a0
- 2.1-0.fdr.1: Initial package
cvsextras d8c5a0