%global mod_name setuptools_git %global pypi_name setuptools-git Name: python-%{mod_name} Version: 0.4.2 Release: 1%{?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 * Fri Jun 29 2012 Alan Pevec 0.4.2-1 - Initial import, based on python-setuptools_hg RPM