commit 81f36c4a5dedee43da7f3745f33515edc76fcba8aad2fa56b8b2eb0ba460737f Author: Ismail Dönmez Date: Sat Aug 4 20:47:24 2018 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/gflags-2.2.1.tar.gz b/gflags-2.2.1.tar.gz new file mode 100644 index 0000000..6b8cd71 --- /dev/null +++ b/gflags-2.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae27cdbcd6a2f935baa78e4f21f675649271634c092b1be01469440495609d0e +size 96985 diff --git a/gflags.changes b/gflags.changes new file mode 100644 index 0000000..93eb550 --- /dev/null +++ b/gflags.changes @@ -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 diff --git a/gflags.spec b/gflags.spec new file mode 100644 index 0000000..b339f09 --- /dev/null +++ b/gflags.spec @@ -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