|
Fabian Affolter |
b1ac17f |
%global srcname dulwich
|
|
Fabian Affolter |
6a64373 |
%global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$
|
|
Fabian Affolter |
b1ac17f |
|
|
Fabian Affolter |
b1ac17f |
Name: python-%{srcname}
|
|
|
fe2a379 |
Version: 0.21.7
|
|
|
f95a01b |
Release: %autorelease
|
|
|
5414b03 |
Summary: Python implementation of the Git file formats and protocols
|
|
Fabian Affolter |
b1ac17f |
|
|
|
f1af6d4 |
License: GPLv2+ or ASL 2.0
|
|
|
2727749 |
URL: https://www.dulwich.io/
|
|
|
383f190 |
Source0: %{pypi_source}
|
|
Fabian Affolter |
b1ac17f |
|
|
|
fcfff30 |
BuildRequires: gcc
|
|
Fabian Affolter |
b1ac17f |
|
|
Fabian Affolter |
b1ac17f |
%description
|
|
Fabian Affolter |
b1ac17f |
Dulwich is a pure-Python implementation of the Git file formats and
|
|
Fabian Affolter |
b1ac17f |
protocols. The project is named after the village in which Mr. and
|
|
Fabian Affolter |
b1ac17f |
Mrs. Git live in the Monty Python sketch.
|
|
Fabian Affolter |
b1ac17f |
|
|
Fabian Affolter |
25159cc |
%package -n python3-%{srcname}
|
|
|
0b0453b |
Summary: %{summary}
|
|
|
0b0453b |
|
|
|
0b0453b |
BuildRequires: python3-devel
|
|
|
8d791c2 |
BuildRequires: python3-setuptools
|
|
Fabian Affolter |
25159cc |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
Fabian Affolter |
25159cc |
|
|
Fabian Affolter |
25159cc |
%description -n python3-%{srcname}
|
|
Fabian Affolter |
25159cc |
Dulwich is a pure-Python implementation of the Git file formats and
|
|
Fabian Affolter |
25159cc |
protocols. The project is named after the village in which Mr. and
|
|
Fabian Affolter |
25159cc |
Mrs. Git live in the Monty Python sketch.
|
|
Fabian Affolter |
25159cc |
|
|
|
3455ffe |
%package -n %{name}-doc
|
|
|
3455ffe |
Summary: The %{name} documentation
|
|
|
3455ffe |
|
|
|
3455ffe |
BuildRequires: python3-sphinx
|
|
|
3455ffe |
BuildRequires: python3-docutils
|
|
|
3455ffe |
BuildRequires: python3-sphinx-epytext
|
|
|
3455ffe |
|
|
|
3455ffe |
%description -n %{name}-doc
|
|
|
3455ffe |
Documentation for %{name}.
|
|
|
3455ffe |
|
|
Fabian Affolter |
b1ac17f |
%prep
|
|
|
383f190 |
%autosetup -n %{srcname}-%{version}
|
|
|
e2ab42e |
|
|
Fabian Affolter |
b1ac17f |
%build
|
|
Fabian Affolter |
25159cc |
%py3_build
|
|
|
3455ffe |
PYTHONPATH=${PWD} sphinx-build-3 docs html
|
|
|
3455ffe |
rm -rf html/.{doctrees,buildinfo}
|
|
Fabian Affolter |
b1ac17f |
|
|
Fabian Affolter |
b1ac17f |
%install
|
|
Fabian Affolter |
25159cc |
%py3_install
|
|
Fabian Affolter |
25159cc |
# Remove extra copy of text docs
|
|
Fabian Affolter |
25159cc |
rm -rf %{buildroot}%{python3_sitearch}/docs/tutorial/
|
|
Fabian Affolter |
b1ac17f |
|
|
Fabian Affolter |
aa1243d |
#%check
|
|
Fabian Affolter |
a2eb3dc |
# FIXME test_non_ascii fails cause of unicode issue
|
|
Fabian Affolter |
aa1243d |
#nosetests -e non_ascii -w dulwich/tests -v
|
|
Fabian Affolter |
b1ac17f |
|
|
|
0b0453b |
%files -n python3-%{srcname}
|
|
|
e2ab42e |
%doc AUTHORS README.rst
|
|
Fabian Affolter |
25159cc |
%license COPYING
|
|
Fabian Affolter |
b1ac17f |
%{_bindir}/dul-*
|
|
Fabian Affolter |
b1ac17f |
%{_bindir}/%{srcname}
|
|
Fabian Affolter |
25159cc |
%{python3_sitearch}/%{srcname}*
|
|
Fabian Affolter |
25159cc |
%exclude %{python3_sitearch}/%{srcname}/tests*
|
|
Fabian Affolter |
25159cc |
|
|
|
3455ffe |
%files -n %{name}-doc
|
|
|
3455ffe |
%doc AUTHORS README.rst
|
|
|
3455ffe |
%license COPYING
|
|
|
3455ffe |
%doc html
|
|
|
3455ffe |
|
|
Fabian Affolter |
b1ac17f |
%changelog
|
|
|
f95a01b |
%autochangelog
|