2 Commits

Author SHA256 Message Date
659fa027c9 Make 15.x build succeed 2025-07-16 18:51:37 +02:00
2259086c58 Enable multipython build 2025-07-15 11:00:11 +02:00
2 changed files with 71 additions and 9 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Jul 16 16:50:21 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Make 15.x build succeed
-------------------------------------------------------------------
Tue Jul 15 08:05:06 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Enable multipython build
-------------------------------------------------------------------
Mon Sep 4 18:40:21 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libexmdbpp
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,9 +27,21 @@ URL: https://grommunio.com/
Source: %name-%version.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: python3
BuildRequires: python3-pybind11-devel
%if 0%{?rhel} || 0%{?fedora_version}
BuildRequires: pkgconfig(python3)
BuildRequires: pybind11-devel
BuildRequires: python3
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500
%define skip_python2 1
%{?sle15allpythons}
BuildRequires: python3-rpm-macros
BuildRequires: %{python_module base}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pybind11-devel}
%define python_subpackage_only 1
%python_subpackages
%endif
%description
The library provides a C++ API and implementation for constructing
@@ -43,17 +55,31 @@ Group: System/Libraries
The library provides a C++ API and implementation for constructing
exmdb protocol requests and responses and conversing with a server.
%package devel
%package -n libexmdbpp-devel
Summary: Development files for libexmdbpp
Group: System/Libraries
Requires: %lname = %version-%release
%description devel
%description -n libexmdbpp-devel
The library provides a C++ API and implementation for constructing
exmdb protocol requests and responses and conversing with a server.
This subpackage contains the header files for the library.
%if 0%{?suse_version}
%package -n python-pyexmdb
Summary: Python bindings for libexmdbpp
Group: Development/Languages/Python
Requires: %lname = %version-%release
%description -n python-pyexmdb
The library provides a C++ API and implementation for constructing
exmdb protocol requests and responses and conversing with a server.
This subpackage contains bindings for Python.
%endif
%if 0%{?rhel} || 0%{?fedora}
%package -n python3-pyexmdb
Summary: Python bindings for libexmdbpp
Group: Development/Languages/Python
@@ -64,32 +90,58 @@ The library provides a C++ API and implementation for constructing
exmdb protocol requests and responses and conversing with a server.
This subpackage contains bindings for Python.
%endif
%prep
%autosetup -p1
%build
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500
base="$PWD"
%{python_expand #
%define __builddir b%$python_bin_suffix
%cmake -DPython3_EXECUTABLE=%{_bindir}/python%$python_bin_suffix
%cmake_build
cd "$base"
}
%else
%cmake
%cmake_build
%endif
%install
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500
base="$PWD"
%{python_expand #
%define __builddir b%$python_bin_suffix
%cmake_install
cd "$base"
}
%else
%cmake_install
# Stop check-rpaths from complaining about standard runpaths (fedora).
export QA_RPATHS=0x0001
%endif
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%ldconfig_scriptlets -n %lname
%files -n %lname
%_libdir/libexmdbpp.so.0
%license LICENSE.txt
%files devel
%files -n libexmdbpp-devel
%_includedir/exmdbpp/
%_libdir/libexmdbpp.so
%_datadir/exmdbpp/
%if 0%{?suse_version}
%files %{python_files pyexmdb}
%python_sitearch/*
%endif
%if 0%{?rhel} || 0%{?fedora}
%files -n python3-pyexmdb
%python3_sitearch/pyexm*
%python3_sitearch/*
%endif
%changelog