2011-05-04 00:20:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-setuptools-git
|
|
|
|
#
|
2013-01-14 13:29:40 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-05-04 00:20:11 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2013-01-14 13:29:40 +01:00
|
|
|
|
2011-05-04 00:20:11 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-06-17 14:53:57 +02:00
|
|
|
|
2013-01-22 11:20:24 +01:00
|
|
|
%define mod_name setuptools-git
|
|
|
|
%define build_for_python3 0
|
|
|
|
|
2013-01-14 13:29:40 +01:00
|
|
|
Name: python-setuptools-git
|
|
|
|
Version: 1.0b1
|
2011-05-04 00:20:11 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Setuptools revision control system plugin for Git
|
2013-01-14 13:29:40 +01:00
|
|
|
License: BSD-3-Clause
|
2011-05-04 00:20:11 +02:00
|
|
|
Group: Development/Languages/Python
|
2013-01-14 13:29:40 +01:00
|
|
|
Url: https://github.com/wichert/setuptools-git
|
|
|
|
Source: http://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-%{version}.tar.gz
|
2013-01-22 11:20:24 +01:00
|
|
|
%if %{build_for_python3}
|
2013-04-13 12:28:42 +02:00
|
|
|
BuildRequires: python
|
2013-01-22 11:20:24 +01:00
|
|
|
BuildRequires: python3-devel
|
2013-06-17 14:53:57 +02:00
|
|
|
BuildRequires: python3-distribute
|
2013-04-13 12:28:42 +02:00
|
|
|
Requires: python
|
|
|
|
BuildArch: noarch
|
2013-01-22 11:20:24 +01:00
|
|
|
%else
|
2011-05-04 00:20:11 +02:00
|
|
|
BuildRequires: python-devel
|
2013-10-24 13:14:19 +02:00
|
|
|
BuildRequires: python-setuptools
|
2013-01-14 13:29:40 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2011-05-04 00:20:11 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2013-04-13 12:28:42 +02:00
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%if %{build_for_python3}
|
|
|
|
%define local_python python3
|
|
|
|
%define local_sitelib %{python3_sitelib}
|
|
|
|
%else
|
|
|
|
%define local_python python
|
|
|
|
%define local_sitelib %{python_sitelib}
|
|
|
|
%endif
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%description
|
2013-01-14 13:29:40 +01:00
|
|
|
This is a plugin for setuptools that enables git integration. Once
|
|
|
|
installed, Setuptools can be told to include in a package distribution
|
|
|
|
all the files tracked by git. This is an alternative to explicit
|
2011-05-04 00:20:11 +02:00
|
|
|
inclusion specifications with MANIFEST.in.
|
|
|
|
|
|
|
|
This package was formerly known as gitlsfiles. The name change is the
|
|
|
|
result of an effort by the setuptools plugin developers to provide a
|
|
|
|
uniform naming convention.
|
|
|
|
|
|
|
|
%prep
|
2013-01-14 13:29:40 +01:00
|
|
|
%setup -q -n setuptools-git-%{version}
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%build
|
2013-01-22 11:20:24 +01:00
|
|
|
%{local_python} setup.py build
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%install
|
2013-01-22 11:20:24 +01:00
|
|
|
%{local_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%files
|
2013-01-14 13:29:40 +01:00
|
|
|
%defattr(-,root,root,-)
|
2013-01-22 11:20:24 +01:00
|
|
|
%{local_sitelib}/*
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%changelog
|