Drop and Obsolete the static library (-static subpackage)
This commit is contained in:
parent
a3de6c2631
commit
72facec888
@ -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 <code@musicinmybrain.net> - 3.1.5-10
|
||||
- Drop obsolete ldconfig_scriptlets macro
|
||||
- Drop and Obsolete the static library (-static subpackage)
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user