2021-09-23 15:56:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package influxdb-cxx
|
|
|
|
#
|
|
|
|
# Copyright (c) 2021 SUSE LLC
|
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define soname InfluxDB
|
|
|
|
%define sover 0
|
|
|
|
|
|
|
|
Name: influxdb-cxx
|
|
|
|
Version: 0.6.7
|
|
|
|
Release: 0
|
|
|
|
Summary: InfluxDB C++ client library
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
URL: https://github.com/offa/influxdb-cxx
|
|
|
|
Source: https://github.com/offa/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch0: 0001-Add-trompeloeil-trompeloeil-target-if-not-available-.patch
|
|
|
|
Patch1: 0001-Allow-setting-CMAKE_INSTALL_LIBDIR-from-command-line.patch
|
|
|
|
Patch2: 0001-Add-soversion-for-InfluxDB.patch
|
2021-09-27 13:15:42 +00:00
|
|
|
Patch3: 0001-Missing-boost-libraries-added-100.patch
|
2021-09-23 15:56:45 +00:00
|
|
|
BuildRequires: Catch2-devel
|
|
|
|
BuildRequires: cmake >= 3.12
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libboost_system-devel >= 1.57
|
|
|
|
BuildRequires: cmake(trompeloeil)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
|
|
|
|
|
|
|
%description
|
|
|
|
InfluxDB C++ client library.
|
|
|
|
|
|
|
|
%package -n lib%{soname}%{sover}
|
|
|
|
Summary: InfluxDB C++ client library
|
2021-09-23 19:31:52 +00:00
|
|
|
Group: System/Libraries
|
2021-09-23 15:56:45 +00:00
|
|
|
|
|
|
|
%description -n lib%{soname}%{sover}
|
|
|
|
InfluxDB C++ client library.
|
|
|
|
|
|
|
|
%package devel
|
2021-09-23 19:31:52 +00:00
|
|
|
Summary: Headers for the InfluxDB C++ client library
|
2021-09-23 15:56:45 +00:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: lib%{soname}%{sover} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
2021-09-23 19:31:52 +00:00
|
|
|
Headers for the InfluxDB C++ client library.
|
2021-09-23 15:56:45 +00:00
|
|
|
|
|
|
|
%prep
|
2021-09-23 19:31:52 +00:00
|
|
|
%autosetup -p1
|
2021-09-23 15:56:45 +00:00
|
|
|
|
|
|
|
%build
|
2021-09-27 13:15:42 +00:00
|
|
|
%cmake \
|
|
|
|
%if 0%{?suse_version} < 1550
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=OFF \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATHS:BOOL=ON \
|
|
|
|
%endif
|
|
|
|
-DINFLUXCXX_SYSTEMTEST:BOOL=OFF
|
2021-09-23 15:56:45 +00:00
|
|
|
%cmake_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%check
|
|
|
|
%ctest -- -E BoostSupportTest
|
|
|
|
# BoostSupportTest requires running DNS resolver
|
|
|
|
|
|
|
|
%post -n lib%{soname}%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{soname}%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n lib%{soname}%{sover}
|
|
|
|
%license LICENSE
|
|
|
|
%{_libdir}/lib%{soname}.so.%{sover}*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md CONTRIBUTING.md
|
|
|
|
%{_includedir}/InfluxDB.h
|
|
|
|
%{_includedir}/InfluxDBException.h
|
|
|
|
%{_includedir}/InfluxDBFactory.h
|
|
|
|
%{_includedir}/Point.h
|
|
|
|
%{_includedir}/Transport.h
|
|
|
|
%{_includedir}/influxdb_export.h
|
|
|
|
%{_libdir}/lib%{soname}.so
|
|
|
|
%dir %{_libdir}/cmake/InfluxDB
|
|
|
|
%{_libdir}/cmake/InfluxDB/InfluxDBConfig.cmake
|
|
|
|
%{_libdir}/cmake/InfluxDB/InfluxDBConfigVersion.cmake
|
|
|
|
%{_libdir}/cmake/InfluxDB/InfluxDBTargets-relwithdebinfo.cmake
|
|
|
|
%{_libdir}/cmake/InfluxDB/InfluxDBTargets.cmake
|
|
|
|
|
|
|
|
%changelog
|