Dirk Mueller
2897b9a787
- Update to version 1.11.1 (2022-11-09) * Fix Linux wheels, downgrade to manylinux 2_24 #1176 * Windows wheels for Python 3.11 #1177 * CI: Use 3.11 final release for testing #1178 - Update to versino 1.11.0 (2022-11-06) * Drop support for Python 3.7 * Update Linux wheels to manylinux 2_28 #1136 * Fix crash in signature representation #1162 * Fix memory leak in Signature #1173 * New optional argument raise_error in Repository.applies(...) #1166 * New notify/progress callbacks for checkout and stash #1167 #1169 * New Repository.remotes.names() #1159 * Now refname argument in RemoteCallbacks.push_update_reference(...) is a string, not bytes #1168 * Add missing newline at end of pygit2/decl/pack.h #1163 - Update to version OBS-URL: https://build.opensuse.org/request/show/1039869 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=72
74 lines
2.2 KiB
RPMSpec
74 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-pygit2
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
# Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-pygit2
|
|
Version: 1.11.1
|
|
Release: 0
|
|
Summary: Python bindings for libgit2
|
|
License: GPL-2.0-only
|
|
URL: https://github.com/libgit2/pygit2
|
|
Source: https://files.pythonhosted.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
|
|
BuildRequires: %{python_module cached-property}
|
|
BuildRequires: %{python_module cffi >= 1.4.0}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: ca-certificates
|
|
BuildRequires: ca-certificates-mozilla
|
|
BuildRequires: fdupes
|
|
BuildRequires: libgit2-devel >= 1.1
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-cached-property
|
|
%requires_eq python-cffi
|
|
%python_subpackages
|
|
|
|
%description
|
|
Bindings for libgit2, a linkable C library for the Git version-control system.
|
|
|
|
%prep
|
|
%autosetup -p1 -n pygit2-%{version}
|
|
|
|
# do not add options to pytest
|
|
rm pytest.ini
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/pygit2/decl/
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
rm -rf pygit2
|
|
# test_no_context_lines failing on big endian
|
|
# https://github.com/libgit2/pygit2/issues/812
|
|
%pytest_arch -k 'not test_no_context_lines'
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc README.rst
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|