2011-06-07 14:02:16 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-dulwich
|
|
|
|
#
|
2023-01-19 14:54:30 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2011-06-07 14:02:16 +02: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.
|
2011-07-19 15:01:44 +02:00
|
|
|
|
2019-03-29 20:35:12 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-06-07 14:02:16 +02:00
|
|
|
#
|
|
|
|
|
2011-07-19 15:01:44 +02:00
|
|
|
|
2022-09-07 02:05:45 +02:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
%bcond_without test
|
|
|
|
%else
|
|
|
|
%bcond_with test
|
|
|
|
%endif
|
|
|
|
|
2023-05-08 10:19:15 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2019-03-29 20:35:12 +01:00
|
|
|
%define oldpython python
|
2011-07-19 15:01:36 +02:00
|
|
|
Name: python-dulwich
|
2023-12-06 10:36:20 +01:00
|
|
|
Version: 0.21.7
|
2011-09-26 10:14:21 +02:00
|
|
|
Release: 0
|
2011-06-07 14:02:16 +02:00
|
|
|
Summary: Pure-Python Git Library
|
2021-04-26 16:38:47 +02:00
|
|
|
License: Apache-2.0 OR GPL-2.0-or-later
|
2011-06-07 14:02:16 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-03-29 20:35:12 +01:00
|
|
|
URL: https://www.dulwich.io
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/d/dulwich/dulwich-%{version}.tar.gz
|
2017-08-13 14:58:03 +02:00
|
|
|
BuildRequires: %{python_module devel}
|
2022-09-07 02:05:45 +02:00
|
|
|
BuildRequires: %{python_module setuptools >= 17.1}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Sphinx}
|
2019-03-29 20:35:12 +01:00
|
|
|
BuildRequires: %{python_module fastimport}
|
|
|
|
BuildRequires: %{python_module geventhttpclient}
|
|
|
|
BuildRequires: %{python_module gevent}
|
|
|
|
BuildRequires: %{python_module gpg}
|
2023-02-01 21:58:11 +01:00
|
|
|
BuildRequires: %{python_module typing_extensions if %python-base < 3.8}
|
2019-03-29 20:35:12 +01:00
|
|
|
BuildRequires: %{python_module urllib3 >= 1.24.1}
|
2020-12-16 10:59:32 +01:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
BuildRequires: python-mock
|
|
|
|
%endif
|
2022-09-07 02:05:45 +02:00
|
|
|
%endif
|
2019-03-29 20:35:12 +01:00
|
|
|
Requires: python-urllib3 >= 1.24.1
|
2023-02-01 21:58:11 +01:00
|
|
|
%if %{python_version_nodots} < 38
|
|
|
|
Requires: python-typing_extensions
|
|
|
|
%endif
|
2016-01-20 09:54:21 +01:00
|
|
|
Requires(post): update-alternatives
|
2021-04-26 16:38:47 +02:00
|
|
|
Requires(preun):update-alternatives
|
2019-05-03 22:34:57 +02:00
|
|
|
Recommends: python-fastimport
|
2021-04-26 16:38:47 +02:00
|
|
|
Recommends: python-gpg
|
2020-11-13 18:53:46 +01:00
|
|
|
Obsoletes: %{oldpython}-dulwich-doc < 0.20.5
|
2017-08-13 14:58:03 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2011-06-07 14:02:16 +02:00
|
|
|
%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
|
2020-12-16 10:59:32 +01:00
|
|
|
%autosetup -p1 -n dulwich-%{version}
|
2011-06-07 14:02:16 +02:00
|
|
|
|
|
|
|
%build
|
2017-08-13 14:58:03 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2011-06-07 14:02:16 +02:00
|
|
|
|
|
|
|
%install
|
2017-08-13 14:58:03 +02:00
|
|
|
%python_install
|
2020-04-04 12:19:28 +02:00
|
|
|
# Do not remove tests as they are reused by other packages
|
|
|
|
#%%python_expand rm -r %{buildroot}%{$python_sitearch}/dulwich/tests
|
2019-03-29 20:35:12 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2017-08-13 14:58:03 +02:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dulwich
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dul-receive-pack
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/dul-upload-pack
|
2019-03-29 20:35:12 +01:00
|
|
|
|
|
|
|
%check
|
2022-09-07 02:05:45 +02:00
|
|
|
%if %{with test}
|
2019-03-29 20:35:12 +01:00
|
|
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest dulwich.tests.test_suite
|
2022-09-07 02:05:45 +02:00
|
|
|
%endif
|
2011-06-07 14:02:16 +02:00
|
|
|
|
2016-01-20 09:54:21 +01:00
|
|
|
%post
|
2017-08-13 14:58:03 +02:00
|
|
|
%python_install_alternative dulwich
|
|
|
|
%python_install_alternative dul-receive-pack
|
|
|
|
%python_install_alternative dul-upload-pack
|
2016-01-20 09:54:21 +01:00
|
|
|
|
2017-08-13 14:58:03 +02:00
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative dulwich
|
|
|
|
%python_uninstall_alternative dul-receive-pack
|
|
|
|
%python_uninstall_alternative dul-upload-pack
|
2016-01-20 09:54:21 +01:00
|
|
|
|
2017-08-13 14:58:03 +02:00
|
|
|
%files %{python_files}
|
2019-03-29 20:35:12 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS README.rst
|
2017-08-13 14:58:03 +02:00
|
|
|
%python_alternative dulwich
|
|
|
|
%python_alternative dul-receive-pack
|
|
|
|
%python_alternative dul-upload-pack
|
Accepting request 142565 from devel:languages:python
- Update to version 0.8.6:
+ dulwich.__init__ no longer imports client, protocol, repo and
server modules. (Jelmer Vernooij)
+ ConfigDict now behaves more like a dictionary.
(Adam 'Cezar' Jenkins, issue #58)
+ HTTPGitApplication now takes an optional
fallback_app argument. (Jonas Haag, issue #67)
+ Support for large pack index files. (Jameson Nash)
+ Make index entry tests a little bit less strict, to cope with
slightly different behaviour on various platforms.
(Jelmer Vernooij)
+ setup.py test (available when setuptools is installed) now
runs all tests, not just the basic unit tests.
(Jelmer Vernooij)
+ Commit._deserialize now actually deserializes the current state rather than
the previous one. (Yifan Zhang, issue #59)
+ Handle None elements in lists of TreeChange objects. (Alex Holmes)
+ Support cloning repositories without HEAD set.
(D-Key, Jelmer Vernooij, issue #69)
+ Support MemoryRepo.get_config. (Jelmer Vernooij)
+ In get_transport_and_path, pass extra keyword arguments on to
HttpGitClient. (Jelmer Vernooij)
- Changes from version 0.8.5:
+ Avoid use of 'with' in dulwich.index. (Jelmer Vernooij)
+ Be a little bit strict about OS behaviour in index tests.
Should fix the tests on Debian GNU/kFreeBSD. (Jelmer Vernooij)
- See NEWS file for more changes
OBS-URL: https://build.opensuse.org/request/show/142565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dulwich?expand=0&rev=9
2012-11-25 13:28:42 +01:00
|
|
|
%{python_sitearch}/*
|
2011-06-07 14:02:16 +02:00
|
|
|
|
|
|
|
%changelog
|