]>
Commit | Line | Data |
---|---|---|
c42b4aa9 AF |
1 | |
2 | %include /usr/lib/rpm/macros.python | |
3 | ||
4 | Summary: drpython | |
5 | Name: drpython | |
6 | Version: 3.2.0 | |
7 | Release: 0.1 | |
8 | License: GPL | |
9 | Group: Libraries/Python | |
10 | Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip | |
11 | # Source0-md5: 57554a41f0290ac8083f96c319015bd6 | |
12 | URL: http://drpython.sourceforge.net/ | |
13 | BuildRequires: python-modules >= 2.3 | |
14 | %pyrequires_eq python-modules | |
15 | Requires: python-wxPython >= 2.5.1.5 | |
16 | BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | drpython | |
21 | ||
22 | ||
23 | %prep | |
24 | %setup -q | |
25 | ||
26 | %build | |
27 | chmod 0644 *.py | |
28 | ||
29 | %install | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/drpython} | |
32 | ||
33 | python /usr/share/python2.3/compileall.pyc -l . | |
34 | ||
35 | install *.py[co] $RPM_BUILD_ROOT%{_datadir}/drpython/ | |
36 | cp -a examples bitmaps $RPM_BUILD_ROOT%{_datadir}/drpython/ | |
37 | ||
38 | echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython | |
39 | echo 'cd %{_datadir}/drpython' >> $RPM_BUILD_ROOT%{_bindir}/drpython | |
40 | echo 'exec python drpython.pyc' >> $RPM_BUILD_ROOT%{_bindir}/drpython | |
41 | chmod 0755 $RPM_BUILD_ROOT%{_bindir}/drpython | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %files | |
47 | %defattr(644,root,root,755) | |
48 | %doc documentation/* | |
49 | %attr(755,root,root) %{_bindir}/drpython | |
50 | %{_datadir}/drpython |