]> git.pld-linux.org Git - packages/drpython.git/blame - drpython.spec
- initial release, waiting for python-wxPython 2.5.x to finish
[packages/drpython.git] / drpython.spec
CommitLineData
c42b4aa9
AF
1
2%include /usr/lib/rpm/macros.python
3
4Summary: drpython
5Name: drpython
6Version: 3.2.0
7Release: 0.1
8License: GPL
9Group: Libraries/Python
10Source0: http://dl.sourceforge.net/drpython/%{name}-%{version}.zip
11# Source0-md5: 57554a41f0290ac8083f96c319015bd6
12URL: http://drpython.sourceforge.net/
13BuildRequires: python-modules >= 2.3
14%pyrequires_eq python-modules
15Requires: python-wxPython >= 2.5.1.5
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20drpython
21
22
23%prep
24%setup -q
25
26%build
27chmod 0644 *.py
28
29%install
30rm -rf $RPM_BUILD_ROOT
31install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/drpython}
32
33python /usr/share/python2.3/compileall.pyc -l .
34
35install *.py[co] $RPM_BUILD_ROOT%{_datadir}/drpython/
36cp -a examples bitmaps $RPM_BUILD_ROOT%{_datadir}/drpython/
37
38echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython
39echo 'cd %{_datadir}/drpython' >> $RPM_BUILD_ROOT%{_bindir}/drpython
40echo 'exec python drpython.pyc' >> $RPM_BUILD_ROOT%{_bindir}/drpython
41chmod 0755 $RPM_BUILD_ROOT%{_bindir}/drpython
42
43%clean
44rm -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
This page took 0.036382 seconds and 4 git commands to generate.