diff --git a/python-altgraph.spec b/python-altgraph.spec index 9152394..63b2cd1 100644 --- a/python-altgraph.spec +++ b/python-altgraph.spec @@ -1,9 +1,10 @@ %global srcname altgraph +%global sum Python graph (network) package Name: python-%{srcname} Version: 0.12 -Release: 7%{?dist} -Summary: Python graph (network) package +Release: 8%{?dist} +Summary: %{sum} License: MIT URL: http://pypi.python.org/pypi/altgraph/ @@ -13,13 +14,40 @@ BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools -Requires: pydot +BuildRequires: python3-devel +BuildRequires: python3-setuptools + %description altgraph is a fork of graphlib: a graph (network) package for constructing graphs, BFS, and DFS traversals, topological sort, shortest paths, etc. with graphviz output. + +# Python 2 subpackage +%package -n python2-%{srcname} +Summary: %{sum} +Requires: python2-pydot +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} +altgraph is a fork of graphlib: a graph (network) package for constructing +graphs, BFS, and DFS traversals, topological sort, shortest paths, etc. with +graphviz output. + + +# Python 3 subpackage +%package -n python3-%{srcname} +Summary: %{sum} +Requires: python3-pydot +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +altgraph is a fork of graphlib: a graph (network) package for constructing +graphs, BFS, and DFS traversals, topological sort, shortest paths, etc. with +graphviz output. + + %prep %setup -q -n %{srcname}-%{version} rm -rf %{srcname}.egg-info @@ -27,17 +55,30 @@ rm -rf %{srcname}.egg-info rm altgraph/Dot.py %build -%{__python2} setup.py build +%py2_build +%py3_build %install -%{__python2} setup.py install -O1 --skip-build --root=%{buildroot} +%py2_install +%py3_install -%files + +%files -n python2-%{srcname} %doc PKG-INFO README.txt doc/_build/html/ altgraph_tests/ %{python2_sitelib}/%{srcname}/ %{python2_sitelib}/%{srcname}*.egg-info + +%files -n python3-%{srcname} +%doc PKG-INFO README.txt doc/_build/html/ altgraph_tests/ +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}*.egg-info + + %changelog +* Mon Jun 06 2016 Dominika Krejci - 0.12-8 +- add Python 3 + * Thu Feb 04 2016 Fedora Release Engineering - 0.12-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild @@ -95,3 +136,4 @@ rm altgraph/Dot.py * Sat Apr 11 2009 Fabian Affolter - 0.6.7-1 - Initial spec for Fedora +