From f19dc911deb344a652d4b7595d1e7969b70d86b4 Mon Sep 17 00:00:00 2001 From: Alan Pevec Date: Jun 29 2012 14:45:34 +0000 Subject: Initial import Review request https://bugzilla.redhat.com/show_bug.cgi?id=836521 --- diff --git a/.gitignore b/.gitignore index e69de29..d23c92c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/setuptools-git-0.4.2.tar.gz diff --git a/python-setuptools_git.spec b/python-setuptools_git.spec new file mode 100644 index 0000000..7914907 --- /dev/null +++ b/python-setuptools_git.spec @@ -0,0 +1,46 @@ +%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 diff --git a/sources b/sources index e69de29..df84b59 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6e2de2238d768f0197f8c041c1f0f5b5 setuptools-git-0.4.2.tar.gz