f19dc91
%global mod_name setuptools_git
f19dc91
%global pypi_name setuptools-git
f19dc91
f19dc91
Name:           python-%{mod_name}
f19dc91
Version:        0.4.2
f6639b3
Release:        1%{?dist}
f19dc91
Summary:        Setuptools revision control system plugin for Git
f19dc91
f19dc91
Group:          Development/Libraries
f19dc91
License:        Public Domain
f19dc91
URL:            http://pypi.python.org/pypi/%{pypi_name}
f19dc91
Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
f19dc91
f19dc91
BuildArch:      noarch
f19dc91
BuildRequires:  python2-devel
f19dc91
BuildRequires:  python-setuptools
f19dc91
f19dc91
%description
f19dc91
This is a plugin for setup tools that enables Git integration.  Once
f19dc91
installed, Setuptools can be told to include in a module distribution
f19dc91
all the files tracked by git.  This is an alternative to explicit
f19dc91
inclusion specifications with MANIFEST.in.
f19dc91
f19dc91
%prep
f19dc91
%setup -q -n %{pypi_name}-%{version}
f19dc91
# rpmlint E: non-executable-script
f19dc91
sed -i '/^#!\/usr\/bin\/env python/d' setuptools_git.py
f19dc91
f19dc91
%build
f19dc91
%{__python} setup.py build
f19dc91
f19dc91
f19dc91
%install
f19dc91
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
f19dc91
f19dc91
f19dc91
%files
f19dc91
%{python_sitelib}/%{mod_name}.*
f19dc91
%{python_sitelib}/*.egg-info/
f19dc91
f19dc91
%doc PKG-INFO
f19dc91
f19dc91
f19dc91
%changelog
f19dc91
* Fri Jun 29 2012 Alan Pevec <apevec@redhat.com> 0.4.2-1
f19dc91
- Initial import, based on python-setuptools_hg RPM