Accepting request 974324 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/974324 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gflags?expand=0&rev=4
This commit is contained in:
commit
560749f474
@ -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>
|
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
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
Requires: libgflags2 = %{version}
|
Requires: libgflags2_2 = %{version}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The gflags package contains a library that implements commandline
|
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
|
string, and the ability to define flags in the source file in which
|
||||||
they're used.
|
they're used.
|
||||||
|
|
||||||
%package -n libgflags2
|
%package -n libgflags2_2
|
||||||
Summary: Library for commandline flag processing
|
Summary: Library for commandline flag processing
|
||||||
|
Conflicts: libgflags2
|
||||||
|
|
||||||
%description -n libgflags2
|
%description -n libgflags2_2
|
||||||
The gflags package contains a library that implements commandline
|
The gflags package contains a library that implements commandline
|
||||||
flags processing. As such, it is a replacement for getopt(). It has
|
flags processing. As such, it is a replacement for getopt(). It has
|
||||||
increased flexibility, including built-in support for C++ types like
|
increased flexibility, including built-in support for C++ types like
|
||||||
@ -47,7 +48,7 @@ they're used.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for gflags library
|
Summary: Development files for gflags library
|
||||||
Requires: libgflags2 = %{version}
|
Requires: libgflags2_2 = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains headers and build system meta files.
|
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.
|
This package contains the static libraries for gflags.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||||
@ -85,15 +86,15 @@ rm -rf %{buildroot}/home/
|
|||||||
export LD_LIBRARY_PATH=`pwd`/build/lib
|
export LD_LIBRARY_PATH=`pwd`/build/lib
|
||||||
%ctest
|
%ctest
|
||||||
|
|
||||||
%post -n libgflags2 -p /sbin/ldconfig
|
%post -n libgflags2_2 -p /sbin/ldconfig
|
||||||
%postun -n libgflags2 -p /sbin/ldconfig
|
%postun -n libgflags2_2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
%doc AUTHORS.txt ChangeLog.txt README.md
|
%doc AUTHORS.txt ChangeLog.txt README.md
|
||||||
%{_bindir}/%{name}_completions.sh
|
%{_bindir}/%{name}_completions.sh
|
||||||
|
|
||||||
%files -n libgflags2
|
%files -n libgflags2_2
|
||||||
%license COPYING.txt
|
%license COPYING.txt
|
||||||
%{_libdir}/libgflags.so.*
|
%{_libdir}/libgflags.so.*
|
||||||
%{_libdir}/libgflags_nothreads.so.*
|
%{_libdir}/libgflags_nothreads.so.*
|
||||||
|
Loading…
Reference in New Issue
Block a user