%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} Name: python-dulwich Version: 0.8.1 Release: 1%{?dist} Summary: Implementation of the git file format and protocol Group: Development/Languages License: GPLv2+ URL: http://www.samba.org/~jelmer/dulwich/ Source0: http://www.samba.org/~jelmer/dulwich/dulwich-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python2-devel # For unittests BuildRequires: git-daemon %description Dulwich is a pure-Python implementation of the Git file formats and protocols. All functionality is available in pure Python, but (optional) C extensions are also available for better performance. Named after the village in which Mr. and Mrs. Git live in the Monty Python sketch. %prep %setup -q -n dulwich-%{version} %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %check make check %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README COPYING AUTHORS docs # For arch-specific packages: sitearch %{python_sitearch}/* %{_bindir}/* %changelog * Wed Dec 7 2011 Toshio Kuratomi - 0.8.1-1 - Initial Fedora build