diff --git a/baselibs.conf b/baselibs.conf index fa289bc..979924d 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1 @@ -libdouble-conversion1 +libdouble-conversion2 diff --git a/double-conversion-3.0.3.tar.gz b/double-conversion-3.0.3.tar.gz new file mode 100644 index 0000000..894b8b1 --- /dev/null +++ b/double-conversion-3.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac84e00c19fdb5ee20c01feb18b0fa2e938bf4b8cf71d43bab62502c8b65420a +size 7019705 diff --git a/double-conversion.changes b/double-conversion.changes index 973bc21..702df0a 100644 --- a/double-conversion.changes +++ b/double-conversion.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Feb 28 11:26:22 UTC 2019 - Andreas Schwab + +- 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 diff --git a/double-conversion.spec b/double-conversion.spec index 539bf32..dae52cd 100644 --- a/double-conversion.spec +++ b/double-conversion.spec @@ -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 diff --git a/v2.0.1.tar.gz b/v2.0.1.tar.gz deleted file mode 100644 index 1b7f0e4..0000000 --- a/v2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca9ec6974eaaa29827b916c90666fba3b0b6641030fe2ab34a81e280187acdef -size 7014148