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