File rubygem-gpgme.spec of Package failed_rubygem-gpgme
Name: rubygem-gpgme
Version: 2.0.24
Release: 1.1
Summary: Ruby bindings for the GPGME crypto library
License: LGPL-2.1-or-later
URL: https://github.com/ruby-gpgme/ruby-gpgme
Source0: gpgme-2.0.24.gem
BuildRequires: ruby-devel
BuildRequires: rubygem(gem2rpm)
BuildRequires: rpm-build
BuildRequires: gcc
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: gpgme-devel
%description
Ruby bindings for the GPGME crypto library.
%prep
# gem2rpm generated spec; nothing to unpack
%build
# Use gem2rpm to generate build tree and let gem_install.sh handle native extension build
%{__gem2rpm} --local -t /usr/lib/rpm/gem_packages.template --config=./rpmbuild/SOURCES/gem2rpm.yml %{SOURCE0}
%install
# Explicitly tell the gem to NOT use the system gpgme libraries so the gem's bundled port sources
# are used. This avoids mismatches between the gem's expected API and the system gpgme headers.
export RUBY_GPGME_USE_SYSTEM_LIBRARIES=0
%{__sh} -e %{__rpmbuildroot}/usr/lib/rpm/gem_install.sh --default-gem gpgme-2.0.24.gem --gem-name=gpgme --gem-version=2.0.24 --build-root %{buildroot} -f
# Standard fhs layout is handled by gem_install.sh / gem2rpm helpers
%files
%license LICENSE.txt
%doc README.md
%{ruby_sitelibdir}/*
%changelog
* Fri Aug 08 2025 Packager <packager@example.org> - 2.0.24-1.1
- Build: prefer bundled gpgme sources for consistent native API (RUBY_GPGME_USE_SYSTEM_LIBRARIES=0)
- Release bump to 1.1