2012-10-11 19:54:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package google-glog
|
|
|
|
#
|
2021-06-04 12:39:36 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2024-02-19 17:36:44 +01:00
|
|
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
2012-10-11 19:54:18 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-06-04 12:39:36 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-10-11 19:54:18 +02:00
|
|
|
#
|
|
|
|
|
2013-06-29 20:20:56 +02:00
|
|
|
|
2024-02-19 17:36:44 +01:00
|
|
|
%define sover 2
|
2012-10-11 19:54:18 +02:00
|
|
|
Name: google-glog
|
2024-02-19 17:36:44 +01:00
|
|
|
Version: 0.7.0
|
2013-06-29 20:20:56 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Logging library for C++
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: System/Libraries
|
2021-06-04 12:39:36 +02:00
|
|
|
URL: https://github.com/google/glog
|
|
|
|
Source: https://github.com/google/glog/archive/refs/tags/v%{version}.tar.gz
|
2024-02-19 17:36:44 +01:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: cmake >= 3.22
|
2021-06-04 12:39:36 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%description
|
2016-03-16 11:29:49 +01:00
|
|
|
The glog library implements application-level logging.
|
|
|
|
This library provides logging APIs based on C++-style
|
2012-10-11 19:54:18 +02:00
|
|
|
streams and various helper macros.
|
|
|
|
|
2024-02-19 17:36:44 +01:00
|
|
|
%package -n libglog%{sover}
|
2013-06-29 20:20:56 +02:00
|
|
|
Summary: Logging library for C++
|
2012-10-11 19:54:18 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2024-02-19 17:36:44 +01:00
|
|
|
%description -n libglog%{sover}
|
2016-03-16 11:29:49 +01:00
|
|
|
The glog library implements application-level logging.
|
|
|
|
This library provides logging APIs based on C++-style
|
2012-10-11 19:54:18 +02:00
|
|
|
streams and various helper macros.
|
|
|
|
|
|
|
|
%package -n glog-devel
|
2024-02-19 17:36:44 +01:00
|
|
|
Summary: Header files for libglog%{sover}
|
2012-10-11 19:54:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-02-19 17:36:44 +01:00
|
|
|
Requires: libglog%{sover} = %{version}
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%description -n glog-devel
|
2016-03-16 11:29:49 +01:00
|
|
|
The glog library implements application-level logging.
|
|
|
|
This library provides logging APIs based on C++-style
|
2012-10-11 19:54:18 +02:00
|
|
|
streams and various helper macros.
|
|
|
|
|
2024-02-19 17:36:44 +01:00
|
|
|
This package provides development files for libglog%{sover}.
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%prep
|
2024-02-19 17:36:44 +01:00
|
|
|
%autosetup -p1 -n glog-%{version}
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%build
|
2024-02-19 17:36:44 +01:00
|
|
|
%cmake \
|
|
|
|
-DWITH_PKGCONFIG:BOOL=ON \
|
|
|
|
-DWITH_GFLAGS:BOOL=OFF \
|
|
|
|
-DWITH_GTEST:BOOL=OFF \
|
|
|
|
%{nil}
|
|
|
|
%cmake_build
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%install
|
2021-06-04 12:39:36 +02:00
|
|
|
%cmake_install
|
2016-03-16 11:29:49 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/glog-*
|
2012-10-11 19:54:18 +02:00
|
|
|
|
2024-02-19 17:36:44 +01:00
|
|
|
%ldconfig_scriptlets -n libglog%{sover}
|
2012-10-11 19:54:18 +02:00
|
|
|
|
2024-02-19 17:36:44 +01:00
|
|
|
%files -n libglog%{sover}
|
2021-06-04 12:39:36 +02:00
|
|
|
%license COPYING
|
2024-02-19 17:36:44 +01:00
|
|
|
%{_libdir}/libglog.so.%{sover}
|
|
|
|
%{_libdir}/libglog.so.%{version}
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%files -n glog-devel
|
2021-06-04 12:39:36 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README.rst
|
2012-10-11 19:54:18 +02:00
|
|
|
%{_includedir}/glog/
|
|
|
|
%{_libdir}/libglog.so
|
|
|
|
%{_libdir}/pkgconfig/libglog.pc
|
2021-06-04 12:39:36 +02:00
|
|
|
%{_libdir}/cmake/glog
|
2012-10-11 19:54:18 +02:00
|
|
|
|
|
|
|
%changelog
|