File rubygem-rugged.spec of Package rubygem-rugged
#
# spec file for package rubygem-rugged
#
# Copyright (c) 2023 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/
#
#
# This file was generated with a gem2rpm.yml and not just plain gem2rpm.
# All sections marked as MANUAL, license headers, summaries and descriptions
# can be maintained in that file. Please consult this file before editing any
# of those fields
#
Name: rubygem-rugged
Version: 1.7.1
Release: 0
%define mod_name rugged
%define mod_full_name %{mod_name}-%{version}
# MANUAL
%bcond_without system_libgit2
BuildRequires: cmake
BuildRequires: pkgconfig
%if %{with system_libgit2}
BuildRequires: libgit2-devel >= 0.27.0
%else
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libssh2)
BuildRequires: pkgconfig(openssl)
BuildRequires: http-parser-devel
%endif
# /MANUAL
BuildRequires: ruby-macros >= 5
BuildRequires: %{rubydevel >= 1.9.3}
BuildRequires: %{rubygem gem2rpm}
Url: https://github.com/libgit2/rugged
Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: rubygem-rugged-rpmlintrc
Source2: gem2rpm.yml
Summary: Rugged is a Ruby binding to the libgit2 linkable library
License: MIT
%description
Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is
for testing and using the libgit2 library in a language that is awesome.
%prep
%build
%install
# MANUAL
%if %{with system_libgit2}
export RUGGED_USE_SYSTEM_LIBRARIES=1
%endif
# /MANUAL
%gem_install \
--doc-files="LICENSE README.md" \
-f
%gem_cleanup
# MANUAL
find %{buildroot} -type d -name build -print0 | xargs -r0 rm -rv
find %{buildroot} -name \*.a -print0 | xargs -r0 rm -v
# /MANUAL
%gem_packages
%changelog