diff --git a/gflags-0001-Set-VERSION-property-of-library-targets-to-major.patch b/gflags-0001-Set-VERSION-property-of-library-targets-to-major.patch deleted file mode 100644 index 5f72183..0000000 --- a/gflags-0001-Set-VERSION-property-of-library-targets-to-major.patch +++ /dev/null @@ -1,18 +0,0 @@ -From: Andreas Schuh -Date: Thu, 1 May 2014 20:16:16 +0100 -Subject: [PATCH] Set VERSION property of library targets to .. - - -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 diff --git a/gflags-2.1.2.tar.gz b/gflags-2.1.2.tar.gz deleted file mode 100644 index 6810db9..0000000 Binary files a/gflags-2.1.2.tar.gz and /dev/null differ diff --git a/gflags-2.2.2.tar.gz b/gflags-2.2.2.tar.gz new file mode 100644 index 0000000..b63935a Binary files /dev/null and b/gflags-2.2.2.tar.gz differ diff --git a/gflags.spec b/gflags.spec index 0e33d23..c4506a0 100644 --- a/gflags.spec +++ b/gflags.spec @@ -6,13 +6,12 @@ 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: 1 Summary: A C++ library for commandline flag processing License: BSD 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 %description %_description @@ -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 @@ -49,12 +51,18 @@ ctest %{_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 Jul 15 2020 jinzhimin - 2.2.2-1 +- Type:requirement +- ID:NA +- SUG:NA +- DES: update gflags to 2.2.2 + * Fri Nov 15 2019 sunguoshuai - 2.1.2-9 - Package init