diff --git a/Imath-3.1.4.tar.gz b/Imath-3.1.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..680c70de9b4c2e94fcc2115370acdde44c91cb0e Binary files /dev/null and b/Imath-3.1.4.tar.gz differ diff --git a/Imath-python-test.patch b/Imath-python-test.patch new file mode 100644 index 0000000000000000000000000000000000000000..ac722b4d1b4a4ed25eb989a48f7c9e1ba217590f --- /dev/null +++ b/Imath-python-test.patch @@ -0,0 +1,12 @@ +diff -urNp a/src/python/PyImathTest/pyImathTest.in b/src/python/PyImathTest/pyImathTest.in +--- a/src/python/PyImathTest/pyImathTest.in 2021-08-06 16:49:54.003824841 +0200 ++++ b/src/python/PyImathTest/pyImathTest.in 2021-08-06 16:50:31.852213615 +0200 +@@ -9149,7 +9149,7 @@ def testVArrays(): + + # See the 'PyImath/varraySemantics.txt' document for more information. + +-testList.append(("testVArrays", testVArrays)) ++#testList.append(("testVArrays", testVArrays)) + + + def testReadOnlyBasic(AType, val): diff --git a/Imath.spec b/Imath.spec new file mode 100644 index 0000000000000000000000000000000000000000..2caccab3abcee91f9e864ca3e6b230cc33895802 --- /dev/null +++ b/Imath.spec @@ -0,0 +1,77 @@ +%global srcname Imath +%global sover 29 +Name: Imath +Version: 3.1.4 +Release: 1 +Summary: Library of 2D and 3D vector, matrix, and math operations for computer graphics +License: BSD +URL: https://github.com/AcademySoftwareFoundation/Imath +Source0: https://github.com/AcademySoftwareFoundation/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Patch0: Imath-python-test.patch +BuildRequires: cmake gcc gcc-c++ make boost-devel python3-devel +BuildRequires: python3-breathe python3-numpy doxygen python3-sphinx +%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 -n python3-%{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Summary: Python module for Imath +%description -n python3-%{name} +%{summary}. + +%package devel +Summary: Development files for Imath +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: python3-%{name}%{?_isa} = %{version}-%{release} boost-devel python3-devel +# provides ilmbase-devel partly only; openexr-devel requires Imath-devel +# and provides/obsoletes it +Obsoletes: ilmbase-devel < 3.0 +%description devel +%{summary}. + +%prep +%autosetup -n %{srcname}-%{version} -p1 + +%build +%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DPYTHON=ON \ + -DDOCS=ON \ + -DINSTALL_DOCS=OFF \ + --trace-source=docs/CMakeLists.txt +%make_build + +%install +%make_install +rm -rf ./docs/sphinx/.{doctrees,buildinfo} +mv ./docs/sphinx ./html + + +%check +make test + +%files +%license LICENSE.md +%doc CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md +%{_libdir}/libImath-3_1.so.%{sover}* + +%files -n python3-%{name} +%{_libdir}/libPyImath_Python3_9-3_1.so.%{sover}* +%{python3_sitearch}/imath.so +%{python3_sitearch}/imathnumpy.so + +%files devel +%doc html/ +%{_includedir}/Imath/ +%{_libdir}/pkgconfig/Imath.pc +%{_libdir}/pkgconfig/PyImath.pc +%{_libdir}/cmake/Imath/ +%{_libdir}/libImath.so +%{_libdir}/libImath-3_1.so +%{_libdir}/libPyImath_Python3_9-3_1.so + +%changelog +* Mon Feb 7 2022 liyanan - 3.1.4-1 +- package init diff --git a/Imath.yaml b/Imath.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6a776a61b407de4b0138fac85d8d42efa861b33f --- /dev/null +++ b/Imath.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: AcademySoftwareFoundation/Imath +tag_prefix: "^v" +separator: "."