SPECS: python-db_row.spec - *.so modules must be in /usr/lib/python... - us...

cactus cactus at pld-linux.org
Tue Jul 1 23:39:55 CEST 2008


Author: cactus                       Date: Tue Jul  1 21:39:55 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- *.so modules must be in /usr/lib/python...
- use %py_postclean macro
- adapterized
- release 2

---- Files affected:
SPECS:
   python-db_row.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/python-db_row.spec
diff -u SPECS/python-db_row.spec:1.9 SPECS/python-db_row.spec:1.10
--- SPECS/python-db_row.spec:1.9	Tue Feb 13 09:06:42 2007
+++ SPECS/python-db_row.spec	Tue Jul  1 23:39:49 2008
@@ -6,7 +6,7 @@
 Summary(pl.UTF-8):	Warstwa abstrakcji baz danych
 Name:		python-%{module}
 Version:	0.8
-Release:	1
+Release:	2
 License:	distributable
 Group:		Development/Languages/Python
 Source0:	http://opensource.theopalgroup.com/files/%{module}-%{version}.tgz
@@ -18,14 +18,14 @@
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-The db_row module defines light-weight objects suitable for
-many applications, though the primary goal of the
-implementer is for storage of database query results.
+The db_row module defines light-weight objects suitable for many
+applications, though the primary goal of the implementer is for
+storage of database query results.
 
 %description -l pl.UTF-8
-Moduł db_row definiuje zestaw lekkich obiektów odpowiednich
-dla wielu aplikacji, jednak głównym zamierzeniem jest
-przechowywanie wyników zapytań do baz danych.
+Moduł db_row definiuje zestaw lekkich obiektów odpowiednich dla
+wielu aplikacji, jednak głównym zamierzeniem jest przechowywanie
+wyników zapytań do baz danych.
 
 %prep
 %setup -q -n %{module}-%{version}
@@ -43,7 +43,10 @@
 	--install-lib=%{py_sitescriptdir} \
 	--optimize=2
 
-rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
+install -D $RPM_BUILD_ROOT{%{py_sitescriptdir},%{py_sitedir}}/db_rowc.so
+rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/db_rowc.so
+
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -52,7 +55,7 @@
 %defattr(644,root,root,755)
 %doc README
 %{py_sitescriptdir}/*.py[co]
-%{py_sitescriptdir}/*.so
+%{py_sitedir}/*.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -60,6 +63,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2008/07/01 21:39:49  cactus
+- *.so modules must be in /usr/lib/python...
+- use %py_postclean macro
+- adapterized
+- release 2
+
 Revision 1.9  2007/02/13 08:06:42  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/python-db_row.spec?r1=1.9&r2=1.10&f=u



More information about the pld-cvs-commit mailing list