Accepting request 680137 from home:Andreas_Schwab:Factory

- Update to version 3.0.3
  * Support RISC-V
  * Bug fixes
- Switch to cmake
- Use %license

OBS-URL: https://build.opensuse.org/request/show/680137
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/double-conversion?expand=0&rev=9
This commit is contained in:
Adam Majer 2019-02-28 14:53:54 +00:00 committed by Git OBS Bridge
parent 83d9cf1e16
commit 03540150b9
5 changed files with 27 additions and 34 deletions

View File

@ -1 +1 @@
libdouble-conversion1
libdouble-conversion2

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac84e00c19fdb5ee20c01feb18b0fa2e938bf4b8cf71d43bab62502c8b65420a
size 7019705

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Feb 28 11:26:22 UTC 2019 - Andreas Schwab <schwab@suse.de>
- Update to version 3.0.3
* Support RISC-V
* Bug fixes
- Switch to cmake
- Use %license
-------------------------------------------------------------------
Fri Jul 14 20:51:40 UTC 2017 - jengelh@inai.de

View File

@ -1,7 +1,7 @@
#
# spec file for package double-conversion
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,23 +12,23 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lib_ver 1
%define lib_ver 2
Name: double-conversion
Version: 2.0.1
Version: 3.0.3
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
Source0: https://github.com/google/double-conversion/archive/v%{version}.tar.gz
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: scons >= 2.3.0
%description
Double-conversion provides binary-decimal and decimal-binary routines
@ -64,33 +64,15 @@ that use double-conversion.
%setup -q
%build
scons \
CXXFLAGS="%{optflags}" \
VERSION="%{version}" \
%{?_smp_mflags}
# With scons 2.3.0 setting the version fails without this
# http://comments.gmane.org/gmane.comp.programming.tools.scons.user/24448
rm -f libdouble-conversion.so*
%cmake -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON
%make_jobs
%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}/%{name}
scons \
CXXFLAGS="%{optflags}" \
libsuffix=%{_lib} \
prefix=%{_prefix} \
DESTDIR=%{buildroot} \
install
cp -p src/*.h %{buildroot}%{_includedir}/%{name}
rm %{buildroot}%{_libdir}/lib%{name}*.a
%cmake_install
%check
scons CXXFLAGS="%{optflags}" run_tests
./run_tests --list | tr -d '<' | xargs ./run_tests
export LD_LIBRARY_PATH=$PWD/build/double-conversion
%ctest
%post -n lib%{name}%{lib_ver} -p /sbin/ldconfig
%postun -n lib%{name}%{lib_ver} -p /sbin/ldconfig
@ -101,8 +83,10 @@ scons CXXFLAGS="%{optflags}" run_tests
%files devel
%defattr(-,root,root)
%doc AUTHORS Changelog LICENSE README
%doc AUTHORS Changelog README.md
%license LICENSE
%{_libdir}/libdouble-conversion.so
%{_libdir}/cmake/%{name}/
%{_includedir}/%{name}/
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca9ec6974eaaa29827b916c90666fba3b0b6641030fe2ab34a81e280187acdef
size 7014148