代码拉取完成,页面将自动刷新
Name: gflags
Version: 2.2.2
Release: 5
Summary: A C++ library for commandline flag processing
License: BSD-3-Clause
URL: https://gflags.github.io/gflags/
Source0: https://github.com/gflags/gflags/archive/v%{version}/gflags-%{version}.tar.gz
Patch0: gflags-fix_pkgconfig.patch
Patch1: backport-gflags-cmake-4.patch
Patch2: gflags-2.2.2-use-GNUInstallDirs.patch
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.5
%description
The gflags package contains a library that implements commandline
flags processing. As such it's a replacement for getopt(). It has
increased flexibility, including built-in support for C++ types like
string, and the ability to define flags in the source file in which
they are used.
%package devel
Summary: Development files for gflags
Requires: gflags = %{version}-%{release}
%description devel
This package contains development files for gflags.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%cmake -DBUILD_TESTING:BOOL=ON \
-DINSTALL_HEADERS:BOOL=ON \
-DREGISTER_BUILD_DIR:BOOL=OFF \
-DREGISTER_INSTALL_PREFIX:BOOL=OFF
%cmake_build
%install
%cmake_install
%check
%ctest
%files
%license COPYING.txt
%doc AUTHORS.txt ChangeLog.txt README.md
%{_bindir}/gflags_completions.sh
%{_libdir}/libgflags.so.*
%{_libdir}/libgflags_nothreads.so.*
%files devel
%{_includedir}/gflags/*.h
%{_libdir}/libgflags.so
%{_libdir}/pkgconfig/gflags.pc
%{_libdir}/libgflags_nothreads.so
%{_libdir}/cmake/gflags
%changelog
* Fri Aug 22 2025 Funda Wang <fundawang@yeah.net> - 2.2.2-5
- fix build with cmake 4
* Wed Oct 16 2024 Funda Wang <fundawang@yeah.net> - 2.2.2-4
- Fix pkgconfig libdir value
* Sat Oct 29 2022 chengzeruizhi <chengzeruizhi@huawei.com> - 2.2.2-3
- Type:requirement
- ID:NA
- SUG:NA
- DES: update gflags to 2.2.2-3
* Fri Oct 30 2020 xinghe <xinghe1@huawei.com> - 2.2.2-2
- remove python2 dependency
* Wed Jul 15 2020 jinzhimin <jinzhimin2@huawei.com> - 2.2.2-1
- Type:requirement
- ID:NA
- SUG:NA
- DES: update gflags to 2.2.2
* Fri Nov 15 2019 sunguoshuai <sunguoshuai@huawei.com> - 2.1.2-9
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。