1 |
%define mainver %(echo %{version} | sed -e 's/\\([0-9]*\\.[0-9]*\\)\\.[0-9]*/\\1/') |
2 |
# we don't want to provide private python extension libs |
3 |
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so |
4 |
|
5 |
%define module TwistedLore |
6 |
|
7 |
Name: python-twisted-lore |
8 |
Version: 14.0.0 |
9 |
Release: %mkrel 2 |
10 |
Summary: A documentation generator |
11 |
License: MIT |
12 |
Group: Development/Python |
13 |
URL: http://twistedmatrix.com/trac/wiki/TwistedLore |
14 |
Source0: http://twistedmatrix.com/Releases/Lore/%{mainver}/%{module}-%{version}.tar.bz2 |
15 |
BuildRequires: python-devel |
16 |
BuildRequires: python-twisted-core |
17 |
|
18 |
Requires: python-twisted-core |
19 |
# for docbook, lmath, etc |
20 |
Requires: python-twisted-web |
21 |
|
22 |
%description |
23 |
Twisted Lore is the documentation generator of the Twisted matrix |
24 |
framework. |
25 |
|
26 |
%prep |
27 |
%setup -q -n %{module}-%{version} |
28 |
|
29 |
%build |
30 |
%{__python} setup.py build |
31 |
|
32 |
%install |
33 |
%{__python} setup.py install --root=%{buildroot} --skip-build --install-purelib=%{python_sitearch} |
34 |
|
35 |
|
36 |
%files |
37 |
%doc LICENSE README NEWS |
38 |
%{_bindir}/* |
39 |
%dir %{python_sitearch}/twisted/lore |
40 |
%{python_sitearch}/twisted/lore/* |
41 |
%{python_sitearch}/twisted/plugins/* |
42 |
%{python_sitearch}/Twisted_Lore-%{version}-py%{pyver}.egg-info |