forked from pool/python-pygraphviz
Accepting request 402455 from home:TheBlackCat:branches:devel:languages:python
Update to 1.3.1 OBS-URL: https://build.opensuse.org/request/show/402455 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=8
This commit is contained in:
14
docdir.patch
14
docdir.patch
@@ -2,12 +2,12 @@ Index: setup.py
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- setup.py.orig
|
--- setup.py.orig
|
||||||
+++ setup.py
|
+++ setup.py
|
||||||
@@ -109,7 +109,7 @@ else:
|
@@ -36,7 +36,7 @@
|
||||||
sys.path.pop(0)
|
sys.path.pop(0)
|
||||||
|
|
||||||
packages = ["pygraphviz","pygraphviz.tests"]
|
packages = ["pygraphviz", "pygraphviz.tests"]
|
||||||
-docdirbase = 'share/doc/pygraphviz-%s' % release.version
|
-docdirbase = 'share/doc/pygraphviz-%s' % release.version
|
||||||
+docdirbase = 'share/doc/packages/pygraphviz-%s' % release.version
|
+docdirbase = 'share/doc/packages/pygraphviz-%s' % release.version
|
||||||
data = [(docdirbase, glob("*.txt")),
|
data = [
|
||||||
(os.path.join(docdirbase, 'examples'),glob("examples/*.py")),
|
(docdirbase, glob("*.txt")),
|
||||||
(os.path.join(docdirbase, 'examples'),glob("examples/*.dat")),
|
(os.path.join(docdirbase, 'examples'), glob("examples/*.py")),
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2e8a82a07dcf006b9558d22c5a6357c012193d4cc681776845e515fffeccc6b3
|
|
||||||
size 90913
|
|
3
pygraphviz-1.3.1.tar.gz
Normal file
3
pygraphviz-1.3.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7c294cbc9d88946be671cc0d8602aac176d8c56695c0a7d871eadea75a958408
|
||||||
|
size 103336
|
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 15 17:11:49 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 1.3.1
|
||||||
|
- Update manifest to include missing files
|
||||||
|
- Update to 1.3
|
||||||
|
- Python 3 support
|
||||||
|
- Encoding bugfixes
|
||||||
|
- Rebase docdir.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 28 14:42:59 UTC 2014 - speilicke@suse.com
|
Fri Mar 28 14:42:59 UTC 2014 - speilicke@suse.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pygraphviz
|
# spec file for package python-pygraphviz
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-pygraphviz
|
Name: python-pygraphviz
|
||||||
Version: 1.2
|
Version: 1.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://networkx.lanl.gov/pygraphviz
|
Url: http://networkx.lanl.gov/pygraphviz
|
||||||
Summary: Python interface to Graphviz
|
Summary: Python interface to Graphviz
|
||||||
@@ -27,14 +27,14 @@ Source: https://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-
|
|||||||
# PATCH-FIX-UPSTREAM docdir.patch
|
# PATCH-FIX-UPSTREAM docdir.patch
|
||||||
Patch: docdir.patch
|
Patch: docdir.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: graphviz-devel
|
BuildRequires: graphviz-devel >= 2.16
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
|
BuildRequires: python-nose
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: graphviz-python
|
BuildRequires: python-setuptools
|
||||||
|
Requires: graphviz >= 2.16
|
||||||
%if 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} <= 1110
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
%else
|
|
||||||
%py_requires
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -46,19 +46,20 @@ PyGraphviz can be used to create and draw networks and graphs with Graphviz.
|
|||||||
%patch
|
%patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
CFLAGS="%{optflags}" python setup.py build
|
||||||
python setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
chmod +x %{buildroot}%{python_sitearch}/pygraphviz/tests/test.py
|
chmod +x %{buildroot}%{python_sitearch}/pygraphviz/tests/test.py
|
||||||
|
|
||||||
%clean
|
%check
|
||||||
rm -rf %{buildroot}
|
pushd examples
|
||||||
|
PYTHONPATH=%{buildroot}%{python_sitearch} python -c "import pygraphviz;pygraphviz.test()"
|
||||||
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc doc
|
%doc LICENSE README.rst
|
||||||
%{_docdir}/pygraphviz-%{version}
|
%{_docdir}/pygraphviz-%{version}
|
||||||
%{python_sitearch}/pygraphviz/
|
%{python_sitearch}/pygraphviz/
|
||||||
%{python_sitearch}/pygraphviz-%{version}-py*.egg-info
|
%{python_sitearch}/pygraphviz-%{version}-py*.egg-info
|
||||||
|
Reference in New Issue
Block a user