forked from pool/python-requirements-detector
Accepting request 762537 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/762537 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requirements-detector?expand=0&rev=5
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 9 18:56:36 UTC 2020 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
- Drop python2 subpackage due to dependencies dropping python2.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 21 20:07:52 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
Tue May 21 20:07:52 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-requirements-detector
|
# spec file for package python-requirements-detector
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define skip_python2 1
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
Name: python-requirements-detector
|
Name: python-requirements-detector
|
||||||
Version: 0.6
|
Version: 0.6
|
||||||
@@ -39,8 +40,6 @@ BuildArch: noarch
|
|||||||
%ifpython3
|
%ifpython3
|
||||||
Conflicts: %{oldpython}-requirements-detector < 0.6
|
Conflicts: %{oldpython}-requirements-detector < 0.6
|
||||||
%endif
|
%endif
|
||||||
Requires(post): update-alternatives
|
|
||||||
Requires(postun): update-alternatives
|
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -60,22 +59,15 @@ depends on.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/detect-requirements
|
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix}
|
%python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix}
|
||||||
|
|
||||||
%post
|
|
||||||
%python_install_alternative detect-requirements
|
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative detect-requirements
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%python_alternative %{_bindir}/detect-requirements
|
%python3_only %{_bindir}/detect-requirements
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user