Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
384904d1bc
!22 [sync] PR-20: Fix pkgconfig libdir value
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-12-20 06:52:44 +00:00
Funda Wang
6ad6466cdc Fix pkgconfig libdir value
(cherry picked from commit e616e476c79046a32aaaf872edde2508b25c3a0d)
2024-12-20 14:10:28 +08:00
openeuler-ci-bot
b9bef9d21f
!12 [sync] PR-8: update release to 2.2.2-3
From: @openeuler-sync-bot 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-04-02 01:44:11 +00:00
chengzrz
532873bb2e upgrade to 2.2.2-3
Signed-off-by: chengzrz <czrzrichard@gmail.com>
(cherry picked from commit 1778c3f947bbb310bf23b1dfa5b165e86970ceff)
2024-04-02 09:12:07 +08:00
openeuler-ci-bot
82fb701733 !6 remove python2 dependency
From: @xinghe_1
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2020-10-30 17:29:43 +08:00
jinzhimin369
6e4ae52512 remove python2 dependency 2020-10-30 10:43:01 +08:00
openeuler-ci-bot
4d9ced0793 !5 update to 2.2.2
Merge pull request !5 from 靳智敏/master
2020-07-16 11:58:41 +08:00
jinzhimin369
6439118424 update gflags to 2.2.2 2020-07-15 18:51:20 +08:00
openeuler-ci-bot
00a1a4a815 !1 Add gflags yaml file
Merge pull request !1 from 雷炬/master
2020-05-09 10:19:17 +08:00
lei_ju
48a2f1d5b8 Increase gflags yaml 2020-05-07 09:41:54 +08:00
6 changed files with 51 additions and 41 deletions

View File

@ -1,18 +0,0 @@
From: Andreas Schuh <andreas.schuh.84@gmail.com>
Date: Thu, 1 May 2014 20:16:16 +0100
Subject: [PATCH] Set VERSION property of library targets to <major>.<minor>.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 54b5c35..756ddba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,7 +34,7 @@ version_numbers (
PACKAGE_VERSION_PATCH
)
-set (PACKAGE_SOVERSION "${PACKAGE_VERSION_MAJOR}")
+set (PACKAGE_SOVERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}")
# ----------------------------------------------------------------------------
# options

Binary file not shown.

BIN
gflags-2.2.2.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,12 @@
diff -up gflags-2.2.2/cmake/package.pc.in.orig gflags-2.2.2/cmake/package.pc.in
--- gflags-2.2.2/cmake/package.pc.in.orig 2018-11-11 22:21:00.000000000 +0100
+++ gflags-2.2.2/cmake/package.pc.in 2020-03-09 13:54:40.797884193 +0100
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
bindir=${prefix}/@RUNTIME_INSTALL_DIR@
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
+libdir=@LIBRARY_INSTALL_DIR@
includedir=${prefix}/@INCLUDE_INSTALL_DIR@
Name: @PACKAGE_NAME@

View File

@ -1,21 +1,20 @@
%global _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.
Name: gflags
Version: 2.1.2
Release: 9
Version: 2.2.2
Release: 4
Summary: A C++ library for commandline flag processing
License: BSD
License: BSD-3-Clause
URL: https://gflags.github.io/gflags/
Source0: https://github.com/gflags/gflags/archive/v%{version}/gflags-%{version}.tar.gz
Patch0001: gflags-0001-Set-VERSION-property-of-library-targets-to-major.patch
BuildRequires: gcc-c++ python2-setuptools cmake
Patch0: gflags-fix_pkgconfig.patch
BuildRequires: gcc-c++
BuildRequires: cmake >= 3.0.2
%description %_description
%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
@ -28,7 +27,10 @@ This package contains development files for gflags.
%autosetup -n %{name}-%{version} -p1
%build
%cmake -DBUILD_TESTING:BOOL=ON .
%cmake -DBUILD_TESTING:BOOL=ON \
-DINSTALL_HEADERS:BOOL=ON \
-DREGISTER_BUILD_DIR:BOOL=OFF \
-DREGISTER_INSTALL_PREFIX:BOOL=OFF
%make_build
%install
@ -37,24 +39,38 @@ This package contains development files for gflags.
%check
ctest
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS.txt ChangeLog.txt README.md COPYING.txt
%license COPYING.txt
%doc AUTHORS.txt ChangeLog.txt README.md
%{_bindir}/gflags_completions.sh
%{_libdir}/libgflags.so.*
%{_libdir}/libgflags_nothreads.so.*
%files devel
%doc doc/designstyle.css doc/index.html
%{_includedir}/gflags/*.h
%{_libdir}/libgflags.so
%{_libdir}/pkgconfig/gflags.pc
%{_libdir}/libgflags_nothreads.so
%{_libdir}/cmake/gflags
%changelog
* 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

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: gflags/gflags
tag_prefix: "^v"
seperator: "."
tag_prefix: ^v
seperator: .