forked from pool/python-requirements-detector
Accepting request 807273 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/807273 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requirements-detector?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 09:27:42 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 15:06:41 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
@@ -28,18 +28,19 @@ URL: https://github.com/landscapeio/requirements-detector
|
||||
# https://github.com/landscapeio/requirements-detector/issues/25
|
||||
Source: https://github.com/landscapeio/requirements-detector/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-astroid >= 1.0.0
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module astroid}
|
||||
BuildRequires: %{python_module nose}
|
||||
# /SECTION
|
||||
Requires: python-astroid >= 1.0.0
|
||||
BuildRequires: fdupes
|
||||
BuildArch: noarch
|
||||
%ifpython3
|
||||
Conflicts: %{oldpython}-requirements-detector < 0.6
|
||||
%endif
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -58,15 +59,22 @@ depends on.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/detect-requirements
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%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}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/detect-requirements
|
||||
%python_alternative %{_bindir}/detect-requirements
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user