Hello community, here is the log from the commit of package python-pygraphviz for openSUSE:Factory checked in at 2017-06-12 15:28:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygraphviz (Old) and /work/SRC/openSUSE:Factory/.python-pygraphviz.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygraphviz" Mon Jun 12 15:28:09 2017 rev:4 rq:497925 version:1.4rc1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygraphviz/python-pygraphviz.changes 2016-06-19 10:49:34.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pygraphviz.new/python-pygraphviz.changes 2017-06-12 15:28:10.356401625 +0200 @@ -1,0 +2,8 @@ +Wed May 17 21:43:00 UTC 2017 - [email protected] + +- Implement single-spec version +- Fix source URL +- Update to version 1.4rc1 + * No upstream changelog + +------------------------------------------------------------------- Old: ---- pygraphviz-1.3.1.tar.gz New: ---- pygraphviz-1.4rc1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygraphviz.spec ++++++ --- /var/tmp/diff_new_pack.0Dclmw/_old 2017-06-12 15:28:11.180285432 +0200 +++ /var/tmp/diff_new_pack.0Dclmw/_new 2017-06-12 15:28:11.184284868 +0200 @@ -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
