rpms/python-sqlite/devel python-sqlite.spec,1.1,1.2

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Jan 14 20:15:10 UTC 2005


Author: mschwendt

Update of /cvs/extras/rpms/python-sqlite/devel
In directory cvs.fedora.redhat.com:/tmp/cvs-serv2374

Modified Files:
	python-sqlite.spec 
Log Message:
Fixes, so fedora.us #2000 can be squashed.


Index: python-sqlite.spec
===================================================================
RCS file: /cvs/extras/rpms/python-sqlite/devel/python-sqlite.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- python-sqlite.spec	31 Dec 2004 18:19:21 -0000	1.1
+++ python-sqlite.spec	14 Jan 2005 20:15:08 -0000	1.2
@@ -1,10 +1,12 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+
 Name:           python-sqlite
 Version:        0.5.0
-Release:        0.fdr.1.3
-Summary:        Python bindings for sqlite.
+Release:        1
+Summary:        Python bindings for SQLite
 
 Group:          Development/Libraries
-License:        GPL
+License:        Freely distributable
 URL:            http://pysqlite.sf.net/
 
 Source:         http://dl.sf.net/pysqlite/pysqlite-%{version}.tar.gz
@@ -14,6 +16,8 @@
 BuildRequires:  python-devel
 BuildRequires:  sqlite-devel 
 
+Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
+
 %description
 This packages allows you to use sqlite with python.
 sqlite is a simple database engine.
@@ -21,13 +25,15 @@
 %prep
 %setup -n pysqlite
 rm -f doc/rest/.*swp
+chmod -x doc/rest/* LICENSE README
 
 %build
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python ./setup.py install \
-	--prefix="$RPM_BUILD_ROOT/%{_prefix}"
+%{__python} setup.py install -O1 --skip-build \
+	--root %{buildroot} --prefix="%{_prefix}"
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -35,9 +41,21 @@
 %files
 %defattr(-, root, root, 0755)
 %doc LICENSE README doc/ examples/
-%{_libdir}/python*/site-packages/*
+%{python_sitearch}/*sqlite*.so
+%dir %{python_sitearch}/sqlite
+%{python_sitearch}/sqlite/*.py
+%{python_sitearch}/sqlite/*.pyc
+%ghost %{python_sitearch}/sqlite/*.pyo
 
 %changelog
+* Tue Dec 28 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.5.0-1
+- Fix build: install into arch-dependent python sitelib,
+  compile without including buildroot paths, build and ghost
+  optimized files.
+- Add python-abi dependency.
+- Fix licence and %%doc permissions.
+- Bump release, drop 0.fdr. prefix.
+
 * Thu Sep 02 2004 Thomas Vander Stichele <thomas at apestaart dot org>
 - 0.5.0-0.fdr.1
 - package copied from Dag




More information about the fedora-extras-commits mailing list