2020-03-30 23:04:52 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-gitdb
|
|
|
|
#
|
2022-12-06 17:03:12 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-03-30 23:04:52 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%global skip_python2 1
|
|
|
|
Name: python-gitdb
|
2022-12-06 17:03:12 +01:00
|
|
|
Version: 4.0.10
|
2020-03-30 23:04:52 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Git Object Database
|
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/gitpython-developers/gitdb
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/gitdb/gitdb-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module smmap >= 3.0.1}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-smmap >= 3.0.1
|
|
|
|
Provides: python-gitdb2 = %{version}
|
|
|
|
Obsoletes: python-gitdb2 < %{version}
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
GitDB is a pure-Python git object database
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gitdb-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Package requires its own git tree in order to pass tests
|
|
|
|
#%%python_exec setup.py test
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
|
|
|
%doc AUTHORS
|
|
|
|
%{python_sitelib}/gitdb*
|
|
|
|
|
|
|
|
%changelog
|