forked from pool/python-dulwich
e6a5140fcf
- update to 0.19.15: * Properly handle files that are just executable for the current user. (Jelmer Vernooij, #734) * Fix handling of stored encoding in ``dulwich.porcelain.get_object_by_path`` on Python 3. (Jelmer Vernooij) * Support the include_trees and rename_detector arguments at the same time when diffing trees. (Jelmer Vernooij) * Strip superfluous <> around email. (monnerat) * Stop checking for ref validity client-side. Users can still call check_wants manually. (Jelmer Vernooij) * Switch over to Google-style docstrings. * Add a ``dulwich.porcelain.active_branch`` function. * Cleanup new directory if clone fails. (Jelmer Vernooij, #733) * Expand "~" in global exclude path. (Jelmer Vernooij) OBS-URL: https://build.opensuse.org/request/show/780380 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dulwich?expand=0&rev=29
93 lines
3.0 KiB
RPMSpec
93 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-dulwich
|
|
#
|
|
# Copyright (c) 2020 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/
|
|
#
|
|
|
|
|
|
%define oldpython python
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-dulwich
|
|
Version: 0.19.15
|
|
Release: 0
|
|
Summary: Pure-Python Git Library
|
|
License: GPL-2.0-or-later OR Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://www.dulwich.io
|
|
Source0: https://files.pythonhosted.org/packages/source/d/dulwich/dulwich-%{version}.tar.gz
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module fastimport}
|
|
BuildRequires: %{python_module geventhttpclient}
|
|
BuildRequires: %{python_module gevent}
|
|
BuildRequires: %{python_module gpg}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
|
BuildRequires: %{python_module urllib3 >= 1.24.1}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python3-Sphinx
|
|
Requires: python-certifi
|
|
Requires: python-urllib3 >= 1.24.1
|
|
Requires(post): update-alternatives
|
|
Requires(preun): update-alternatives
|
|
Recommends: python-fastimport
|
|
Recommends: python-gpg
|
|
Recommends: python-gevent
|
|
Recommends: python-geventhttpclient
|
|
Obsoletes: %{oldpython}-dulwich-doc
|
|
%python_subpackages
|
|
|
|
%description
|
|
Simple Pure-Python implementation of the Git file formats and protocols. Dulwich
|
|
is the place where Mr. and Mrs. Git live in one of the Monty Python sketches.
|
|
|
|
%prep
|
|
%setup -q -n dulwich-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand rm -r %{buildroot}%{$python_sitearch}/dulwich/tests
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
%python_clone -a %{buildroot}%{_bindir}/dulwich
|
|
%python_clone -a %{buildroot}%{_bindir}/dul-receive-pack
|
|
%python_clone -a %{buildroot}%{_bindir}/dul-upload-pack
|
|
|
|
%check
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest dulwich.tests.test_suite
|
|
|
|
%post
|
|
%python_install_alternative dulwich
|
|
%python_install_alternative dul-receive-pack
|
|
%python_install_alternative dul-upload-pack
|
|
|
|
%postun
|
|
%python_uninstall_alternative dulwich
|
|
%python_uninstall_alternative dul-receive-pack
|
|
%python_uninstall_alternative dul-upload-pack
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc NEWS README.rst
|
|
%python_alternative dulwich
|
|
%python_alternative dul-receive-pack
|
|
%python_alternative dul-upload-pack
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|