From 8627217e9ff8e64d63cc84372f1daebc207fa1c2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:38:45 +0100 Subject: [PATCH] legacy package [release 2.3.0-2mamba;Sat Apr 25 2020] --- README.md | 2 + libilmbase-1.0.1-no_undefined.patch | 11 ++ libilmbase-1.0.2-gcc4_fix_include.patch | 11 ++ libilmbase-2.0.1-arm_HAVE_UCONTEXT.patch | 12 ++ libilmbase24.spec | 144 +++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100644 libilmbase-1.0.1-no_undefined.patch create mode 100644 libilmbase-1.0.2-gcc4_fix_include.patch create mode 100644 libilmbase-2.0.1-arm_HAVE_UCONTEXT.patch create mode 100644 libilmbase24.spec diff --git a/README.md b/README.md index 5c83485..051dbb6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libilmbase24 +OpenEXR ilmbase library. + diff --git a/libilmbase-1.0.1-no_undefined.patch b/libilmbase-1.0.1-no_undefined.patch new file mode 100644 index 0000000..df3f3c7 --- /dev/null +++ b/libilmbase-1.0.1-no_undefined.patch @@ -0,0 +1,11 @@ +--- ilmbase-1.0.1/m4/threads.m4 2006-12-13 23:51:56.000000000 +0100 ++++ ilmbase-1.0.1/m4/threads.m4.noundef 2010-03-07 18:08:50.000000000 +0100 +@@ -87,7 +87,7 @@ + # which indicates that we try without any flags at all, and "pthread-config" + # which is a program returning the flags for the Pth emulation library. + +-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" ++acx_pthread_flags="pthreads none -Kthread -kthread lthread pthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config" + + # The ordering *is* (sometimes) important. Some notes on the + # individual items follow: diff --git a/libilmbase-1.0.2-gcc4_fix_include.patch b/libilmbase-1.0.2-gcc4_fix_include.patch new file mode 100644 index 0000000..6aa19ba --- /dev/null +++ b/libilmbase-1.0.2-gcc4_fix_include.patch @@ -0,0 +1,11 @@ +diff -Nru ilmbase-1.0.2.orig//Imath/ImathMatrix.h ilmbase-1.0.2/Imath/ImathMatrix.h +--- ilmbase-1.0.2.orig//Imath/ImathMatrix.h 2010-07-17 00:48:40.000000000 +0200 ++++ ilmbase-1.0.2/Imath/ImathMatrix.h 2010-08-22 15:23:29.821253349 +0200 +@@ -51,6 +51,7 @@ + + #include + #include ++#include + + #if (defined _WIN32 || defined _WIN64) && defined _MSC_VER + // suppress exception specification warnings diff --git a/libilmbase-2.0.1-arm_HAVE_UCONTEXT.patch b/libilmbase-2.0.1-arm_HAVE_UCONTEXT.patch new file mode 100644 index 0000000..615f028 --- /dev/null +++ b/libilmbase-2.0.1-arm_HAVE_UCONTEXT.patch @@ -0,0 +1,12 @@ +diff -urN a/IexMath/IexMathFpu.cpp b/IexMath/IexMathFpu.cpp +--- a/IexMath/IexMathFpu.cpp 2013-03-06 16:18:50.000000000 -0700 ++++ b/IexMath/IexMathFpu.cpp 2013-04-20 19:45:33.400749953 -0600 +@@ -53,7 +53,7 @@ + #endif + + +-#ifdef HAVE_UCONTEXT_H ++#if defined(HAVE_UCONTEXT_H) && (defined(__x86_64__) || defined(__i386__)) + + + #include diff --git a/libilmbase24.spec b/libilmbase24.spec new file mode 100644 index 0000000..bba2b8e --- /dev/null +++ b/libilmbase24.spec @@ -0,0 +1,144 @@ +Name: libilmbase24 +Version: 2.3.0 +Release: 2mamba +Summary: OpenEXR ilmbase library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.openexr.com +Source: https://github.com/openexr/openexr/releases/download/v%{version}/ilmbase-%{version}.tar.gz +#Source: http://download.savannah.nongnu.org/releases/openexr/ilmbase-%{version}.tar.gz +Patch0: libilmbase-1.0.1-no_undefined.patch +Patch1: libilmbase-1.0.2-gcc4_fix_include.patch +Patch2: libilmbase-2.0.1-arm_HAVE_UCONTEXT.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +Provides: libilmbase +Obsoletes: libilmbase +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +OpenEXR ilmbase library. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +OpenEXR ilmbase library. + +This package contains static libraries and header files need for development. + +%debug_package + +%prep +%setup -q -n ilmbase-%{version} +%patch0 -p1 +#%patch1 -p1 +#%patch2 -p1 +#sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" configure.ac + +%build +# for patch0 +#./bootstrap + +%configure \ + --enable-namespaceversioning=no + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libHalf.so.* +%{_libdir}/libIex.so.* +%{_libdir}/libIexMath.so.* +%{_libdir}/libIlmThread.so.* +%{_libdir}/libImath.so.* +%doc AUTHORS + +%files devel +%defattr(-,root,root) +%{_includedir}/OpenEXR/*.h +%{_libdir}/libHalf.a +%{_libdir}/libHalf.la +%{_libdir}/libHalf.so +%{_libdir}/libIex.a +%{_libdir}/libIex.la +%{_libdir}/libIex.so +%{_libdir}/libIexMath.a +%{_libdir}/libIexMath.la +%{_libdir}/libIexMath.so +%{_libdir}/libIlmThread.a +%{_libdir}/libIlmThread.la +%{_libdir}/libIlmThread.so +%{_libdir}/libImath.a +%{_libdir}/libImath.la +%{_libdir}/libImath.so +%{_libdir}/pkgconfig/*.pc +%doc ChangeLog LICENSE NEWS + +%changelog +* Sat Apr 25 2020 Silvan Calarco 2.3.0-2mamba +- legacy package + +* Tue Sep 04 2018 Silvan Calarco 2.3.0-1mamba +- update to 2.3.0 + +* Mon Dec 18 2017 Automatic Build System 2.2.1-1mamba +- automatic update by autodist + +* Sun Feb 14 2016 Silvan Calarco 2.2.0-2mamba +- rebuilt with gcc 5.3.0 + +* Mon May 18 2015 Automatic Build System 2.2.0-1mamba +- automatic version update by autodist + +* Mon Dec 30 2013 Silvan Calarco 2.1.0-2mamba +- remove legacy compatibility symlinks already in libilmbase2 + +* Sat Nov 30 2013 Automatic Build System 2.1.0-1mamba +- automatic update by autodist + +* Sat Jul 27 2013 Silvan Calarco 2.0.1-3mamba +- rebuilt with --enable-namespaceversioning=no to keep standard library soname + +* Thu Jul 25 2013 Silvan Calarco 2.0.1-2mamba +- added compatibility symlinks to allow upgrade from version 2.0.0 without making a legacy package + +* Sun Jul 14 2013 Automatic Build System 2.0.1-1mamba +- automatic update by autodist + +* Thu Mar 14 2013 Automatic Build System 2.0.0-1mamba +- automatic version update by autodist + +* Sun Aug 22 2010 Silvan Calarco 1.0.2-2mamba +- added patch to fix a missing include for openexr to build successfully + +* Sat Jul 24 2010 Automatic Build System 1.0.2-1mamba +- automatic update by autodist + +* Sun Mar 07 2010 Davide Madrisan 1.0.1-4mamba +- patched to fix several undefined reference errors at link time +- remove documentation for osx and windows platforms + +* Thu Jun 11 2009 Silvan Calarco 1.0.1-2mamba +- rebuilt + +* Wed Jun 03 2009 Silvan Calarco 1.0.1-1mamba +- package created by autospec