]>
Commit | Line | Data |
---|---|---|
0d472fb2 PZ |
1 | # TODO: |
2 | # - check docs folder for valuable files | |
3 | # | |
4 | %define pname bpython | |
5 | Summary: bpython - a fancy interface to the Python interpreter | |
6 | Name: bpython | |
7 | Version: 0.9.5.2 | |
8 | Release: 1 | |
9 | License: MIT | |
10 | Group: Applications/Shells | |
11 | Source0: http://bpython-interpreter.org/releases/%{name}-%{version}.tar.gz | |
12 | # Source0-md5: 8c6022907d2bff9d0193f3d299157443 | |
13 | URL: http://bpython-interpreter.org/ | |
14 | BuildRequires: pydoc | |
15 | BuildRequires: python-devel | |
16 | BuildRequires: python-devel-tools | |
17 | BuildRequires: rpm-pythonprov | |
18 | BuildRequires: rpmbuild(macros) >= 1.219 | |
19 | Requires: python-%{name} = %{version}-%{release} | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | bpython is a fancy interface to the Python interpreter for Unix-like | |
25 | operating systems. | |
26 | ||
27 | %package -n python-bpython | |
28 | Summary: bpython shell modules | |
29 | Group: Libraries/Python | |
b88e5640 | 30 | Requires: python-pygments |
0d472fb2 PZ |
31 | %pyrequires_eq python-devel-tools |
32 | %pyrequires_eq pydoc | |
33 | ||
34 | %description -n python-bpython | |
35 | bpython is a fancy interface to the Python interpreter for Unix-like | |
36 | operating systems. | |
37 | ||
38 | %prep | |
39 | %setup -q | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT | |
45 | ||
46 | %py_postclean | |
47 | rm -rf $RPM_BUILD_ROOT%{_docdir} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %attr(755,root,root) %{_bindir}/* | |
55 | %{_desktopdir}/bpython.desktop | |
56 | %{_mandir}/man1/*.1* | |
57 | %{_mandir}/man5/*.5* | |
58 | ||
59 | %files -n python-bpython | |
60 | %defattr(644,root,root,755) | |
61 | %doc README | |
62 | %{py_sitescriptdir}/%{pname} | |
63 | %{py_sitescriptdir}/*.egg-info |