forked from pool/python-networkx
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:
parent
d3bc88966d
commit
36bf48451a
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user