14
0

Accepting request 495751 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version
- Fix source URL
- Update to version 1.4rc1

OBS-URL: https://build.opensuse.org/request/show/495751
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=10
This commit is contained in:
Todd R
2017-05-24 11:28:15 +00:00
committed by Git OBS Bridge
parent fa1cf69de6
commit 1654d2d3ff
4 changed files with 49 additions and 18 deletions

View File

@@ -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
View File

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

View File

@@ -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 Wed Jun 15 17:11:49 UTC 2016 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pygraphviz # 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 # 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
@@ -16,52 +16,75 @@
# #
%bcond_without tests
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pygraphviz Name: python-pygraphviz
Version: 1.3.1 Version: 1.4rc1
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
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python 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-FIX-UPSTREAM docdir.patch
Patch: docdir.patch Patch: docdir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: graphviz-devel >= 2.16 BuildRequires: graphviz-devel >= 2.16
BuildRequires: pkg-config BuildRequires: pkg-config
BuildRequires: python-nose BuildRequires: swig
BuildRequires: python-devel BuildRequires: fdupes
BuildRequires: python-setuptools BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
# Needed even without tests
BuildRequires: %{python_module nose}
Requires: graphviz >= 2.16 Requires: graphviz >= 2.16
%if 0%{?suse_version} <= 1110 %python_subpackages
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%description %description
A Python wrapper for the Graphviz Agraph data structure. A Python wrapper for the Graphviz Agraph data structure.
PyGraphviz can be used to create and draw networks and graphs with Graphviz. 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 %prep
%setup -q -n pygraphviz-%{version} %setup -q -n pygraphviz-%{version}
%patch %patch
%build %build
CFLAGS="%{optflags}" python setup.py build # Need command-line flags only available in install
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} export CFLAGS="%{optflags}"
chmod +x %{buildroot}%{python_sitearch}/pygraphviz/tests/test.py %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 %check
pushd examples 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 popd
%endif
%files %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE README.rst %doc LICENSE README.rst
%{_docdir}/pygraphviz-%{version}
%{python_sitearch}/pygraphviz/ %{python_sitearch}/pygraphviz/
%{python_sitearch}/pygraphviz-%{version}-py*.egg-info %{python_sitearch}/pygraphviz-%{version}-py*.egg-info
%files -n %{name}-doc
%defattr(-,root,root,-)
%doc LICENSE
%{_docdir}/pygraphviz-%{version}
%changelog %changelog