diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-08-17 21:52:00 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-08-17 21:52:00 +0000 |
commit | 16cf612089c157c16396d5d20b1d5e0431336d19 (patch) | |
tree | 97ea7dbef00ef368029c6e1a787f9552de558e1b | |
parent | 5b5256a057f44171d235d3eee900c3829f01eebf (diff) |
-rw-r--r-- | half.spec | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -3,13 +3,14 @@ Name: half Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} 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 + +BuildRequires: dos2unix %description This is a C++ header-only library to provide an IEEE-754 conformant @@ -21,6 +22,7 @@ possible. It automatically uses and provides C++11 features when possible, but stays completely C++98-compatible when neccessary. %package devel +BuildArch: noarch Summary: A C++ half-precision floating point type Provides: %{name}-static = %{version}-%{release} @@ -34,28 +36,26 @@ 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} +%autosetup -c + # 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 +dos2unix include/half.hpp +dos2unix LICENSE.txt +dos2unix 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 +%doc README.txt +%license LICENSE.txt %{_includedir}/half.hpp %changelog +* Thu Aug 17 2023 Tom Rix <trix@redhat.com> - 2.2.0-2 +- Address review comments + * Wed Aug 9 2023 Tom Rix <trix@redhat.com> - 2.2.0-1 - Initial package |