Blame imath.spec

bb8a153
%global srcname Imath
8911787
%global sover 29
3c03148
%global pyver_under %(%{python3} -Esc "import sys; sys.stdout.write('{0.major}_{0.minor}'.format(sys.version_info))")
bb8a153
bb8a153
Name:           imath
e1c3ad5
Version:        3.1.9
4cd3318
Release:        3%{?dist}
bb8a153
Summary:        Library of 2D and 3D vector, matrix, and math operations for computer graphics
bb8a153
27ffe2e
License:        BSD-3-Clause
bb8a153
URL:            https://github.com/AcademySoftwareFoundation/Imath
bb8a153
Source0:        https://github.com/AcademySoftwareFoundation/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
bb8a153
8911787
Patch0:         imath-python-test.patch
bb8a153
bb8a153
BuildRequires:  cmake
bb8a153
BuildRequires:  gcc gcc-c++
bb8a153
BuildRequires:  make
bb8a153
BuildRequires:  boost-devel
bb8a153
BuildRequires:  python3-devel
bb8a153
# For documentation generation
8911787
BuildRequires:  doxygen
bb8a153
BuildRequires:  python3-sphinx
bb8a153
BuildRequires:  python3-breathe
bb8a153
bb8a153
%description
bb8a153
Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D
bb8a153
vectors and matrices and other simple but useful mathematical objects,
bb8a153
functions, and data types common in computer graphics applications, including
bb8a153
the “half” 16-bit floating-point type.
bb8a153
bb8a153
bb8a153
%package -n python3-%{name}
bb8a153
Requires:       %{name}%{?_isa} = %{version}-%{release}
bb8a153
Summary:        Python module for Imath
bb8a153
bb8a153
%description -n python3-%{name}
bb8a153
%{summary}.
bb8a153
bb8a153
bb8a153
%package devel
bb8a153
Summary:        Development files for Imath
bb8a153
Requires:       %{name}%{?_isa} = %{version}-%{release}
bb8a153
Requires:       python3-%{name}%{?_isa} = %{version}-%{release}
bb8a153
Requires:       boost-devel
bb8a153
Requires:       python3-devel
bb8a153
bb8a153
%description devel
bb8a153
%{summary}.
bb8a153
bb8a153
bb8a153
%prep
8911787
%autosetup -n %{srcname}-%{version} -p1
bb8a153
bb8a153
bb8a153
%build
c94e3f8
%cmake  -DCMAKE_INSTALL_PREFIX=%{_prefix} \
c94e3f8
        -DPYTHON=ON \
c94e3f8
		-DDOCS=ON \
fc4b7d7
		-DINSTALL_DOCS=OFF \
fc4b7d7
		--trace-source=docs/CMakeLists.txt
bb8a153
c94e3f8
%cmake_build
bb8a153
bb8a153
bb8a153
%install
bb8a153
%cmake_install
bb8a153
c94e3f8
# Fixup documentation so it can get installed correctly in imath-devel
27ffe2e
#rm -rf %{__cmake_builddir}/docs/sphinx/.{doctrees,buildinfo}
27ffe2e
#mv %{__cmake_builddir}/docs/sphinx ./html
c94e3f8
bb8a153
bb8a153
%check
bb8a153
%ctest
bb8a153
bb8a153
bb8a153
%files
bb8a153
%license LICENSE.md
bb8a153
%doc CHANGES.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTORS.md README.md SECURITY.md
8911787
%{_libdir}/libImath-3_1.so.%{sover}*
bb8a153
bb8a153
%files -n python3-%{name}
8911787
%{_libdir}/libPyImath_Python%{pyver_under}-3_1.so.%{sover}*
bb8a153
%{python3_sitearch}/imath.so
bb8a153
%{python3_sitearch}/imathnumpy.so
bb8a153
bb8a153
%files devel
e1c3ad5
#doc html/
bb8a153
%{_includedir}/Imath/
bb8a153
%{_libdir}/pkgconfig/Imath.pc
bb8a153
%{_libdir}/pkgconfig/PyImath.pc
bb8a153
%{_libdir}/cmake/Imath/
bb8a153
%{_libdir}/libImath.so
8911787
%{_libdir}/libImath-3_1.so
8911787
%{_libdir}/libPyImath_Python%{pyver_under}-3_1.so
bb8a153
bb8a153
bb8a153
%changelog
4cd3318
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.9-3
4cd3318
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
4cd3318
639ce6c
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 3.1.9-2
639ce6c
- Rebuilt for Python 3.12
639ce6c
e1c3ad5
* Thu Jun 01 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.9-1
e1c3ad5
- Update to 3.1.9.
e1c3ad5
e1c3ad5
* Mon May 29 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.8-1
e1c3ad5
- Update to 3.1.8.
e1c3ad5
27ffe2e
* Mon Mar 20 2023 Richard Shaw <hobbes1069@gmail.com> - 3.1.7-1
27ffe2e
- Update to 3.1.7.
27ffe2e
- Update license to SPDX identifier.
27ffe2e
8e8a8af
* Mon Feb 20 2023 Jonathan Wakely <jwakely@redhat.com> - 3.1.6-3
8e8a8af
- Rebuilt for Boost 1.81
8e8a8af
b385571
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-2
b385571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
b385571
5fe3f39
* Tue Nov 08 2022 Richard Shaw <hobbes1069@gmail.com> - 3.1.6-1
5fe3f39
- Update to 3.1.6.
5fe3f39
24d8bee
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-4
24d8bee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
24d8bee
f81d081
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.1.5-3
f81d081
- Rebuilt for Python 3.11
f81d081
32f5a6d
* Wed May 04 2022 Thomas Rodgers <trodgers@redhat.com> - 3.1.5-2
32f5a6d
- Rebuilt for Boost 1.78
32f5a6d
b10ac76
* Fri Apr 15 2022 Richard Shaw <hobbes1069@gmail.com> - 3.1.5-1
b10ac76
- Update to 3.1.5.
b10ac76
57543c5
* Sun Jan 23 2022 Richard Shaw <hobbes1069@gmail.com> - 3.1.4-1
57543c5
- Update to 3.1.4.
57543c5
4aa114d
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-2
4aa114d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
4aa114d
c94e3f8
* Sun Oct 24 2021 Richard Shaw <hobbes1069@gmail.com> - 3.1.3-1
c94e3f8
- Update to 3.1.3.
c94e3f8
8911787
* Wed Aug 11 2021 Josef Ridky <jridky@redhat.com> - 3.1.2-1
8911787
- New upstream release 3.1.2
8911787
791ab82
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 3.0.2-6
791ab82
- Rebuilt for Boost 1.76
791ab82
27a3560
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-5
27a3560
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
27a3560
12092f6
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.2-4
12092f6
- Rebuilt for Python 3.10
12092f6
bb8a153
* Thu May 27 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.2-3
bb8a153
- Add main package as dependency to python package.
bb8a153
bb8a153
* Tue May 25 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.2-2
bb8a153
- Update spec per reviewer comments.
bb8a153
bb8a153
* Thu May 20 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.2-1
bb8a153
- Update to 3.0.2.
bb8a153
bb8a153
* Wed Apr 07 2021 Richard Shaw <hobbes1069@gmail.com> - 3.0.1-1
bb8a153
- Initial packaging.