Author: qboosh                       Date: Sat Aug  4 14:45:08 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- install binary modules in proper dir
- use optflags
- BR: rpm-pythonprov etc.

---- Files affected:
SPECS:
   python-Rabbyt.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/python-Rabbyt.spec
diff -u SPECS/python-Rabbyt.spec:1.7 SPECS/python-Rabbyt.spec:1.8
--- SPECS/python-Rabbyt.spec:1.7        Sun Jul 29 18:29:56 2007
+++ SPECS/python-Rabbyt.spec    Sat Aug  4 16:45:02 2007
@@ -1,7 +1,7 @@
 # $Revision$, $Date$
 %define                module  Rabbyt
 Summary:       Library for Python to game development
-Summary(pl.UTF-8):     Biblioteka dla Pythona do rozwoju gier
+Summary(pl.UTF-8):     Biblioteka dla Pythona do tworzenia gier
 Name:          python-%{module}
 Version:       0.0.5
 Release:       0.1
@@ -11,8 +11,12 @@
 # Source0-md5: 320be0f9e88eb28d439f2d0ac9012f7a
 URL:           http://matthewmarshall.org/projects/rabbyt/
 BuildRequires: ncurses-devel
-BuildRequires: python-devel
 BuildRequires: python-Pyrex
+BuildRequires: python-devel >= 1:2.5
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: sed >= 4.0
+%pyrequires_eq python-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,7 +26,7 @@
 2. Be easy to use, without sacrificing speed.
 
 %description -l pl.UTF-8
-Rabbyt jest małą biblioteką dla Pythona służącą do rozwoju
+Rabbyt jest małą biblioteką dla Pythona służącą do tworzenia
 gier. Posiada dwa cele: 
 1. Być szybką bez utraty prostoty użycia.
 2. Być prostą w użyciu bez utraty szybkości.
@@ -30,6 +34,8 @@
 %prep
 %setup -q -n %{module}-%{version}
 
+sed -i -e "s/'-O3'/'%{rpmcflags}'/" setup.py
+
 %build
 %{__python} setup.py build
 
@@ -38,8 +44,9 @@
 
 %{__python} setup.py install \
        --optimize=2 \
-       --root=$RPM_BUILD_ROOT \
-       --install-lib=%{py_sitescriptdir}
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -47,7 +54,10 @@
 %files
 %defattr(644,root,root,755)
 %doc README examples
-%{py_sitescriptdir}/*
+%dir %{py_sitedir}/rabbyt
+%{py_sitedir}/rabbyt/*.py[co]
+%attr(755,root,root) %{py_sitedir}/rabbyt/*.so
+%{py_sitedir}/Rabbyt-*.egg-info
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -55,6 +65,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2007/08/04 14:45:02  qboosh
+- install binary modules in proper dir
+- use optflags
+- BR: rpm-pythonprov etc.
+
 Revision 1.7  2007/07/29 16:29:56  lisu
 - 0.0.5
 - include examples dir to doc
@@ -77,4 +92,3 @@
 
 Revision 1.1  2007/07/16 22:33:50  lisu
 - initial PLD version
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-Rabbyt.spec?r1=1.7&r2=1.8&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to