diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-19 07:50:44 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-19 07:50:44 +0000 |
| commit | 3488140358e67934c13c5bd55769edeeaa64b535 (patch) | |
| tree | ffb0f5220813ad3fbc0ef287701f2f60fd51a7ae /gflags.spec | |
| parent | 3eda5faefb00e90c1cb55d12060fb0053765a838 (diff) | |
automatic import of gflags
Diffstat (limited to 'gflags.spec')
| -rw-r--r-- | gflags.spec | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/gflags.spec b/gflags.spec new file mode 100644 index 0000000..35084fc --- /dev/null +++ b/gflags.spec @@ -0,0 +1,69 @@ +# topdir: gflags-2.3.1 (set by --transform during tar creation) +# lang: c (CMake project) +# Precheck resolved BuildRequires: cmake (provides PythonInterp built-in FindModule) + +Name: gflags +Version: 2.3.1 +Release: 1%{?dist} +Summary: Google Commandline Flags - a C++ library for commandline flag processing + +License: BSD-2-Clause +URL: https://github.com/gflags/gflags +Source0: https://github.com/gflags/gflags/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz + +Group: Development/Libraries +Packager: openEuler Builder <builder@openeuler.org> + +BuildRequires: cmake +BuildRequires: gcc-c++ + +%description +The gflags package contains a library that implements commandline flags +processing. As such it's a replacement for getopt(). It has increased +flexibility, defines normal flags and negated flags, and is designed to be +fully threadsafe. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Packager: openEuler Builder <builder@openeuler.org> +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup -n %{name}-%{version} + +%build +%cmake \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_STATIC_LIBS=OFF \ + -DBUILD_TESTING=OFF \ + -DBUILD_NC_TESTS=OFF \ + -DBUILD_CONFIG_TESTS=OFF \ + -DBUILD_PACKAGING=OFF \ + -DINSTALL_HEADERS=ON \ + -DLIB_INSTALL_DIR=%{_libdir} +%cmake_build + +%install +%cmake_install + +%files +%license COPYING.txt +%doc AUTHORS.txt ChangeLog.txt README.md INSTALL.md +%{_libdir}/libgflags.so.* +%{_libdir}/libgflags_nothreads.so.* + +%files devel +%{_includedir}/gflags/ +%{_libdir}/libgflags.so +%{_libdir}/libgflags_nothreads.so +%{_libdir}/cmake/gflags/ +%{_libdir}/pkgconfig/gflags.pc + +%changelog +* Mon Oct 19 2026 openEuler Builder <builder@openeuler.org> - 2.3.1-1 +- Initial package of gflags 2.3.1 |
