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
This commit is contained in:
Dirk Stoecker 2021-08-13 09:28:30 +00:00 committed by Git OBS Bridge
commit 7a86eefd28
6 changed files with 142 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

16
Imath.changes Normal file
View File

@ -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)

98
Imath.spec Normal file
View File

@ -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

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libImath-3_0-27

3
v3.1.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f21350efdcc763e23bffd4ded9bbf822e630c15ece6b0697e2fcb42737c08c2d
size 566098