Accepting request 918457 from home:matwey:branches:devel:libraries:c_c++
Initial version of influxdb-cxx library OBS-URL: https://build.opensuse.org/request/show/918457 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/influxdb-cxx?expand=0&rev=1
This commit is contained in:
103
influxdb-cxx.spec
Normal file
103
influxdb-cxx.spec
Normal file
@@ -0,0 +1,103 @@
|
||||
#
|
||||
# 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
|
||||
BuildRequires: Catch2-devel
|
||||
BuildRequires: cmake >= 3.12
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libboost_system-devel >= 1.57
|
||||
BuildRequires: cmake(trompeloeil)
|
||||
BuildRequires: pkgconfig(libcurl)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
InfluxDB C++ client library.
|
||||
|
||||
%package -n lib%{soname}%{sover}
|
||||
Summary: InfluxDB C++ client library
|
||||
Group: Development/Languages/C and C++
|
||||
|
||||
%description -n lib%{soname}%{sover}
|
||||
InfluxDB C++ client library.
|
||||
|
||||
%package devel
|
||||
Summary: InfluxDB C++ client library
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: lib%{soname}%{sover} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
InfluxDB C++ client library.
|
||||
|
||||
This package contains development files.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%cmake -DINFLUXCXX_SYSTEMTEST:BOOL=OFF
|
||||
%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}
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%{_libdir}/lib%{soname}.so.%{sover}*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%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
|
||||
Reference in New Issue
Block a user