gz-math/ignition-math.spec
2024-01-09 13:57:23 +08:00

174 lines
5.6 KiB
RPMSpec

%global _docdir_fmt %{name}
%global abiver 6
Name: ignition-math
Version: 6.9.2
Release: 2%{?dist}
Summary: Small, Fast, High Performance Math Library
License: ASL 2.0
URL: http://ignitionrobotics.org/libraries/math
Source0: https://osrf-distributions.s3.us-east-1.amazonaws.com/ign-math/releases/ignition-math%{abiver}-%{version}.tar.bz2
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: eigen3-devel
BuildRequires: ignition-cmake-devel >= 2.0.0
BuildRequires: graphviz
BuildRequires: make
BuildRequires: rubygem-ronn
# Change a static map intiailization to work around error where density values were not intialized correctly.
# Not yet submitted upstream
Patch0: %{name}-6.9.2-gcc12.patch
%description
Ignition Math is a component in the Ignition framework, a set of libraries
designed to rapidly develop robot applications. The library defines math
classes and functions used in other Ignition libraries and programs.
%package devel
Summary: Development files and libraries for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files and libraries
for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.
%package doc
Summary: Development documentation for %{name}
BuildArch: noarch
%description doc
Generated API and development documentation for %{name}
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .gcc12
# Required to sneak in custom CFLAGS via CMAKE_C_FLAGS_ALL
sed -i 's/unset/#unset/g' CMakeLists.txt
sed -i 's/NOT RUBY_FOUND/TRUE/g' CMakeLists.txt
sed -i 's/RUBY_FOUND/FALSE/g' src/CMakeLists.txt
%build
%cmake -DBUILD_TESTING=OFF \
%ifnarch x86_64
-DSSE2_FOUND=FALSE \
%endif
-DSSE3_FOUND=FALSE \
-DSSSE3_FOUND=FALSE \
-DSSE4_1_FOUND=FALSE \
-DSSE4_2_FOUND=FALSE \
-DCMAKE_C_FLAGS_ALL="%{optflags}" \
-DCMAKE_CXX_FLAGS_ALL="%{optflags}" \
-DCMAKE_BUILD_TYPE=Release
%make_build
%make_build doc
%install
%make_install
%check
# The INTEGRATION_versioned_symbols test fails due to unversioned symbols inserted by annobin.
# The UNIT_Pose_TEST fails on aarch64 due to cout printing 0 with a negative sign.
make test
%files
%license COPYING
%doc README.md Changelog.md
%{_libdir}/*.so.%{version}
%{_libdir}/*.so.%{abiver}
%{_datadir}/ignition/
%files devel
%{_libdir}/pkgconfig
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_includedir}/ignition
%files doc
%license COPYING
%changelog
* Mon Jan 24 2022 Rich Mattes <rmattes@fedoraproject.org> - 6.9.2-2
- Add patch to work around rawhide test errors with gcc12
* Sun Jan 23 2022 Rich Mattes <rmattes@fedoraproject.org> - 6.9.2-1
- Update to release 6.9.2
* Sun Mar 07 2021 Rich Mattes <rmattes@fedoraproject.org> - 6.7.0-1
- Update to release 6.7.0
* Wed Aug 19 2020 Rich Mattes <rmattes@fedoraproject.org> - 6.4.0-1
- Update to release 6.4.0
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-6
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Nov 23 2018 Rich Mattes <richmattes@gmail.com> - 4.0.0-1
- Update to release 4.0 (rhbz#1652991)
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Aug 20 2017 Rich Mattes <richmattes@gmail.com> - 3.2.0-1
- Update to release 3.2.0
* Mon Aug 07 2017 Björn Esser <besser82@fedoraproject.org> - 3.0.0-5
- Rebuilt for AutoReq cmake-filesystem
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
* Sun Feb 19 2017 Rich Mattes <richmattes@gmail.com> - 3.0.0-1
- Update to release 3.0.0
- Fix FTBFS (rhbz#1423733)
- Remove upstreamed patch
- Added a new fix for i686 non-SSE math
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Sun Jul 17 2016 Rich Mattes <richmattes@gmail.com> - 2.4.1-1
- Update to release 2.4.1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Fri Jan 15 2016 Rich Mattes <richmattes@gmail.com> - 2.3.0-1
- Update to release 2.3.0
* Tue Oct 20 2015 Rich Mattes <richmattes@gmail.com> - 2.2.3-1
- Update to release 2.2.3
* Thu Aug 20 2015 Rich Mattes <richmattes@gmail.com> - 2.2.2-1
- Update to release 2.2.2
* Fri May 22 2015 Rich Mattes <richmattes@gmail.com> - 1.0.0-1
- Initial release (rhbz#1224390)