%global user durin42 %global hash dde1ade36a49 Name: hgsubversion Version: 1.8.1 Release: 1%{?dist} Summary: Mercurial extension for working with Subversion repositories License: GPLv2 URL: https://bitbucket.org/%{user}/%{name} Source0: https://bitbucket.org/%{user}/%{name}/get/%{version}.tar.bz2#/%{name}-%{version}.tar.bz2 BuildRequires: subversion >= 1.5 BuildRequires: subversion-python BuildRequires: mercurial >= 1.3 BuildRequires: python2-devel # For generating documentation BuildRequires: python-docutils Requires: mercurial Requires: subversion-python BuildArch: noarch %description hgsubversion is an extension for Mercurial that allows using Mercurial as a Subversion client. %prep %setup -q -n %{user}-%{name}-%{hash} %build %{__python2} setup.py build rst2html hgsubversion/help/subversion.rst hgsubversion.html %install %{__python2} setup.py install -O1 --skip-build --root=%{buildroot} rm -rf %{buildroot}/%{python_sitelib}/%{name}/*/*.rst %check %{__python2} tests/run.py %files %{python_sitelib}/* %doc hgsubversion.html %{!?_licensedir:%global license %%doc} # NOTE: notice of old address submitted upstream ( see https://bitbucket.org/durin42/hgsubversion/issue/440/address-needs-to-be-updated-in-copying ) %license COPYING %changelog * Mon May 11 2015 Dave Johansen - 1.8.1-1 - Initial RPM release