New upstream release 3.1.2

This commit is contained in:
Richard Shaw 2021-08-20 11:59:31 -05:00
parent 791ab82ef7
commit 8911787638
3 changed files with 22 additions and 11 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/Imath-3.0.2.tar.gz /Imath-3.0.2.tar.gz
/Imath-3.1.2.tar.gz

View File

@ -1,16 +1,17 @@
%global srcname Imath %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))") %global pyver_under %(%{python3} -Esc "import sys; sys.stdout.write('{0.major}_{0.minor}'.format(sys.version_info))")
Name: imath Name: imath
Version: 3.0.2 Version: 3.1.2
Release: 6%{?dist} Release: 1%{?dist}
Summary: Library of 2D and 3D vector, matrix, and math operations for computer graphics Summary: Library of 2D and 3D vector, matrix, and math operations for computer graphics
License: BSD License: BSD
URL: https://github.com/AcademySoftwareFoundation/Imath URL: https://github.com/AcademySoftwareFoundation/Imath
Source0: https://github.com/AcademySoftwareFoundation/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz Source0: https://github.com/AcademySoftwareFoundation/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
Patch0: imath-python-test.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc gcc-c++ BuildRequires: gcc gcc-c++
@ -18,6 +19,7 @@ BuildRequires: make
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: python3-devel BuildRequires: python3-devel
# For documentation generation # For documentation generation
BuildRequires: doxygen
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
BuildRequires: python3-breathe BuildRequires: python3-breathe
@ -48,14 +50,19 @@ Requires: python3-devel
%prep %prep
%autosetup -n %{srcname}-%{version} %autosetup -n %{srcname}-%{version} -p1
%build %build
%cmake -DPYTHON=ON %cmake -DPYTHON=ON -DCMAKE_INSTALL_PREFIX=%{_usr}
%cmake_build %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 PYTHONPATH=${PWD} sphinx-build-3 docs/ html
# Remove the sphinx-build leftovers # Remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo} rm -rf html/.{doctrees,buildinfo}
@ -75,10 +82,10 @@ rm -rf html/.{doctrees,buildinfo}
%files %files
%license LICENSE.md %license LICENSE.md
%doc CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.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} %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}/imath.so
%{python3_sitearch}/imathnumpy.so %{python3_sitearch}/imathnumpy.so
@ -89,11 +96,14 @@ rm -rf html/.{doctrees,buildinfo}
%{_libdir}/pkgconfig/PyImath.pc %{_libdir}/pkgconfig/PyImath.pc
%{_libdir}/cmake/Imath/ %{_libdir}/cmake/Imath/
%{_libdir}/libImath.so %{_libdir}/libImath.so
%{_libdir}/libImath-3_0.so %{_libdir}/libImath-3_1.so
%{_libdir}/libPyImath_Python%{pyver_under}-3_0.so %{_libdir}/libPyImath_Python%{pyver_under}-3_1.so
%changelog %changelog
* Wed Aug 11 2021 Josef Ridky <jridky@redhat.com> - 3.1.2-1
- New upstream release 3.1.2
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-6 * Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-6
- Rebuilt for Boost 1.76 - Rebuilt for Boost 1.76

View File

@ -1 +1 @@
SHA512 (Imath-3.0.2.tar.gz) = 4c683370717509847d14e26e55f68ab85664af6095e5a85310529f8e9b4cbaf871505cb85cc405ae48543c277dfa9186cf52f173d4ddca01ea23b14732bf3c8a SHA512 (Imath-3.1.2.tar.gz) = 17d795f5cc44589b55bf921b93b576a7248c1bcd746f34220833378ba7c836af7cf842d96d98c09b9c3b11000cc1762dd5340dad30b51720fc6bcaea0c7af5d0