2011-05-04 00:20:11 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-setuptools-git
|
|
|
|
#
|
2017-08-31 12:43:44 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX 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
|
|
|
|
2017-08-31 12:43:44 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-01-14 13:29:40 +01:00
|
|
|
Name: python-setuptools-git
|
2017-08-31 12:43:44 +02:00
|
|
|
Version: 1.2
|
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
|
2017-08-31 12:43:44 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/setuptools-git/setuptools-git-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2015-05-16 15:25:23 +02:00
|
|
|
BuildRequires: git-core
|
2017-08-31 12:43:44 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2011-05-04 00:20:11 +02:00
|
|
|
BuildArch: noarch
|
2017-08-31 12:43:44 +02:00
|
|
|
|
|
|
|
%python_subpackages
|
2013-04-13 12:28:42 +02:00
|
|
|
|
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
|
2017-08-31 12:43:44 +02:00
|
|
|
%python_build
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%install
|
2017-08-31 12:43:44 +02:00
|
|
|
%python_install
|
2011-05-04 00:20:11 +02:00
|
|
|
|
2015-05-16 15:25:23 +02:00
|
|
|
%check
|
2017-08-31 12:43:44 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2015-05-16 15:25:23 +02:00
|
|
|
# configure git for the test
|
|
|
|
git config --global user.email "test@test.test"
|
|
|
|
git config --global user.name "test"
|
2017-08-31 12:43:44 +02:00
|
|
|
%python_exec setup.py test
|
2015-05-16 15:25:23 +02:00
|
|
|
|
2017-08-31 12:43:44 +02:00
|
|
|
%files %{python_files}
|
2013-01-14 13:29:40 +01:00
|
|
|
%defattr(-,root,root,-)
|
2017-08-31 12:43:44 +02:00
|
|
|
%doc AUTHORS.txt LICENSE.txt README.rst TODO.txt
|
2015-05-16 15:26:18 +02:00
|
|
|
%{python_sitelib}/*
|
2011-05-04 00:20:11 +02:00
|
|
|
|
|
|
|
%changelog
|