forked from pool/python-setuptools-git
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools-git?expand=0&rev=16
This commit is contained in:
committed by
Git OBS Bridge
parent
0f081dacf4
commit
911cfaa31d
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%define mod_name setuptools-git
|
%define mod_name setuptools-git
|
||||||
%define build_for_python3 0
|
|
||||||
|
|
||||||
Name: python-setuptools-git
|
Name: python-setuptools-git
|
||||||
Version: 1.1
|
Version: 1.1
|
||||||
@@ -28,13 +27,6 @@ Group: Development/Languages/Python
|
|||||||
Url: https://github.com/wichert/setuptools-git
|
Url: https://github.com/wichert/setuptools-git
|
||||||
Source: http://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/s/setuptools-git/setuptools-git-%{version}.tar.gz
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
%if %{build_for_python3}
|
|
||||||
BuildRequires: python
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-distribute
|
|
||||||
Requires: python
|
|
||||||
BuildArch: noarch
|
|
||||||
%else
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
@@ -42,17 +34,8 @@ BuildRequires: python-setuptools
|
|||||||
%else
|
%else
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is a plugin for setuptools that enables git integration. Once
|
This is a plugin for setuptools that enables git integration. Once
|
||||||
installed, Setuptools can be told to include in a package distribution
|
installed, Setuptools can be told to include in a package distribution
|
||||||
@@ -67,19 +50,19 @@ uniform naming convention.
|
|||||||
%setup -q -n setuptools-git-%{version}
|
%setup -q -n setuptools-git-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{local_python} setup.py build
|
python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{local_python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# configure git for the test
|
# configure git for the test
|
||||||
git config --global user.email "test@test.test"
|
git config --global user.email "test@test.test"
|
||||||
git config --global user.name "test"
|
git config --global user.name "test"
|
||||||
%{local_python} setup.py -q test
|
python setup.py -q test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{local_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user