]> git.pld-linux.org Git - packages/drpython.git/commitdiff
- initial release, waiting for python-wxPython 2.5.x to finish
authorArtur Frysiak <artur@frysiak.net>
Thu, 22 Jul 2004 12:04:08 +0000 (12:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drpython.spec -> 1.1

drpython.spec [new file with mode: 0644]

diff --git a/drpython.spec b/drpython.spec
new file mode 100644 (file)
index 0000000..8873fa7
--- /dev/null
@@ -0,0 +1,50 @@
+
+%include       /usr/lib/rpm/macros.python
+
+Summary:       drpython
+Name:          drpython
+Version:       3.2.0
+Release:       0.1
+License:       GPL
+Group:         Libraries/Python
+Source0:       http://dl.sourceforge.net/drpython/%{name}-%{version}.zip
+# Source0-md5: 57554a41f0290ac8083f96c319015bd6
+URL:           http://drpython.sourceforge.net/
+BuildRequires: python-modules >= 2.3
+%pyrequires_eq python-modules
+Requires:      python-wxPython >= 2.5.1.5
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+drpython
+
+
+%prep
+%setup -q 
+
+%build
+chmod 0644 *.py
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/drpython}
+
+python /usr/share/python2.3/compileall.pyc -l .
+
+install *.py[co] $RPM_BUILD_ROOT%{_datadir}/drpython/
+cp -a examples bitmaps $RPM_BUILD_ROOT%{_datadir}/drpython/
+
+echo '#!/bin/sh' > $RPM_BUILD_ROOT%{_bindir}/drpython
+echo 'cd %{_datadir}/drpython' >> $RPM_BUILD_ROOT%{_bindir}/drpython
+echo 'exec python drpython.pyc' >> $RPM_BUILD_ROOT%{_bindir}/drpython
+chmod 0755 $RPM_BUILD_ROOT%{_bindir}/drpython
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc documentation/*
+%attr(755,root,root) %{_bindir}/drpython
+%{_datadir}/drpython
This page took 0.094867 seconds and 4 git commands to generate.