Author: neoclust
Date: Wed Jan 31 16:59:51 2007
New Revision: 115755
Added:
packages/cooker/alchemist/current/SOURCES/alchemist-1.0.36-fix-includes.patch
Modified:
packages/cooker/alchemist/current/SPECS/alchemist.spec
Log:
SILENT: Add patch0: fix build
Added:
packages/cooker/alchemist/current/SOURCES/alchemist-1.0.36-fix-includes.patch
==============================================================================
--- (empty file)
+++
packages/cooker/alchemist/current/SOURCES/alchemist-1.0.36-fix-includes.patch
Wed Jan 31 16:59:51 2007
@@ -0,0 +1,22 @@
+--- src/alchemistmodule.c~ 2007-01-31 16:24:27.000000000 +0100
++++ src/alchemistmodule.c 2007-01-31 16:27:32.000000000 +0100
+@@ -43,7 +43,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+
+-#include "Python.h"
++#include <python2.5/Python.h>
+ #include "alchemist.h"
+
+ #ifdef NDEBUG
+--- src/pyalchemist.c~ 2007-01-31 16:32:32.000000000 +0100
++++ src/pyalchemist.c 2007-01-31 16:33:28.000000000 +0100
+@@ -40,7 +40,7 @@
+ */
+
+ #include "alchemist.h"
+-#include "Python.h"
++#include <python2.5/Python.h>
+
+ static PyObject *pyAdmContext_constructor (AdmContext
*ctx);
+
Modified: packages/cooker/alchemist/current/SPECS/alchemist.spec
==============================================================================
--- packages/cooker/alchemist/current/SPECS/alchemist.spec (original)
+++ packages/cooker/alchemist/current/SPECS/alchemist.spec Wed Jan 31
16:59:51 2007
@@ -4,10 +4,11 @@
Summary: A multi-sourced configuration back-end
Name: alchemist
Version: 1.0.36
-Release: %mkrel 2
+Release: %mkrel 3
License: GPL
Group: System Environment/Base
Source0: %{name}-%{version}.tar.bz2
+Patch0: alchemist-1.0.36-fix-includes.patch
BuildRequires: libxml2 >= 2.3.8
BuildRequires: libxslt-devel >= 0.9.0
BuildRequires: doxygen >= 1.2.7
@@ -15,12 +16,9 @@
BuildRequires: glib2-devel >= 2.0
BuildRequires: glib2-devel >= 2.0
BuildRequires: chrpath
-%if %mdkversion >= 1020
BuildRequires: multiarch-utils >= 1.0.3
-%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
-%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
%description
The alchemist is a back-end configuration architecture, which provides
@@ -69,7 +67,7 @@
%prep
%setup -q
-
+%patch0 -p0
# lib64 fix
find -type f | xargs perl -pi -e "s|/usr/lib|%{_libdir}|g"
@@ -93,7 +91,7 @@
doxygen
cp -a doc/man/* %{buildroot}%{_mandir}/
-python -O %{_libdir}/python%{pyver}/compileall.py
%{buildroot}%{_libdir}/python%{pyver}/site-packages
+python -O %{_libdir}/python%{pyver}/compileall.py %{buildroot}%py_platsitedir
%if %mdkversion >= 1020
%multiarch_includes %{buildroot}%{_includedir}/alchemist/alchemist.h
@@ -103,7 +101,7 @@
# nuke rpath
chrpath -d %{buildroot}%{_libdir}/*.so
chrpath -d %{buildroot}%{_libdir}/alchemist/blackbox/*.so
-chrpath -d %{buildroot}%{_libdir}/python%{pyver}/site-packages/*.so
+chrpath -d %{buildroot}%py_platsitedir/*.so
%post -n %{libname} -p /sbin/ldconfig
@@ -143,4 +141,4 @@
%files -n python-alchemist
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
-%{_libdir}/python%{pyver}/site-packages/*
+%py_platsitedir/*