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