Blame SPECS/epydoc.spec

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