File rubygem-rugged.spec of Package rubygem-rugged

# spec file for package rubygem-rugged
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

# 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
Release:        0
%define mod_name rugged
%define mod_full_name %{mod_name}-%{version}
%bcond_without   system_libgit2
BuildRequires:   cmake
BuildRequires:   pkgconfig
%if %{with system_libgit2}
BuildRequires:   libgit2-devel >= 0.27.0
BuildRequires:   pkgconfig(libcurl)
BuildRequires:   pkgconfig(libssh2)
BuildRequires:   pkgconfig(openssl)
BuildRequires:   http-parser-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  ruby-macros >= 5
BuildRequires:  %{rubydevel >= 1.9.3}
BuildRequires:  %{rubygem gem2rpm}
Source1:        rubygem-rugged-rpmlintrc
Source2:        series
Source3:        gem2rpm.yml
Patch0:  allow_newer_libgit.patch
Summary:        Rugged is a Ruby binding to the libgit2 linkable library
License:        MIT
Group:          Development/Languages/Ruby

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.

%patch0 -p1
find -type f -print0 | xargs -0 touch -r %{S:0}


%if %{with system_libgit2}
%gem_install \
  --doc-files="LICENSE" \
find %{buildroot} -type d -name build -print0 | xargs -r0 rm -rv
find %{buildroot}         -name \*.a  -print0 | xargs -r0 rm -v