A new user interface for you! Read more...

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 http://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:        0.28.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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
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:        series
Source3:        gem2rpm.yml
# MANUAL
Patch0:  allow_newer_libgit.patch
# /MANUAL
Summary:        Rugged is a Ruby binding to the libgit2 linkable library
License:        MIT
Group:          Development/Languages/Ruby

%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
%gem_unpack
%patch0 -p1
find -type f -print0 | xargs -0 touch -r %{S:0}
%gem_build

%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