2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pygit2
|
|
|
|
#
|
2023-03-21 21:35:02 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-03-23 12:27:24 +01:00
|
|
|
# Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>.
|
2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# 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.
|
2012-04-24 11:14:51 +02:00
|
|
|
|
2019-03-23 12:40:49 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-05-06 10:08:09 +02:00
|
|
|
%define skip_python2 1
|
2011-12-09 13:10:44 +01:00
|
|
|
Name: python-pygit2
|
2023-07-25 16:59:33 +02:00
|
|
|
Version: 1.12.2
|
2011-02-02 13:49:39 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for libgit2
|
2018-05-17 14:13:49 +02:00
|
|
|
License: GPL-2.0-only
|
|
|
|
URL: https://github.com/libgit2/pygit2
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
|
2023-07-25 16:59:33 +02:00
|
|
|
# PATCH-FIX-UPSTREAM support-libgit2-1.7.patch
|
|
|
|
Patch0: support-libgit2-1.7.patch
|
2020-05-06 10:08:09 +02:00
|
|
|
BuildRequires: %{python_module cached-property}
|
|
|
|
BuildRequires: %{python_module cffi >= 1.4.0}
|
2017-04-08 21:04:55 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2019-03-23 12:27:24 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-08 21:04:55 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-03-23 12:27:24 +01:00
|
|
|
BuildRequires: ca-certificates
|
|
|
|
BuildRequires: ca-certificates-mozilla
|
2018-05-17 14:13:49 +02:00
|
|
|
BuildRequires: fdupes
|
2020-11-02 16:43:22 +01:00
|
|
|
BuildRequires: libgit2-devel >= 1.1
|
2018-05-17 14:13:49 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-05-06 10:08:09 +02:00
|
|
|
Requires: python-cached-property
|
2018-05-17 14:13:49 +02:00
|
|
|
%requires_eq python-cffi
|
2017-04-08 21:04:55 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2011-02-02 13:49:39 +01:00
|
|
|
%description
|
|
|
|
Bindings for libgit2, a linkable C library for the Git version-control system.
|
|
|
|
|
|
|
|
%prep
|
2021-10-20 11:10:02 +02:00
|
|
|
%autosetup -p1 -n pygit2-%{version}
|
|
|
|
|
2019-03-23 12:40:49 +01:00
|
|
|
# do not add options to pytest
|
|
|
|
rm pytest.ini
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-08 21:04:55 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%python_build
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-08 21:04:55 +02:00
|
|
|
%python_install
|
2019-05-15 20:35:11 +02:00
|
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/pygit2/decl/
|
2018-05-17 14:13:49 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2012-12-18 11:57:33 +01:00
|
|
|
%check
|
2019-09-12 14:59:59 +02:00
|
|
|
rm -rf pygit2
|
2019-12-03 10:46:47 +01:00
|
|
|
# test_no_context_lines failing on big endian
|
|
|
|
# https://github.com/libgit2/pygit2/issues/812
|
|
|
|
%pytest_arch -k 'not test_no_context_lines'
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2017-04-08 21:04:55 +02:00
|
|
|
%files %{python_files}
|
2018-05-17 14:13:49 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst
|
2023-03-21 21:35:02 +01:00
|
|
|
%{python_sitearch}/pygit2
|
|
|
|
%{python_sitearch}/pygit2-%{version}*-info
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%changelog
|