File python-setuptools_hg.spec of Package python-setuptools_hg
#
# spec file for package python-setuptools_hg
#
# Copyright (c) 2017 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
# 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 http://bugs.opensuse.org/
#
%define mod_name setuptools_hg
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-setuptools_hg
Version: 0.4
Release: 0
Url: http://bitbucket.org/jezdez/setuptools_hg
Summary: Setuptools plugin for finding files under Mercurial version control
License: GPL-2.0
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/s/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
setuptools_hg is a plugin for setuptools that enables setuptools to find files
under the Mercurial version control system.
It uses the Mercurial Python library by default and falls back to use the
command line program 'hg'. That's especially useful inside virtualenvs
that don't have access to the system wide installed Mercurial lib (e.g. when
created with --no-site-packages).
%prep
%setup -q -n setuptools_hg-%{version}
rm -rf setuptools_hg.egg-info
%build
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root,-)
%{python_sitelib}/*
%changelog