Accepting request 807637 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/807637 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-python-louvain?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
323152341d
commit
bb8f4c9531
@@ -33,6 +33,8 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-networkx
|
||||
Requires: python-numpy
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module networkx}
|
||||
@@ -56,15 +58,22 @@ sed -i -e '/^#!\//, 1d' community/__init__.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/community
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec test_community.py
|
||||
|
||||
%post
|
||||
%python_install_alternative community
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative community
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/community
|
||||
%python_alternative %{_bindir}/community
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user