Accepting request 627467 from graphics

Suggested that devel:libraries:c_c++ would be a more appropriate home for this package.

See:
https://build.opensuse.org/request/show/626965

OBS-URL: https://build.opensuse.org/request/show/627467
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gflags?expand=0&rev=1
This commit is contained in:
Ismail Dönmez 2018-08-04 20:47:24 +00:00 committed by Git OBS Bridge
commit 81f36c4a5d
5 changed files with 172 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
gflags-2.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae27cdbcd6a2f935baa78e4f21f675649271634c092b1be01469440495609d0e
size 96985

25
gflags.changes Normal file
View File

@ -0,0 +1,25 @@
-------------------------------------------------------------------
Tue Jul 11 17:41:43 UTC 2017 - aloisio@gmx.com
- Update to version 2.2.1
* Link to online documentation in README
* Merged 194: Include utils by file instead of CMAKE_MODULE_PATH
search
* Merged 195: Remove unused program_name variable
* Merged 196: Enable language C for older CMake versions when
needed
* Merged 202: Changed include directory in bazel build
* Merged 207: Mark single argument constructors in mutex.h as
explicit
* Merged 215: Fix static initialization order fiasco caused by
global registry lock
* Merged 216: Fix use of ARGC in CMake macros
* Merged 222: Static code analyzer error regarding strncmp with
empty kRootDir
- Renamed source file
-------------------------------------------------------------------
Tue Mar 21 06:15:05 UTC 2017 - miukumac@outlook.com
- Initial 2.2.0 release

120
gflags.spec Normal file
View File

@ -0,0 +1,120 @@
#
# spec file for package gflags
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gflags
Version: 2.2.1
Release: 0
Summary: Library for commandline flag processing
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: https://github.com/gflags/gflags
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
Requires: libgflags2 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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're used.
%package -n libgflags2
Summary: Library for commandline flag processing
%description -n libgflags2
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're used.
%package devel
Summary: Include Files and Libraries mandatory for Development
Requires: libgflags2 = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require the provided includes and
libraries.
%package devel-static
Summary: Include Files and Libraries mandatory for Development
Requires: %{name}-devel = %{version}
%description devel-static
This package contains all necessary include files and libraries needed
to develop applications that require the provided includes and
libraries.
%prep
%setup -q
%build
CFLAGS="%{optflags} -pthread"
CXXFLAGS="%{optflags} -pthread"
export CFLAGS CXXFLAGS
%cmake \
-DBUILD_STATIC_LIBS:BOOL=ON \
-DBUILD_TESTING:BOOL=ON \
-DCMAKE_BUILD_TYPE=Release
make %{?_smp_mflags} VERBOSE=1
%install
%cmake_install
rm -rf %{buildroot}/home/
%check
cd build
export LD_LIBRARY_PATH=`pwd`/lib
ctest
%post -n libgflags2 -p /sbin/ldconfig
%postun -n libgflags2 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS.txt COPYING.txt ChangeLog.txt README.md
%{_bindir}/%{name}_completions.sh
%files -n libgflags2
%defattr(-,root,root)
%doc COPYING.txt
%{_libdir}/libgflags.so.*
%{_libdir}/libgflags_nothreads.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/libgflags.so
%{_libdir}/libgflags_nothreads.so
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%files devel-static
%defattr(-,root,root)
%{_libdir}/libgflags.a
%{_libdir}/libgflags_nothreads.a
%changelog