From e866e7eba9c6c79e9d7f46120491da48d6251dc809c8c773e8c7181b497f383f Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 29 Mar 2019 19:35:12 +0000 Subject: [PATCH] Accepting request 685050 from devel:languages:python - Update to 0.19.11: * too many changes to enumerate, see NEWS - Drop docu subpackage as it needs many more sphinx modules OBS-URL: https://build.opensuse.org/request/show/685050 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dulwich?expand=0&rev=26 --- dulwich-0.18.5.tar.gz | 3 --- dulwich-0.19.11.tar.gz | 3 +++ python-dulwich.changes | 7 ++++++ python-dulwich.spec | 54 ++++++++++++++++++++++-------------------- 4 files changed, 38 insertions(+), 29 deletions(-) delete mode 100644 dulwich-0.18.5.tar.gz create mode 100644 dulwich-0.19.11.tar.gz diff --git a/dulwich-0.18.5.tar.gz b/dulwich-0.18.5.tar.gz deleted file mode 100644 index 9af0333..0000000 --- a/dulwich-0.18.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:838bac318fd0ed79e0eedb6cfd53b6424dc618fec6b99dc959881b12da7bd6e0 -size 330097 diff --git a/dulwich-0.19.11.tar.gz b/dulwich-0.19.11.tar.gz new file mode 100644 index 0000000..f998667 --- /dev/null +++ b/dulwich-0.19.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:afbe070f6899357e33f63f3f3696e601731fef66c64a489dea1bc9f539f4a725 +size 364581 diff --git a/python-dulwich.changes b/python-dulwich.changes index 97c503a..6e6f85c 100644 --- a/python-dulwich.changes +++ b/python-dulwich.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu Mar 14 15:03:51 UTC 2019 - Tomáš Chvátal + +- Update to 0.19.11: + * too many changes to enumerate, see NEWS +- Drop docu subpackage as it needs many more sphinx modules + ------------------------------------------------------------------- Mon Nov 6 22:05:31 UTC 2017 - rjschwei@suse.com diff --git a/python-dulwich.spec b/python-dulwich.spec index 4e91864..2af9674 100644 --- a/python-dulwich.spec +++ b/python-dulwich.spec @@ -1,7 +1,7 @@ # # spec file for package python-dulwich # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,59 +12,64 @@ # 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/ +# 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.18.5 +Version: 0.19.11 Release: 0 -Url: https://www.dulwich.io Summary: Pure-Python Git Library License: GPL-2.0-or-later OR Apache-2.0 Group: Development/Languages/Python -Source0: https://pypi.io/packages/source/d/dulwich/dulwich-%{version}.tar.gz +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 setuptools} +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-fastimport +Requires: python-gpg +Requires: python-urllib3 >= 1.24.1 Requires(post): update-alternatives Requires(preun): update-alternatives - +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. -%package -n python-dulwich-doc -Summary: Documentation for %{name} -Group: Documentation/Other -Provides: %{python_module dulwich-doc = %{version}} - -%description -n python-dulwich-doc -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. - -This package contains the documentation. - %prep %setup -q -n dulwich-%{version} %build export CFLAGS="%{optflags}" %python_build -sphinx-build -b html docs/ docs/build/html %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%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 -rm docs/build/html/.doctrees/environment.pickle + +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest dulwich.tests.test_suite %post %python_install_alternative dulwich @@ -77,14 +82,11 @@ rm docs/build/html/.doctrees/environment.pickle %python_uninstall_alternative dul-upload-pack %files %{python_files} -%defattr(-,root,root,-) -%doc COPYING NEWS README.md +%license COPYING +%doc NEWS README.rst %python_alternative dulwich %python_alternative dul-receive-pack %python_alternative dul-upload-pack %{python_sitearch}/* -%files -n python-dulwich-doc -%doc COPYING docs/build/html - %changelog