Package libdouble-conversion: Specfile
%define _unpackaged_files_terminate_build 1 %define oname double-conversion %define soname 3 Name: lib%oname Version: 3.1.5 Release: alt1 Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles License: BSD Group: System/Libraries Url: https://github.com/floitsch/double-conversion Source: %name-%version.tar BuildRequires: cmake ctest BuildRequires: gcc-c++ %description Provides binary-decimal and decimal-binary routines for IEEE doubles. The library consists of efficient conversion routines that have been extracted from the V8 JavaScript engine. The code has been re-factored and improved so that it can be used more easily in other projects. %package -n lib%oname%soname Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles Group: System/Libraries %description -n lib%oname%soname Provides binary-decimal and decimal-binary routines for IEEE doubles. The library consists of efficient conversion routines that have been extracted from the V8 JavaScript engine. The code has been re-factored and improved so that it can be used more easily in other projects. %package devel Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles Group: Development/C Requires: lib%oname%soname = %EVR %description devel Contains header files for developing applications that use the %name library. %prep %setup %ifarch %e2k sed -i 's,defined(__riscv),& || defined(__e2k__),' double-conversion/utils.h %endif %build %cmake_insource \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_STATIC_LIBS=OFF \ -DBUILD_TESTING:BOOL=ON %make_build %install %makeinstall_std %check export LD_LIBRARY_PATH=%buildroot%_libdir %make_build test %files -n lib%oname%soname %doc LICENSE README.md AUTHORS Changelog %_libdir/*.so.%{soname} %_libdir/*.so.%{soname}.* %files devel %_libdir/*.so %_libdir/cmake/%oname %_includedir/%oname %changelog * Fri May 14 2021 Aleksei Nikiforov <darktemplar@altlinux.org> 3.1.5-alt1 - Updated to upstream version 3.1.5. - Renamed packages due to Shared Libs Policy. * Mon Sep 02 2019 Michael Shigorin <mike@altlinux.org> 3.0.0-alt4 - Added e2k support (patch suggested upstream) * Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 3.0.0-alt3 - NMU: remove rpm-build-ubt from BR: * Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 3.0.0-alt2 - NMU: remove %%ubt from release * Tue May 15 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.0.0-alt1 - Updated to upstream version 3.0.0. * Mon Feb 13 2017 Alexey Shabalin <shaba@altlinux.ru> 2.0.1-alt1 - Initial build - master snapshot d8d4e668ee1e6e10b728f0671a89b07d7c4d45be |