forked from pool/python-pygraphviz
Accepting request 497925 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/497925 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygraphviz?expand=0&rev=4
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7c294cbc9d88946be671cc0d8602aac176d8c56695c0a7d871eadea75a958408
|
||||
size 103336
|
3
pygraphviz-1.4rc1.tar.gz
Normal file
3
pygraphviz-1.4rc1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2a0567a2e63dd83a8dc3d37889b5a90eff9ed641fc07681dcf56b6964d329301
|
||||
size 105374
|
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 17 21:43:00 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version
|
||||
- Fix source URL
|
||||
- Update to version 1.4rc1
|
||||
* No upstream changelog
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 15 17:11:49 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pygraphviz
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@@ -16,52 +16,75 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pygraphviz
|
||||
Version: 1.3.1
|
||||
Version: 1.4rc1
|
||||
Release: 0
|
||||
Url: http://networkx.lanl.gov/pygraphviz
|
||||
Summary: Python interface to Graphviz
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
Source: https://pypi.python.org/packages/source/p/pygraphviz/pygraphviz-%{version}.tar.gz
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pygraphviz/pygraphviz-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM docdir.patch
|
||||
Patch: docdir.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: graphviz-devel >= 2.16
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: swig
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# Needed even without tests
|
||||
BuildRequires: %{python_module nose}
|
||||
Requires: graphviz >= 2.16
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A Python wrapper for the Graphviz Agraph data structure.
|
||||
PyGraphviz can be used to create and draw networks and graphs with Graphviz.
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/Other
|
||||
Provides: %{python_module pygraphviz-doc = %{version}}
|
||||
|
||||
%description -n %{name}-doc
|
||||
This package provides documentation and help files for %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -n pygraphviz-%{version}
|
||||
%patch
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
# Need command-line flags only available in install
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
chmod +x %{buildroot}%{python_sitearch}/pygraphviz/tests/test.py
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_exec setup.py install -O1 --force --root %{buildroot} --prefix %{_prefix} --include-path %{_includedir}/graphviz/ --library-path %{_libdir}/graphviz/
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%python_expand chmod +x %{buildroot}%{$python_sitearch}/pygraphviz/tests/test.py
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
pushd examples
|
||||
PYTHONPATH=%{buildroot}%{python_sitearch} python -c "import pygraphviz;pygraphviz.test()"
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||||
$python -c "import pygraphviz;pygraphviz.test()"
|
||||
}
|
||||
popd
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE README.rst
|
||||
%{_docdir}/pygraphviz-%{version}
|
||||
%{python_sitearch}/pygraphviz/
|
||||
%{python_sitearch}/pygraphviz-%{version}-py*.egg-info
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{_docdir}/pygraphviz-%{version}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user