From 50d76b165dbc7f9fd045fba0a415760e15268bf8 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 29 Mar 2013 12:25:55 +0100 Subject: [PATCH] - added link patch, make install -j1 (parallel install fails) --- python-pyilmbase-link.patch | 11 +++++++++++ python-pyilmbase.spec | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 python-pyilmbase-link.patch diff --git a/python-pyilmbase-link.patch b/python-pyilmbase-link.patch new file mode 100644 index 0000000..d325e5a --- /dev/null +++ b/python-pyilmbase-link.patch @@ -0,0 +1,11 @@ +--- pyilmbase-2.0.0/PyImath/Makefile.am.orig 2013-02-01 21:04:54.000000000 +0100 ++++ pyilmbase-2.0.0/PyImath/Makefile.am 2013-03-29 11:40:21.833417739 +0100 +@@ -80,7 +80,7 @@ + PyImathBasicTypes.cpp + + imathmodule_la_LDFLAGS = -avoid-version -module +-imathmodule_la_LIBADD = -lPyImath @BOOST_PYTHON_LIBS@ ++imathmodule_la_LIBADD = libPyImath.la @BOOST_PYTHON_LIBS@ + + noinst_HEADERS = PyImathFun.h \ + PyImathBasicTypes.h diff --git a/python-pyilmbase.spec b/python-pyilmbase.spec index 2dd4324..44ccac4 100644 --- a/python-pyilmbase.spec +++ b/python-pyilmbase.spec @@ -7,6 +7,7 @@ License: BSD Group: Libraries/Python Source0: http://download.savannah.gnu.org/releases/openexr/pyilmbase-%{version}.tar.gz # Source0-md5: 4585eba94a82f0b0916445990a47d143 +Patch0: %{name}-link.patch URL: http://www.openexr.com/ BuildRequires: boost-python-devel BuildRequires: ilmbase-devel >= 2.0.0 @@ -41,6 +42,7 @@ Pliki nagłówkowe wiązań Pyhona do bibliotek IlmBase. %prep %setup -q -n pyilmbase-%{version} +%patch0 -p1 %build %configure @@ -50,7 +52,8 @@ Pliki nagłówkowe wiązań Pyhona do bibliotek IlmBase. %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ +# parallel build fails at libPyImath/imathmodule install +%{__make} -j1 install \ DESTDIR=$RPM_BUILD_ROOT %{__rm} $RPM_BUILD_ROOT%{_libdir}/libPy*.la \ -- 2.43.0