%global debug_package %{nil} %global commitdate 20201221 %global commit 698924a1637897a1a78377e082bb0066696a6b34 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: gdtoa-desktop Version: 0.1^%{commitdate}git%{shortcommit} Release: %autorelease Summary: Binary-decimal floating-point conversion library License: MIT URL: https://github.com/10110111/%{name} Source0: https://github.com/10110111/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: cmake BuildRequires: gcc %description This is an adaptation of the binary<->decimal floating-point conversion library by David M. Gay to common desktop/server operating systems like Ubuntu and Fedora. This adapatation's main objective is to provide an easy way to build the original upstream library in the configuration well-suited for the target systems - with locale and multithreading support, and without conflicts with the system libraries like glibc. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %prep %autosetup -n %{name}-%{commit} %build %cmake %cmake_build %install %cmake_install %files %doc README.md %{_libdir}/libgdtoa-desktop.so %files devel %{_includedir}/gdtoa-desktop/arith.h %{_includedir}/gdtoa-desktop/gdtoa-desktop.h %{_libdir}/pkgconfig/gdtoa-desktop.pc %changelog %autochangelog