diff --git a/double-conversion.spec b/double-conversion.spec index 085b6cd0f1f22e74e9d1eb62fb0135fe83177f82..46dae829b8ad1ec4c78529c65cbffaf0045247b5 100644 --- a/double-conversion.spec +++ b/double-conversion.spec @@ -1,10 +1,8 @@ -%bcond_without static_libs # don't build static libraries - Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles Name: double-conversion Version: 3.1.5 -Release: 2 -License: BSD +Release: 3 +License: BSD-3-Clause URL: https://github.com/google/double-conversion Source0: https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ cmake @@ -38,40 +36,18 @@ Static %{name} library. %autosetup -n %{name}-%{version} -p1 %build -mkdir -p build-shared -pushd build-shared - %cmake -DBUILD_TESTING=ON .. - make %{_smp_mflags} -popd - -%if %{with static_libs} -mkdir -p build-static -pushd build-static - CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO .. - make %{_smp_mflags} -popd -%endif +%cmake -DBUILD_TESTING=ON .. +%cmake_build %install -%if %{with static_libs} -pushd build-static - make install DESTDIR=%{buildroot} -popd -%endif - -pushd build-shared - make install DESTDIR=%{buildroot} -popd +%cmake_install %check -pushd build-shared - ctest -V -popd - -%ldconfig_scriptlets +%ctest %files -%doc LICENSE README.md AUTHORS Changelog +%license LICENSE +%doc README.md AUTHORS Changelog %{_libdir}/libdouble-conversion.so.3* %files devel @@ -79,12 +55,11 @@ popd %{_libdir}/cmake/%{name} %{_includedir}/%{name} -%if %{with static_libs} -%files static -%{_libdir}/libdouble-conversion.a -%endif - %changelog +* Mon Nov 18 2024 Funda Wang - 3.1.5-3 +- adopt to new cmake macro +- drop static build completely + * Tue Nov 8 2022 WenlongZhang - 3.1.5-2 - Add loongarch support. diff --git a/double-conversion.yaml b/double-conversion.yaml index b8ee4e74a6830244463412e30a809387f0b8631a..0ec007b15693de3a87c85b90168ab6a31b3501b9 100644 --- a/double-conversion.yaml +++ b/double-conversion.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: google/double-conversion tag_prefix: "v" -seperator: "." +separator: "."