From 72facec888ea1c0a125a16b01bfe9548e32fcd61 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Thu, 1 Dec 2022 10:07:53 -0500 Subject: [PATCH] Drop and Obsolete the static library (-static subpackage) --- double-conversion.spec | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/double-conversion.spec b/double-conversion.spec index cb3222b..dcff7e4 100644 --- a/double-conversion.spec +++ b/double-conversion.spec @@ -1,6 +1,3 @@ -%undefine __cmake_in_source_build -%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 @@ -21,6 +18,7 @@ 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 Requires: %{name}%{?_isa} = %{version}-%{release} +Obsoletes: %{name}-static < 3.1.5-10 %description devel Contains header files for developing applications that use the %{name} @@ -29,34 +27,14 @@ library. There is extensive documentation in src/double-conversion.h. Other examples can be found in test/cctest/test-conversions.cc. -%package static -Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles -Requires: %{name}-devel%{?_isa} = %{version}-%{release} - -%description static -Static %{name} library. - %prep %setup -q %build -%global _vpath_builddir build-shared %cmake -DBUILD_TESTING=ON %cmake_build -%if %{with static_libs} -%global _vpath_builddir build-static -CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO -%cmake_build -%endif - %install -%if %{with static_libs} -%global _vpath_builddir build-static -%cmake_install -%endif - -%global _vpath_builddir build-shared %cmake_install %check @@ -71,14 +49,10 @@ CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO %{_libdir}/cmake/%{name} %{_includedir}/%{name} -%if %{with static_libs} -%files static -%{_libdir}/libdouble-conversion.a -%endif - %changelog * Sun Jan 07 2024 Benjamin A. Beasley - 3.1.5-10 - Drop obsolete ldconfig_scriptlets macro +- Drop and Obsolete the static library (-static subpackage) * Wed Jul 19 2023 Fedora Release Engineering - 3.1.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild