14
0

Accepting request 556069 from home:sebix:branches:devel:languages:python

now with removed test condition as requested

- deactivated broken tests
- install license file as license

OBS-URL: https://build.opensuse.org/request/show/556069
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termstyle?expand=0&rev=11
This commit is contained in:
Sebastian Wagner
2017-12-11 20:13:41 +00:00
committed by Git OBS Bridge
parent 2e246d0f61
commit 2f955f1f23
2 changed files with 19 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Dec 2 17:59:26 UTC 2017 - sebix+novell.com@sebix.at
- deactivated broken tests
- install license file as license
-------------------------------------------------------------------
Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com

View File

@@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
@@ -27,10 +26,10 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://github.com/gfxmonk/termstyle
Source: https://files.pythonhosted.org/packages/source/t/termstyle/termstyle-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%ifpython2
Obsoletes: %{oldpython}-python-termstyle < %{version}
Provides: %{oldpython}-python-termstyle = %{version}
@@ -39,7 +38,6 @@ Provides: %{oldpython}-python-termstyle = %{version}
Provides: python3-python-termstyle = %{version}
Obsoletes: python3-python-termstyle < %{version}
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
@@ -50,6 +48,7 @@ terminal (console) programs. The definitions come from ECMA-048, the
%prep
%setup -q -n termstyle-%{version}
sed -i '1s/^#!.*//' termstyle.py
%build
%python_build
@@ -58,20 +57,18 @@ terminal (console) programs. The definitions come from ECMA-048, the
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%if %{with tests}
%check
export LANG=en_US.UTF-8
%if %have_python2
python2 setup.py test
%endif
%if %have_python3
python3 test3.py
%endif
%endif
#%%check
#export LANG=C.UTF-8
#%%ifpython2
#python2 setup.py test -s test2
#%%endif
#%%ifpython3
#python3 setup.py test -s test3
#%%endif
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README.rst
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%changelog