File python-gpgme.spec of Package python-gpgme

#
# spec file for package python-gpgme
#
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
# 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
# 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/
#


Name:           python-gpgme
Version:        2.0.0
Release:        0
Summary:        Python bindings for gpgme
License:        LGPL-2.1-or-later
# https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgmepy.git;a=summary
URL:            https://gnupg.org/software/gpgme/index.html
Source:         https://www.gnupg.org/ftp/gcrypt/gpgmepy/gpgmepy-%{version}.tar.bz2
Patch0:         python-gpgme-COPY_FILES.patch
Patch1:         python-gpgme-nobetasuffix.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  python-rpm-macros
BuildRequires:  swig
BuildRequires:  pkgconfig(gpg-error) >= 1.47
BuildRequires:  pkgconfig(gpgme) >= 1.7.0
%python_subpackages

%description
This package contains Python bindings for gpgme.

%prep
%autosetup -p1 -n gpgmepy-%{version}

%build
autoreconf -fiv
%configure \
    --with-libgpg-error-prefix=%{_libdir} \
    --with-gpgme-prefix=%{_libdir} \
    --enable-year2038 \
    %{nil}
%make_build

%install
%make_install

%check
%make_build check

%files %{python_files}
%license COPYING COPYING.LESSER
%{python_sitearch}/gpg-%{version}*.egg

%changelog
openSUSE Build Service is sponsored by