1
0

Accepting request 318748 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/318748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-networkx?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2015-08-01 09:36:57 +00:00 committed by Git OBS Bridge
parent d3bc88966d
commit 36bf48451a
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jul 25 12:36:58 UTC 2015 - seife+obs@b1-systems.com
- fix rhel build by conditionalizing "Recommends:" tags
- do not hardcode /usr/share/doc/packages but use %_docdir
-------------------------------------------------------------------
Wed Apr 29 14:25:15 UTC 2015 - tbechtold@suse.com

View File

@ -38,6 +38,8 @@ BuildRequires: python-matplotlib
BuildRequires: python-scipy
%endif
Requires: python-decorator >= 3.4.0
# Recommends: is not understood by redhat's RPM version
%if 0%{?suse_version}
Recommends: python-pydot
Recommends: python-pygraphviz
Recommends: python-PyYAML
@ -47,6 +49,7 @@ Recommends: python-numpy
Recommends: python-matplotlib
Recommends: python-scipy
%endif
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
@ -69,7 +72,9 @@ Features:
%prep
%setup -q -n networkx-%{version}
sed -i -e "s@share/doc/networkx-.*@share/doc/packages/%{name}'@g" setup.py
sed -i -e "s@share/doc/networkx-.*@%{_docdir}/%{name}'@g" setup.py
# _docdir contains absolute path, strip /usr/ prefix again
sed -i -e "/^docdirbase/s@/usr/@@" setup.py
find networkx/ examples/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'
sed -i 's/\r//' examples/algorithms/hartford_drug.edgelist