diff --git a/.gitignore b/.gitignore index 1cf2bb1..daa675f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /xdot-0.5.tar.gz /xdot-0.6.tar.gz +/xdot-0.7.tar.gz +/LICENSE.txt diff --git a/python-xdot.spec b/python-xdot.spec index dd8461d..15daf70 100644 --- a/python-xdot.spec +++ b/python-xdot.spec @@ -1,6 +1,6 @@ Name: python-xdot -Version: 0.6 -Release: 4%{?dist} +Version: 0.7 +Release: 1%{?dist} Summary: Interactive viewer for Graphviz dot files # The file declares itself to be LGPLv3 or later at the top, but @@ -10,16 +10,18 @@ Summary: Interactive viewer for Graphviz dot files License: LGPLv3+ and ASL 1.1 URL: https://pypi.python.org/pypi/xdot -Source0: https://pypi.python.org/packages/source/x/xdot/xdot-0.6.tar.gz +Source0: https://github.com/jrfonseca/xdot.py/archive/%{version}.tar.gz#/xdot-%{version}.tar.gz + +# License is not included in the latest release. Will be in the next one. +Source1: https://raw.githubusercontent.com/jrfonseca/xdot.py/master/LICENSE.txt BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: graphviz -Requires: pygobject2 -Requires: pygtk2 -Requires: pycairo -Requires: graphviz +Requires: python3-gobject +Requires: graphviz %description @@ -33,6 +35,9 @@ xdot.py can be used either as a standalone application from command line (as "xdot"), or as a library embedded in a python application. +%{?python_provide:%python_provide python3-xdot} + + %prep %setup -q -n xdot.py-%{version} @@ -44,24 +49,30 @@ sed '1{\@^#!/usr/bin/env python@d}' xdot.py > xdot.py.new && # Remove pre-built egg present in upstream tarball: rm -rf xdot.egg-info +cp %{SOURCE1} . %build -%{__python} setup.py build +%py3_build %install -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%py3_install %files -%doc +%doc README.markdown +%license LICENSE.txt %{_bindir}/xdot -%{python_sitelib}/xdot.py -%{python_sitelib}/xdot.py[co] -%{python_sitelib}/xdot-%{version}-py2.?.egg-info +%{python3_sitelib}/xdot.py +%{python3_sitelib}/__pycache__/xdot* +%{python3_sitelib}/xdot-%{version}-py3.?.egg-info %changelog +* Wed Sep 21 2016 Dominika Krejci - 0.7-1 +- Update to 0.7 +- Switch from Python 2 to Python 3 + * Thu Feb 04 2016 Fedora Release Engineering - 0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index 0971fec..d20a1c4 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ -371523f307e5dd6ac3ef2d4893ec9880 xdot-0.6.tar.gz +40da36f3b343f7a84272410fa201acc1 xdot-0.7.tar.gz +e6a600fd5e1d9cbde2d983680233ad02 LICENSE.txt