Accepting request 973064 from home:jengelh:branches:devel:libraries:c_c++
- Resolve rpmlint report "libgflags2.x86_64: E: shlib-policy-name-error SONAME: libgflags.so.2.2, expected package suffix: 2_2" OBS-URL: https://build.opensuse.org/request/show/973064 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gflags?expand=0&rev=9
This commit is contained in:
parent
836867902b
commit
66ce346e6b
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 27 09:04:01 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Resolve rpmlint report "libgflags2.x86_64: E:
|
||||
shlib-policy-name-error SONAME: libgflags.so.2.2, expected
|
||||
package suffix: 2_2"
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 9 20:57:54 UTC 2020 - Matthias Eliasson <elimat@opensuse.org>
|
||||
|
||||
|
19
gflags.spec
19
gflags.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gflags
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -26,7 +26,7 @@ Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
Requires: libgflags2 = %{version}
|
||||
Requires: libgflags2_2 = %{version}
|
||||
|
||||
%description
|
||||
The gflags package contains a library that implements commandline
|
||||
@ -35,10 +35,11 @@ increased flexibility, including built-in support for C++ types like
|
||||
string, and the ability to define flags in the source file in which
|
||||
they're used.
|
||||
|
||||
%package -n libgflags2
|
||||
%package -n libgflags2_2
|
||||
Summary: Library for commandline flag processing
|
||||
Conflicts: libgflags2
|
||||
|
||||
%description -n libgflags2
|
||||
%description -n libgflags2_2
|
||||
The gflags package contains a library that implements commandline
|
||||
flags processing. As such, it is a replacement for getopt(). It has
|
||||
increased flexibility, including built-in support for C++ types like
|
||||
@ -47,7 +48,7 @@ they're used.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for gflags library
|
||||
Requires: libgflags2 = %{version}
|
||||
Requires: libgflags2_2 = %{version}
|
||||
|
||||
%description devel
|
||||
This package contains headers and build system meta files.
|
||||
@ -60,7 +61,7 @@ Requires: %{name}-devel = %{version}
|
||||
This package contains the static libraries for gflags.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup
|
||||
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
@ -85,15 +86,15 @@ rm -rf %{buildroot}/home/
|
||||
export LD_LIBRARY_PATH=`pwd`/build/lib
|
||||
%ctest
|
||||
|
||||
%post -n libgflags2 -p /sbin/ldconfig
|
||||
%postun -n libgflags2 -p /sbin/ldconfig
|
||||
%post -n libgflags2_2 -p /sbin/ldconfig
|
||||
%postun -n libgflags2_2 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING.txt
|
||||
%doc AUTHORS.txt ChangeLog.txt README.md
|
||||
%{_bindir}/%{name}_completions.sh
|
||||
|
||||
%files -n libgflags2
|
||||
%files -n libgflags2_2
|
||||
%license COPYING.txt
|
||||
%{_libdir}/libgflags.so.*
|
||||
%{_libdir}/libgflags_nothreads.so.*
|
||||
|
Loading…
Reference in New Issue
Block a user