2021-05-28 21:21:20 +00:00
|
|
|
%global srcname Imath
|
2021-08-20 16:59:31 +00:00
|
|
|
%global sover 29
|
2021-06-08 12:49:20 +00:00
|
|
|
%global pyver_under %(%{python3} -Esc "import sys; sys.stdout.write('{0.major}_{0.minor}'.format(sys.version_info))")
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
Name: imath
|
2022-01-23 16:34:17 +00:00
|
|
|
Version: 3.1.4
|
2021-08-20 16:59:31 +00:00
|
|
|
Release: 1%{?dist}
|
2021-05-28 21:21:20 +00:00
|
|
|
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
|
|
|
|
|
2021-08-20 16:59:31 +00:00
|
|
|
Patch0: imath-python-test.patch
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc gcc-c++
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
# For documentation generation
|
2021-08-20 16:59:31 +00:00
|
|
|
BuildRequires: doxygen
|
2021-05-28 21:21:20 +00:00
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
BuildRequires: python3-breathe
|
|
|
|
|
|
|
|
%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}
|
|
|
|
Requires: boost-devel
|
|
|
|
Requires: python3-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-08-20 16:59:31 +00:00
|
|
|
%autosetup -n %{srcname}-%{version} -p1
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2021-10-24 14:55:31 +00:00
|
|
|
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
|
|
-DPYTHON=ON \
|
|
|
|
-DDOCS=ON \
|
2021-11-02 12:40:41 +00:00
|
|
|
-DINSTALL_DOCS=OFF \
|
|
|
|
--trace-source=docs/CMakeLists.txt
|
2021-05-28 21:21:20 +00:00
|
|
|
|
2021-10-24 14:55:31 +00:00
|
|
|
%cmake_build
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2021-10-24 14:55:31 +00:00
|
|
|
# Fixup documentation so it can get installed correctly in imath-devel
|
|
|
|
rm -rf %{__cmake_builddir}/docs/sphinx/.{doctrees,buildinfo}
|
|
|
|
mv %{__cmake_builddir}/docs/sphinx ./html
|
|
|
|
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE.md
|
|
|
|
%doc CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md
|
2021-08-20 16:59:31 +00:00
|
|
|
%{_libdir}/libImath-3_1.so.%{sover}*
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
%files -n python3-%{name}
|
2021-08-20 16:59:31 +00:00
|
|
|
%{_libdir}/libPyImath_Python%{pyver_under}-3_1.so.%{sover}*
|
2021-05-28 21:21:20 +00:00
|
|
|
%{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
|
2021-08-20 16:59:31 +00:00
|
|
|
%{_libdir}/libImath-3_1.so
|
|
|
|
%{_libdir}/libPyImath_Python%{pyver_under}-3_1.so
|
2021-05-28 21:21:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-01-23 16:34:17 +00:00
|
|
|
* Sun Jan 23 2022 Richard Shaw <hobbes1069@gmail.com> - 3.1.4-1
|
|
|
|
- Update to 3.1.4.
|
|
|
|
|
2021-10-24 14:55:31 +00:00
|
|
|
* Sun Oct 24 2021 Richard Shaw <hobbes1069@gmail.com> - 3.1.3-1
|
|
|
|
- Update to 3.1.3.
|
|
|
|
|
2021-08-20 16:59:31 +00:00
|
|
|
* Wed Aug 11 2021 Josef Ridky <jridky@redhat.com> - 3.1.2-1
|
|
|
|
- New upstream release 3.1.2
|
|
|
|
|
2021-08-06 23:03:59 +00:00
|
|
|
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-6
|
|
|
|
- Rebuilt for Boost 1.76
|
|
|
|
|
2021-07-22 08:31:21 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-04 18:07:28 +00:00
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.2-4
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
2021-05-28 21:21:20 +00:00
|
|
|
* Thu May 27 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.2-3
|
|
|
|
- Add main package as dependency to python package.
|
|
|
|
|
|
|
|
* Tue May 25 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.2-2
|
|
|
|
- Update spec per reviewer comments.
|
|
|
|
|
|
|
|
* Thu May 20 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.2-1
|
|
|
|
- Update to 3.0.2.
|
|
|
|
|
|
|
|
* Wed Apr 07 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.1-1
|
|
|
|
- Initial packaging.
|