import gflags-2.1.2-7.el8

This commit is contained in:
CentOS Sources 2022-03-29 16:00:31 -04:00 committed by Stepan Oksanichenko
parent cbae4193fa
commit 2bb1661840

View File

@ -1,15 +1,17 @@
Name: gflags
Version: 2.1.2
Release: 6%{?dist}
Release: 7%{?dist}
Epoch: 1
Summary: Library for commandline flag processing
Group: Development/Tools
License: BSD
URL: https://gflags.github.io/gflags/
Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1: gflags-0001-Set-VERSION-property-of-library-targets-to-major.patch
BuildRequires: python-setuptools
Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: gflags-0001-Set-VERSION-property-of-library-targets-to-major.patch
BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: python2-setuptools
%description
The gflags package contains a library that implements commandline
@ -22,28 +24,25 @@ they're used.
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
%description devel
This package contains development files for %{name}.
%prep
%setup -q
%patch1 -p1 -b .lib_version
%autosetup -p1
%build
%cmake -DBUILD_TESTING:BOOL=ON .
make %{?_smp_mflags}
%cmake_build
%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
%cmake_install
%check
ctest
%ctest
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%ldconfig_scriptlets
%files
%license COPYING.txt
@ -61,6 +60,14 @@ ctest
%{_libdir}/cmake/%{name}
%changelog
* Wed Feb 23 2022 Jiri Kucera <jkucera@redhat.com> - 1:2.1.2-7
- Revert rebase back to 2.1.2
Related: #2035143
* Fri Jan 21 2022 Jiri Kucera <jkucera@redhat.com> - 2.2.2-1
- Rebase to gflags v2.2.2
Resolves: #2035143
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild