commit 7a86eefd283a52c7e3b426d7360773fa10d3b319ab91c8fa5acac8afa398f1bf Author: Dirk Stoecker Date: Fri Aug 13 09:28:30 2021 +0000 Accepting request 911943 from home:pgajdos:openexr3 OBS-URL: https://build.opensuse.org/request/show/911943 OBS-URL: https://build.opensuse.org/package/show/graphics/Imath?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Imath.changes b/Imath.changes new file mode 100644 index 0000000..bd3271a --- /dev/null +++ b/Imath.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Tue Aug 10 08:46:34 UTC 2021 - pgajdos@suse.com + +- version update to 3.1.2 +- deleted patches + - Imath-pkgconfig-fix-libdir.patch (upstreamed) + +------------------------------------------------------------------- +Fri Apr 9 11:19:34 UTC 2021 - pgajdos@suse.com + +- initial version 3.0.1, splitted from openexr +- added patches + fix https://github.com/AcademySoftwareFoundation/openexr/issues/595 + + Imath-pkgconfig-fix-libdir.patch (splitted from openexr's + 0001-Use-absolute-CMAKE_INSTALL_FULL_LIBDIR-for-libdir-in.patch) + diff --git a/Imath.spec b/Imath.spec new file mode 100644 index 0000000..df604bb --- /dev/null +++ b/Imath.spec @@ -0,0 +1,98 @@ +# +# spec file for package Imath +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global so_suffix -3_1 +%define sonum 29 +Name: Imath +Version: 3.1.2 +Release: 0 +Summary: C++ and Python Library of 2D and 3D Vector, Matrix, and Math Operations +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +URL: https://www.openexr.com/ +Source0: https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v%{version}.tar.gz +Source2: baselibs.conf +BuildRequires: cmake >= 3.12 +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +Obsoletes: ilmbase < %{version} +Provides: ilmbase = %{version} +Obsoletes: IlmBase < %{version} +Provides: IlmBase = %{version} + +%description +Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D +vectors and matrices and other simple but useful mathematical objects, +functions, and data types common in computer graphics applications, including +the “half” 16-bit floating-point type. + +%package devel +Summary: Base library for ILM software (OpenEXR) +License: BSD-3-Clause AND GPL-2.0-or-later +Group: Development/Libraries/C and C++ +Requires: libImath%{so_suffix}-%{sonum} = %{version} +Requires: libstdc++-devel +Obsoletes: ilmbase-devel < %{version} +Provides: ilmbase-devel = %{version} + +%description devel +Devel files for ilmbase +Base library for Industrial Light & Magic software (OpenEXR). + +%package -n libImath%{so_suffix}-%{sonum} +Summary: Vector/matrix library for OpenEXR +License: BSD-3-Clause +Group: System/Libraries + +%description -n libImath%{so_suffix}-%{sonum} +%{summary}. + +%prep +%setup -q + +%build +%cmake +%make_build + +%install +%cmake_install + +%check +# https://github.com/openexr/openexr/issues/570 +%ifnarch i586 +export LD_LIBRARY_PATH="$PWD/build/src/Imath:$LD_LIBRARY_PATH" +%ctest +%endif + +%post -n libImath%{so_suffix}-%{sonum} -p /sbin/ldconfig +%postun -n libImath%{so_suffix}-%{sonum} -p /sbin/ldconfig + +%files devel +%doc CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md +%license LICENSE.md +%{_includedir}/Imath +%{_libdir}/libImath.so +%{_libdir}/libImath%{so_suffix}.so +%{_libdir}/pkgconfig/Imath.pc +%dir %{_libdir}/cmake/Imath/ +%{_libdir}/cmake/Imath/*.cmake + +%files -n libImath%{so_suffix}-%{sonum} +%{_libdir}/libImath%{so_suffix}.so.* + +%changelog diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..004f259 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libImath-3_0-27 diff --git a/v3.1.2.tar.gz b/v3.1.2.tar.gz new file mode 100644 index 0000000..4c271b2 --- /dev/null +++ b/v3.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f21350efdcc763e23bffd4ded9bbf822e630c15ece6b0697e2fcb42737c08c2d +size 566098