Accepting request 770685 from devel:libraries:c_c++

- Use proper cmake calls
- Do not pull in py2 that is EOL but use python3 for build

- Update to version 3.1.5 jsc#ECO-1190 (forwarded request 770656 from scarabeus_iv)

OBS-URL: https://build.opensuse.org/request/show/770685
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/double-conversion?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2020-02-15 21:23:09 +00:00 committed by Git OBS Bridge
commit f99c2b0c56
2 changed files with 19 additions and 16 deletions

View File

@ -1,7 +1,13 @@
-------------------------------------------------------------------
Thu Feb 6 16:01:17 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Use proper cmake calls
- Do not pull in py2 that is EOL but use python3 for build
-------------------------------------------------------------------
Mon Jul 22 19:33:44 UTC 2019 - Todd R <toddrme2178@gmail.com>
- Update to version 3.1.5
- Update to version 3.1.5 jsc#ECO-1190
* Fix `0x` for string->double conversion when Hex Floats are allowed.
Avoid integer overflow when exponents for hex floats were too big.
Update version number.

View File

@ -1,7 +1,7 @@
#
# spec file for package double-conversion
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,18 +17,18 @@
%define lib_ver 3
%define libname libdouble-conversion3
Name: double-conversion
Version: 3.1.5
Release: 0
Summary: Binary-decimal and decimal-binary routines for IEEE doubles
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: https://github.com/google/double-conversion
URL: https://github.com/google/double-conversion
Source0: https://github.com/google/double-conversion/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: python
BuildRequires: python3-base
%description
Double-conversion provides binary-decimal and decimal-binary routines
@ -36,11 +36,10 @@ for IEEE double-precision floating point numbers. The library
consists of conversion routines that have been extracted from the V8
JavaScript engine.
%package -n lib%{name}%{lib_ver}
%package -n %{libname}
Summary: Binary-decimal and decimal-binary routines for IEEE doubles
Group: System/Libraries
%description -n lib%{name}%{lib_ver}
%description -n %{libname}
Double-conversion provides binary-decimal and decimal-binary routines
for IEEE double-precision floating point numbers. The library
consists of conversion routines that have been extracted from the V8
@ -48,8 +47,7 @@ JavaScript engine.
%package devel
Summary: Development files for BCD/DCB routines for IEEE doubles
Group: Development/Libraries/C and C++
Requires: lib%{name}%{lib_ver} = %{version}
Requires: %{libname} = %{version}
%description devel
Double-conversion provides binary-decimal and decimal-binary routines
@ -67,7 +65,7 @@ that use double-conversion.
%cmake \
-DBUILD_SHARED_LIBS:BOOL=ON\
-DBUILD_TESTING:BOOL=ON
%make_jobs
%cmake_build
%install
%cmake_install
@ -76,16 +74,15 @@ that use double-conversion.
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%ctest
%post -n lib%{name}%{lib_ver} -p /sbin/ldconfig
%postun -n lib%{name}%{lib_ver} -p /sbin/ldconfig
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n lib%{name}%{lib_ver}
%license COPYING LICENSE
%files -n %{libname}
%license LICENSE
%{_libdir}/libdouble-conversion.so.%{lib_ver}*
%files devel
%doc AUTHORS Changelog README.md
%license COPYING LICENSE
%{_libdir}/libdouble-conversion.so
%{_libdir}/cmake/%{name}/
%{_includedir}/%{name}/