## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global commit0 98b0a46bce017382a6351a19577ec43a715b6835 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global date0 20240619 %bcond_with check Summary: Conversion to/from half-precision floating point format Name: FP16 License: MIT Version: 1.0^git%{date0}.%{shortcommit0} Release: %autorelease # Only a header BuildArch: noarch URL: https://github.com/Maratyszcza/%{name} Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz # https://github.com/Maratyszcza/FP16/issues/36 Patch0: 0001-Revert-Remove-PeachPy-implementations.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: python3-devel %if %{with check} BuildRequires: gtest-devel %endif %description Header-only library for conversion to/from half-precision floating point formats * Supports IEEE and ARM alternative half-precision floating-point format * Property converts infinities and NaNs * Properly converts denormal numbers, even on systems without denormal support * Header-only library, no installation or build required * Compatible with C99 and C++11 * Fully covered with unit tests and microbenchmarks %package devel Summary: Conversion to/from half-precision floating point format Provides: %{name}-static = %{version}-%{release} Requires: python3dist(peachpy) %description devel Header-only library for conversion to/from half-precision floating point formats * Supports IEEE and ARM alternative half-precision floating-point format * Property converts infinities and NaNs * Properly converts denormal numbers, even on systems without denormal support * Header-only library, no installation or build required * Compatible with C99 and C++11 * Fully covered with unit tests and microbenchmarks %prep %autosetup -p1 -n %{name}-%{commit0} %build %cmake \ -DFP16_USE_SYSTEM_LIBS=ON \ %if %{without check} -DFP16_BUILD_TESTS=OFF \ %endif -DFP16_BUILD_BENCHMARKS=OFF \ %cmake_build %if %{with check} %check %ctest %endif %install %cmake_install mkdir -p %{buildroot}%{python3_sitelib}/fp16 cp -p include/fp16/*.py %{buildroot}%{python3_sitelib}/fp16 %files devel %license LICENSE %doc README.md %{_includedir}/fp16.h %{_includedir}/fp16/ %{python3_sitelib}/fp16/* %changelog ## START: Generated by rpmautospec * Fri Mar 21 2025 Tom Rix - 1.0^git20240619.98b0a46-2 - Revert removing fp16 python * Sat Mar 01 2025 Tom Rix - 1.0^git20240619.98b0a46-1 - Update to newer sources * Thu Jan 16 2025 Fedora Release Engineering - 1.0^git20210317.0a92994-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 26 2024 Tom Rix - 1.0^git20210317.0a92994-6 - Enable fp16 python interface * Wed Jul 17 2024 Fedora Release Engineering - 1.0^git20210317.0a92994-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.0^git20210317.0a92994-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.0^git20210317.0a92994-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 18 2024 Fedora Release Engineering - 1.0^git20210317.0a92994-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Sep 11 2023 Tom Rix - 1.0^git20210317.0a92994-1 - Initial package ## END: Generated by rpmautospec