From 85800c95f1ac683da3e6167ba799df3615dd9c33 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: May 09 2017 09:45:45 +0000 Subject: Link to hdf5 libraries, fixes undefined references on some architectures --- diff --git a/alembic-1.7.1-link-hdf5.patch b/alembic-1.7.1-link-hdf5.patch new file mode 100644 index 0000000..358d123 --- /dev/null +++ b/alembic-1.7.1-link-hdf5.patch @@ -0,0 +1,12 @@ +diff -Naur alembic-1.7.1.old/lib/Alembic/CMakeLists.txt alembic-1.7.1/lib/Alembic/CMakeLists.txt +--- alembic-1.7.1.old/lib/Alembic/CMakeLists.txt 2017-05-09 11:30:50.648506626 +0200 ++++ alembic-1.7.1/lib/Alembic/CMakeLists.txt 2017-05-09 11:30:57.438620101 +0200 +@@ -66,7 +66,7 @@ + VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) + ENDIF() + +-TARGET_LINK_LIBRARIES(Alembic ${ALEMBIC_ILMBASE_LIBS}) ++TARGET_LINK_LIBRARIES(Alembic ${ALEMBIC_ILMBASE_LIBS} ${HDF5_LIBRARIES}) + + # link in atomic if we are using tr1 and the compiler is new enough + # to want __atomic_compare_exchange_n diff --git a/alembic.spec b/alembic.spec index 6336f1f..e4427cd 100644 --- a/alembic.spec +++ b/alembic.spec @@ -1,6 +1,6 @@ Name: alembic Version: 1.7.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Open framework for storing and sharing scene data License: BSD URL: http://alembic.io/ @@ -8,6 +8,7 @@ URL: http://alembic.io/ Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # https://github.com/alembic/alembic/pull/125 Patch0: %{name}-1.7.1-shared-lib-version.patch +Patch1: %{name}-1.7.1-link-hdf5.patch BuildRequires: cmake BuildRequires: hdf5-devel @@ -101,6 +102,9 @@ popd %{_libdir}/libAlembic.so %changelog +* Tue May 09 2017 Simone Caronni - 1.7.1-3 +- Link to hdf5 libraries, fixes undefined references on some architectures. + * Sat May 06 2017 Simone Caronni - 1.7.1-2 - Review fixes.