From 89117876386655106cb7582aebd9e82cbe95b569 Mon Sep 17 00:00:00 2001 From: Richard Shaw Date: Fri, 20 Aug 2021 11:59:31 -0500 Subject: [PATCH] New upstream release 3.1.2 --- .gitignore | 1 + imath.spec | 30 ++++++++++++++++++++---------- sources | 2 +- 3 files changed, 22 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 7a755ad..ffb83ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /Imath-3.0.2.tar.gz +/Imath-3.1.2.tar.gz diff --git a/imath.spec b/imath.spec index 7ef8f1b..2c30964 100644 --- a/imath.spec +++ b/imath.spec @@ -1,16 +1,17 @@ %global srcname Imath -%global sover 28 +%global sover 29 %global pyver_under %(%{python3} -Esc "import sys; sys.stdout.write('{0.major}_{0.minor}'.format(sys.version_info))") Name: imath -Version: 3.0.2 -Release: 6%{?dist} +Version: 3.1.2 +Release: 1%{?dist} 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 BuildRequires: gcc gcc-c++ @@ -18,6 +19,7 @@ BuildRequires: make BuildRequires: boost-devel BuildRequires: python3-devel # For documentation generation +BuildRequires: doxygen BuildRequires: python3-sphinx BuildRequires: python3-breathe @@ -48,14 +50,19 @@ Requires: python3-devel %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 %build -%cmake -DPYTHON=ON +%cmake -DPYTHON=ON -DCMAKE_INSTALL_PREFIX=%{_usr} %cmake_build -# Generate html docs +# Generate man docs +cd docs +# https://github.com/AcademySoftwareFoundation/Imath/issues/196#issuecomment-896433898 +rm classes/half.rst +doxygen +cd .. PYTHONPATH=${PWD} sphinx-build-3 docs/ html # Remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} @@ -75,10 +82,10 @@ rm -rf html/.{doctrees,buildinfo} %files %license LICENSE.md %doc CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md -%{_libdir}/libImath-3_0.so.%{sover}* +%{_libdir}/libImath-3_1.so.%{sover}* %files -n python3-%{name} -%{_libdir}/libPyImath_Python%{pyver_under}-3_0.so.%{sover}* +%{_libdir}/libPyImath_Python%{pyver_under}-3_1.so.%{sover}* %{python3_sitearch}/imath.so %{python3_sitearch}/imathnumpy.so @@ -89,11 +96,14 @@ rm -rf html/.{doctrees,buildinfo} %{_libdir}/pkgconfig/PyImath.pc %{_libdir}/cmake/Imath/ %{_libdir}/libImath.so -%{_libdir}/libImath-3_0.so -%{_libdir}/libPyImath_Python%{pyver_under}-3_0.so +%{_libdir}/libImath-3_1.so +%{_libdir}/libPyImath_Python%{pyver_under}-3_1.so %changelog +* Wed Aug 11 2021 Josef Ridky - 3.1.2-1 +- New upstream release 3.1.2 + * Fri Aug 06 2021 Jonathan Wakely - 3.0.2-6 - Rebuilt for Boost 1.76 diff --git a/sources b/sources index e069fa2..c9db1dd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Imath-3.0.2.tar.gz) = 4c683370717509847d14e26e55f68ab85664af6095e5a85310529f8e9b4cbaf871505cb85cc405ae48543c277dfa9186cf52f173d4ddca01ea23b14732bf3c8a +SHA512 (Imath-3.1.2.tar.gz) = 17d795f5cc44589b55bf921b93b576a7248c1bcd746f34220833378ba7c836af7cf842d96d98c09b9c3b11000cc1762dd5340dad30b51720fc6bcaea0c7af5d0