- Install python bindings into the correct location
This commit is contained in:
parent
1c5cd7df73
commit
35c073c47a
@ -0,0 +1,35 @@
|
|||||||
|
From feff3aad50304450248aa66aed59d09439699234 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Stephen Gallagher <sgallagh@redhat.com>
|
||||||
|
Date: Wed, 12 Jan 2011 15:01:52 -0500
|
||||||
|
Subject: [PATCH] Install python bindings in the arch-specific location
|
||||||
|
|
||||||
|
---
|
||||||
|
buildtools/wafsamba/samba_python.py | 5 ++++-
|
||||||
|
1 files changed, 4 insertions(+), 1 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py
|
||||||
|
index a663b1910d063336c1340142ae8855d7e176ecdb..9b72f3fd112288a022a2de0701594814616f202f 100644
|
||||||
|
--- a/buildtools/wafsamba/samba_python.py
|
||||||
|
+++ b/buildtools/wafsamba/samba_python.py
|
||||||
|
@@ -51,6 +51,9 @@ def SAMBA_PYTHON(bld, name,
|
||||||
|
|
||||||
|
link_name = 'python/%s' % realname
|
||||||
|
|
||||||
|
+ from distutils.sysconfig import get_python_lib
|
||||||
|
+ arch_install_dir = get_python_lib(1)
|
||||||
|
+
|
||||||
|
bld.SAMBA_LIBRARY(name,
|
||||||
|
source=source,
|
||||||
|
deps=deps,
|
||||||
|
@@ -63,7 +66,7 @@ def SAMBA_PYTHON(bld, name,
|
||||||
|
link_name=link_name,
|
||||||
|
pyembed=True,
|
||||||
|
target_type='PYTHON',
|
||||||
|
- install_path='${PYTHONDIR}',
|
||||||
|
+ install_path=arch_install_dir,
|
||||||
|
enabled=enabled)
|
||||||
|
|
||||||
|
Build.BuildContext.SAMBA_PYTHON = SAMBA_PYTHON
|
||||||
|
--
|
||||||
|
1.7.3.4
|
||||||
|
|
16
libtdb.spec
16
libtdb.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: libtdb
|
Name: libtdb
|
||||||
Version: 1.2.9
|
Version: 1.2.9
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: The tdb library
|
Summary: The tdb library
|
||||||
License: LGPLv3+
|
License: LGPLv3+
|
||||||
@ -19,6 +19,9 @@ BuildRequires: libxslt
|
|||||||
BuildRequires: docbook-style-xsl
|
BuildRequires: docbook-style-xsl
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
|
||||||
|
# Patches
|
||||||
|
Patch0001: 0001-Install-python-bindings-in-the-arch-specific-locatio.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library that implements a trivial database.
|
A library that implements a trivial database.
|
||||||
|
|
||||||
@ -49,6 +52,7 @@ Python bindings for libtdb
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tdb-%{version}
|
%setup -q -n tdb-%{version}
|
||||||
|
%patch0001 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
@ -62,13 +66,6 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
||||||
|
|
||||||
# Work around incorrect build-system location
|
|
||||||
if [ ! -e $RPM_BUILD_ROOT/%{python_sitearch}/tdb.so ]; then
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
|
|
||||||
mv $RPM_BUILD_ROOT/usr/lib/python%{python_version}/site-packages/tdb.so \
|
|
||||||
$RPM_BUILD_ROOT/%{python_sitearch}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
@ -106,6 +103,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%postun -n python-tdb -p /sbin/ldconfig
|
%postun -n python-tdb -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 12 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-6
|
||||||
|
- Install python bindings into the correct location
|
||||||
|
|
||||||
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
|
* Tue Jan 11 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.2.9-5
|
||||||
- Run ldconfig on python-tdb
|
- Run ldconfig on python-tdb
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user