1
0

Accepting request 538121 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/538121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-networkx?expand=0&rev=13
This commit is contained in:
Dominique Leuenberger 2017-11-09 13:01:23 +00:00 committed by Git OBS Bridge
parent a72fc1fc63
commit c40c8700fd
4 changed files with 32 additions and 17 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d0e70e10dfb47601cbb3425a00e03e2a2e97477be6f80638fef91d54dd1e4b8
size 1315737

3
networkx-2.0.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cd5ff8f75d92c79237f067e2f0876824645d37f017cfffa5b7c9678cae1454aa
size 1549125

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Oct 31 03:14:26 UTC 2017 - arun@gmx.de
- specfile:
* changes from tar.gz to zip
* updated sed
* INSTALL doesn't seem to be packaged anymore, deleted "rm" command
- update to version 2.0:
* Highlights
+ This release is the result of over two years of work with 1212
commits and 193 merges by 86 contributors. Highlights include:
+ We have made major changes to the methods in the Multi/Di/Graph
classes. There is a migration guide for people moving from 1.X
to 2.0.
+ We updated the documentation system.
* full release notes at
https://networkx.github.io/documentation/stable/release/release_2.0.html
-------------------------------------------------------------------
Sun Aug 6 04:46:44 UTC 2017 - toddrme2178@gmail.com

View File

@ -18,24 +18,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-networkx
Version: 1.11
Version: 2.0
Release: 0
Summary: Python package for the creation, manipulation,
License: BSD-3-Clause
Group: Development/Languages/Python
Url: http://networkx.lanl.gov
Source: https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
Source: https://files.pythonhosted.org/packages/source/n/networkx/networkx-%{version}.zip
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module decorator >= 3.4.0}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy-devel}
BuildRequires: %{python_module pydot}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-decorator >= 3.4.0
Recommends: python-pydot
Recommends: python-pygraphviz
@ -60,7 +61,7 @@ Features:
* Exploits existing code from high-quality legacy software in C, C++, Fortran, etc.
* Open source (encourages community input)
* Unit-tested
%package -n %{name}-doc
Summary: Documentation for %{name}
Group: Documentation/Other
@ -72,7 +73,6 @@ Documentation and examples for %{name}.
%prep
%setup -q -n networkx-%{version}
sed -i "s|#!/usr/bin/env python|#!%__python3|" examples/drawing/unix_email.py
%build
%python_build
@ -88,9 +88,6 @@ fi
%fdupes %{buildroot}%{_docdir}
# Installation instructions shouldn't be packaged
rm %{buildroot}%{_docdir}/networkx-%{version}/INSTALL.txt
%{python_expand pushd %{buildroot}%{$python_sitelib}
# Fix wrong-script-interpreter
find networkx -name '*test*.py' -exec sed -i "s|#!/usr/bin/env python|#!%__$python|" {} \;
@ -103,10 +100,9 @@ rm -f _current_flavor
popd
}
%files %{python_files}
%defattr(-,root,root)
%doc README.rst LICENSE.txt
%doc README.rst LICENSE.txt CONTRIBUTING.rst
%{python_sitelib}/networkx/
%{python_sitelib}/networkx-%{version}-py*.egg-info