Projects
Factory:RISC-V:ROCm
half
_service:tar_scm:half.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:half.spec of Package half
# there is no debug package %global debug_package %{nil} Name: half Version: 2.2.0 Release: 1 Summary: A C++ half-precision floating point type License: MIT URL: http://sourceforge.net/projects/half Source0: %{url}/files/%{name}/%{version}/%{name}-%{version}.zip BuildArch: noarch %description This is a C++ header-only library to provide an IEEE-754 conformant half-precision floating point type along with corresponding arithmetic operators, type conversions and common mathematical functions. It aims for both efficiency and ease of use, trying to accurately mimic the behaviour of the builtin floating point types at the best performance possible. It automatically uses and provides C++11 features when possible, but stays completely C++98-compatible when neccessary. %package devel Summary: A C++ half-precision floating point type Provides: %{name}-static = %{version}-%{release} %description devel This is a C++ header-only library to provide an IEEE-754 conformant half-precision floating point type along with corresponding arithmetic operators, type conversions and common mathematical functions. It aims for both efficiency and ease of use, trying to accurately mimic the behaviour of the builtin floating point types at the best performance possible. It automatically uses and provides C++11 features when possible, but stays completely C++98-compatible when neccessary. %prep rm -rf %{name}-%{version} unzip -d %{name}-%{version} %{SOURCE0} cd %{name}-%{version} # change dos endings to unix sed -i "s|\r||g" include/half.hpp sed -i "s|\r||g" LICENSE.txt sed -i "s|\r||g" README.txt %install cd %{name}-%{version} mkdir -p %{buildroot}%{_includedir} install -m 644 include/half.hpp %{buildroot}%{_includedir} mkdir -p %{buildroot}%{_docdir}/%{name}/ install -m 644 LICENSE.txt %{buildroot}%{_docdir}/%{name}/ install -m 644 README.txt %{buildroot}%{_docdir}/%{name}/ %files devel %doc %{_docdir}/%{name}/README.txt %license %{_docdir}/%{name}/LICENSE.txt %{_includedir}/half.hpp %changelog * Tue Oct 29 2024 misaka00251 <liuxin@iscas.ac.cn> - 2.2.0-1 - Init pacakge
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2