forked from pool/python-nose2
Accepting request 490251 from home:alarrosa:branches:devel:languages:python
- Use singlespec macros OBS-URL: https://build.opensuse.org/request/show/490251 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 24 09:10:11 UTC 2017 - alarrosa@suse.com
|
||||||
|
|
||||||
|
- Use singlespec macros
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 6 17:07:51 UTC 2017 - alarrosa@suse.com
|
Mon Feb 6 17:07:51 UTC 2017 - alarrosa@suse.com
|
||||||
|
|
||||||
|
@@ -13,21 +13,24 @@
|
|||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-nose2
|
Name: python-nose2
|
||||||
Version: 0.6.5
|
Version: 0.6.5
|
||||||
Release: 0
|
Release: 0
|
||||||
License: BSD-2-Clause and Python-2.0
|
|
||||||
Summary: Nose2 is the next generation of nicer testing for Python
|
Summary: Nose2 is the next generation of nicer testing for Python
|
||||||
Url: https://github.com/nose-devs/nose2
|
License: BSD-2-Clause and Python-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Url: https://github.com/nose-devs/nose2
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module cov-core >= 1.12}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-six >= 1.1
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-cov-core >= 1.12
|
BuildRequires: %{python_module six >= 1.1}
|
||||||
BuildRequires: python-unittest2
|
BuildRequires: %{python_module unittest2}
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-six >= 1.1
|
Requires: python-six >= 1.1
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
@@ -35,6 +38,8 @@ Suggests: python-cov-core >= 1.12
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
nose2 is the next generation of nicer testing for Python, based
|
nose2 is the next generation of nicer testing for Python, based
|
||||||
on the plugins branch of unittest2. nose2 aims to improve on nose by:
|
on the plugins branch of unittest2. nose2 aims to improve on nose by:
|
||||||
@@ -60,35 +65,26 @@ new direction!
|
|||||||
%setup -q -n nose2-%{version}
|
%setup -q -n nose2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
rm %{buildroot}%{_bindir}/nose2
|
%python_clone -a %{buildroot}%{_bindir}/nose2
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
|
||||||
touch %{buildroot}%{_sysconfdir}/alternatives/nose2
|
|
||||||
ln -sf %{_sysconfdir}/alternatives/nose2 %{buildroot}/%{_bindir}/nose2
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
#LC_CTYPE=C.UTF8 python setup.py test
|
#LC_CTYPE=C.UTF8 python setup.py test
|
||||||
|
|
||||||
%post
|
%post
|
||||||
update-alternatives \
|
%python_install_alternative nose2
|
||||||
--install %{_bindir}/nose2 nose2 %{_bindir}/nose2-%{py_ver} 20
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
%python_uninstall_alternative nose2
|
||||||
update-alternatives --remove nose2 %{_bindir}/nose2-%{py_ver}
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS README.rst license.txt
|
%doc AUTHORS README.rst license.txt
|
||||||
%{_bindir}/nose2
|
%python_alternative %{_bindir}/nose2
|
||||||
%{_bindir}/nose2-%{py_ver}
|
|
||||||
%ghost %{_sysconfdir}/alternatives/nose2
|
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user