-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Fedora and openSUSE
- Loading branch information
Showing
5 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
glibc-libdl-1 | ||
Memcheck:Leak | ||
match-leak-kinds: reachable | ||
fun:malloc | ||
... | ||
fun:dl_open_worker | ||
fun:_dl_catch_exception | ||
... | ||
} | ||
{ | ||
glibc-libdl-2 | ||
Memcheck:Leak | ||
match-leak-kinds: reachable | ||
fun:calloc | ||
... | ||
fun:dl_open_worker | ||
... | ||
fun:_dl_catch_exception | ||
... | ||
} | ||
{ | ||
glibc-libdl-3 | ||
Memcheck:Leak | ||
match-leak-kinds: reachable | ||
fun:malloc | ||
... | ||
fun:dl_open_worker | ||
... | ||
fun:_dl_catch_error | ||
... | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
%if 0%{?suse_version} | ||
%global license_dir %{_datadir}/doc | ||
%else | ||
%global license_dir %{_docdir} | ||
%endif | ||
|
||
Name: couchbase-cxx-client | ||
Summary: Couchbase C++ SDK | ||
Version: @COUCHBASE_CXX_CLIENT_PACKAGE_VERSION@ | ||
|
@@ -6,7 +12,11 @@ Vendor: Couchbase, Inc. | |
Packager: Couchbase SDK Team <[email protected]> | ||
License: ASL 2.0 | ||
URL: https://docs.couchbase.com/cxx-sdk/current/hello-world/overview.html | ||
%if 0%{?suse_version} == 1500 | ||
BuildRequires: gcc13, gcc13-c++ | ||
%else | ||
BuildRequires: gcc, gcc-c++ | ||
%endif | ||
BuildRequires: cmake >= 3.19 | ||
Source0: @[email protected] | ||
|
||
|
@@ -36,6 +46,10 @@ Development files for the Couchbase C++ SDK. | |
%cmake \ | ||
%if 0%{?rhel} == 8 || 0%{?rocky} == 8 || 0%{?ol} == 8 | ||
-S "." -B "redhat-linux-build" \ | ||
%endif | ||
%if 0%{?suse_version} == 1500 | ||
-DCMAKE_C_COMPILER=gcc-13 \ | ||
-DCMAKE_CXX_COMPILER=g++-13 \ | ||
%endif | ||
-DBUILD_SHARED_LIBS=OFF \ | ||
-DCOUCHBASE_CXX_CLIENT_INSTALL=ON \ | ||
|
@@ -50,6 +64,9 @@ Development files for the Couchbase C++ SDK. | |
%if 0%{?rhel} == 8 || 0%{?rocky} == 8 || 0%{?ol} == 8 | ||
/usr/bin/cmake --build "redhat-linux-build" -j${RPM_BUILD_NCPUS} --verbose | ||
%else | ||
%if 0%{?suse_version} == 1500 | ||
cd build | ||
%endif | ||
%cmake_build | ||
%endif | ||
|
||
|
@@ -59,11 +76,17 @@ DESTDIR="%{buildroot}" /usr/bin/cmake --install "redhat-linux-build" | |
%else | ||
%cmake_install | ||
%endif | ||
%if 0%{?suse_version} == 1500 | ||
%{__mkdir_p} %{buildroot}%{license_dir}/tao/json %{buildroot}%{_libdir}/cmake | ||
%{__mv} %{buildroot}%{license_dir}/taocpp-json/tao/json/LICENSE %{buildroot}%{license_dir}/tao/json/LICENSE | ||
%{__mv} %{buildroot}%{_datadir}/taocpp-json/cmake %{buildroot}%{_libdir}/cmake/taocpp-json | ||
%{__mv} %{buildroot}%{_datadir}/pegtl/cmake %{buildroot}%{_libdir}/cmake/pegtl | ||
%endif | ||
|
||
%files | ||
%license %{_docdir}/couchbase_cxx_client/LICENSE.txt | ||
%license %{_docdir}/tao/pegtl/LICENSE | ||
%license %{_docdir}/tao/json/LICENSE | ||
%license %{license_dir}/couchbase_cxx_client/LICENSE.txt | ||
%license %{license_dir}/tao/pegtl/LICENSE | ||
%license %{license_dir}/tao/json/LICENSE | ||
%{_libdir}/libcouchbase_cxx_client.so.* | ||
|
||
%files tools | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters