1
0

Accepting request 227562 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/227562
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-networkx?expand=0&rev=1
This commit is contained in:
Stephan Kulow 2014-03-30 06:28:38 +00:00 committed by Git OBS Bridge
commit 30677eea5f
5 changed files with 151 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
networkx-1.8.1.tar.gz Normal file
View File

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

41
python-networkx.changes Normal file
View File

@ -0,0 +1,41 @@
-------------------------------------------------------------------
Mon Dec 9 13:26:37 UTC 2013 - toddrme2178@gmail.com
- Add optional dependencies as Recommends
-------------------------------------------------------------------
Sun Dec 8 13:49:40 UTC 2013 - p.drouand@gmail.com
- Update to version 1.8.1
+ No changelog available
-------------------------------------------------------------------
Tue Jan 31 14:42:25 UTC 2012 - saschpe@suse.de
- Don't package INSTALL.txt and other docs twice
-------------------------------------------------------------------
Thu Jan 12 14:52:26 UTC 2012 - saschpe@suse.de
- Spec file cosmetics
-------------------------------------------------------------------
Wed Jan 11 14:56:08 UTC 2012 - toddrme2178@gmail.com
- Cleaned up spec file
- Renamed package from python-NetworkX to python-networkx to match the module name
-------------------------------------------------------------------
Thu Sep 8 20:27:43 UTC 2011 - alinm.elena@gmail.com
- initial commit
-------------------------------------------------------------------
Fri Feb 6 00:00:00 UTC 2009 - urs.beyerle@env.ethz.ch
- update to 0.99
-------------------------------------------------------------------
Thu Jun 26 00:00:00 UTC 2008 - ti.eugene@gmail.com
- Initial build

83
python-networkx.spec Normal file
View File

@ -0,0 +1,83 @@
#
# spec file for package python-networkx
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-networkx
Version: 1.8.1
Release: 0
License: BSD-3-Clause
Summary: Python package for the creation, manipulation,
Url: http://networkx.lanl.gov
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/n/networkx/networkx-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-PyYAML
BuildRequires: python-devel
BuildRequires: python-matplotlib
BuildRequires: python-numpy-devel
BuildRequires: python-pydot
BuildRequires: python-pygraphviz
BuildRequires: python-pyparsing
BuildRequires: python-scipy
Recommends: python-matplotlib
Recommends: python-numpy
Recommends: python-pydot
Recommends: python-pygraphviz
Recommends: python-PyYAML
Recommends: python-pyparsing
Recommends: python-scipy
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()")}
%else
BuildArch: noarch
%endif
%description
NetworkX (NX) is a Python package for the creation, manipulation, and study of the structure, dynamics,
and functions of complex networks.
Features:
* Includes standard graph-theoretic and statistical physics functions
* Easy exchange of network algorithms between applications, disciplines, and platforms
* Includes many classic graphs and synthetic networks
* Nodes and edges can be "anything" (e.g. time-series, text, images, XML records)
* Exploits existing code from high-quality legacy software in C, C++, Fortran, etc.
* Open source (encourages community input)
* Unit-tested
%prep
%setup -q -n networkx-%{version}
sed -i -e "s@share/doc/networkx-.*@share/doc/packages/%{name}'@g" 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
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root %{buildroot}
rm -r %{buildroot}%{_docdir}/%{name}/INSTALL.txt # Makes no sense
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)
%{_docdir}/%{name}
%{python_sitelib}/networkx/
%{python_sitelib}/networkx-%{version}-py*.egg-info
%changelog