b4f86b3
%if 0%{?rhel} && 0%{?rhel} <= 6
b4f86b3
%{!?__python2: %global __python2 /usr/bin/python2}
b4f86b3
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
b4f86b3
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
b4f86b3
%endif
b4f86b3
815b888
%{!?python2_includedir: %global python2_includedir %(%{__python2} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")}
815b888
%{!?python3_includedir: %global python3_includedir %(%{__python3} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")}
815b888
815b888
7fb9f35
Name:       python-igraph
4996b05
Version:    0.7.1.post6
4996b05
%global igraph_version 0.7
dc9565b
Release:    10%{?dist}
7fb9f35
Summary:    Python bindings for igraph
7fb9f35
7fb9f35
License:    GPLv2+
7fb9f35
URL:        http://pypi.python.org/pypi/python-igraph
7fb9f35
Source0:    https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
7fb9f35
06fa0ba
BuildRequires:  python2-devel
4996b05
BuildRequires:  igraph-devel >= %{igraph_version}
7fb9f35
BuildRequires:  gcc
7fb9f35
BuildRequires:  libxml2-devel
06fa0ba
815b888
BuildRequires:  python3-devel
815b888
06fa0ba
%description
06fa0ba
This module extends Python with a Graph class which is capable of
06fa0ba
handling arbitrary directed and undirected graphs with thousands of
06fa0ba
nodes and millions of edges. Since the module makes use of the open
06fa0ba
source igraph library written in almost 100% pure C, it is blazing
06fa0ba
fast and outperforms most other pure Python-based graph packages
06fa0ba
around.
06fa0ba
06fa0ba
%package -n python2-igraph
06fa0ba
Summary:    %{summary}
4996b05
Requires:   libxml2
4996b05
Requires:   igraph >= %{igraph_version}
06fa0ba
%{?python_provide:%python_provide python2-igraph}
f512d1b
06fa0ba
%description -n python2-igraph
f512d1b
This module extends Python with a Graph class which is capable of
f512d1b
handling arbitrary directed and undirected graphs with thousands of
f512d1b
nodes and millions of edges. Since the module makes use of the open
f512d1b
source igraph library written in almost 100% pure C, it is blazing
f512d1b
fast and outperforms most other pure Python-based graph packages
f512d1b
around.
f512d1b
06fa0ba
%package -n python2-igraph-devel
815b888
Requires:  python2-igraph = %{version}-%{release}
7ec11ed
Requires:  pkgconfig
7ec11ed
Summary:   Development files for igraph
7ec11ed
06fa0ba
%description -n python2-igraph-devel
06fa0ba
The python2-igraph-devel package contains the header files and some
7ec11ed
documentation needed to develop application with %{name}.
7ec11ed
815b888
815b888
%package -n python3-igraph
815b888
Summary:    %{summary}
815b888
Requires:   libxml2
4996b05
Requires:   igraph >= %{igraph_version}
815b888
%{?python_provide:%python_provide python3-igraph}
815b888
815b888
%description -n python3-igraph
815b888
This module extends Python with a Graph class which is capable of
815b888
handling arbitrary directed and undirected graphs with thousands of
815b888
nodes and millions of edges. Since the module makes use of the open
815b888
source igraph library written in almost 100% pure C, it is blazing
815b888
fast and outperforms most other pure Python-based graph packages
815b888
around.
815b888
815b888
%package -n python3-igraph-devel
815b888
Requires:  python3-igraph = %{version}-%{release}
815b888
Requires:  pkgconfig
815b888
Summary:   Development files for igraph
815b888
815b888
%description -n python3-igraph-devel
815b888
The python3-igraph-devel package contains the header files and some
815b888
documentation needed to develop application with %{name}.
815b888
815b888
f512d1b
%prep
7a23123
%setup -q
f512d1b
f512d1b
%build
815b888
%py3_build
ceba867
%py2_build
f512d1b
f512d1b
%install
815b888
%py3_install
7e514bd
# Now /usr/bin/igraph is Python 3, so we move it away
7e514bd
mv %{buildroot}%{_bindir}/igraph %{buildroot}%{_bindir}/igraph-3
ceba867
%py2_install
f512d1b
06fa0ba
%files -n python2-igraph
06fa0ba
%license COPYING
333226f
%{python2_sitearch}/igraph
be155ad
%{python2_sitearch}/python_igraph-%{version}-py*.egg-info
ceba867
%{_bindir}/igraph
815b888
815b888
%files -n python3-igraph
815b888
%license COPYING
815b888
%{python3_sitearch}/igraph
815b888
%{python3_sitearch}/python_igraph-%{version}-py*.egg-info
7e514bd
%{_bindir}/igraph-3
f512d1b
06fa0ba
%files -n python2-igraph-devel
815b888
%{python2_includedir}/python-igraph
815b888
815b888
%files -n python3-igraph-devel
815b888
%{python3_includedir}/python-igraph
e1d6338
f512d1b
%changelog
dc9565b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.post6-10
dc9565b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dc9565b
7e514bd
* Mon Sep 18 2017 Jan Beran <jberan@redhat.com> - 0.7.1.post6-9
7e514bd
- Fix of missing Python 3 version executables
7e514bd
e91f843
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.post6-8
e91f843
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e91f843
4ff0688
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.post6-7
4ff0688
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4ff0688
db411c0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.post6-6
db411c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
db411c0
0220b1f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.1.post6-5
0220b1f
- Rebuild for Python 3.6
0220b1f
0e1f6bb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1.post6-4
0e1f6bb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0e1f6bb
396bff0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.post6-3
396bff0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
396bff0
7c0f6a6
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1.post6-2
7c0f6a6
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
7c0f6a6
4996b05
* Thu Oct  1 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.1.post6-1
4996b05
- Update to 0.7.1.post6 (improved python3 support)
4996b05
06fa0ba
* Tue Sep 29 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7-1
06fa0ba
- Create python2-igraph* binary packages.
815b888
- Add python3 support, create python3-igraph* subpackages.
06fa0ba
b4f86b3
* Tue Sep 29 2015 Brian Stinson <bstinson@ksu.edu> - 0.7-1
b4f86b3
- Update to 0.7
b4f86b3
7960a16
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-4
7960a16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7960a16
29f7919
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-3
29f7919
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
29f7919
41af084
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-2
41af084
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
41af084
7fb9f35
* Mon Dec 09 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.6.5-1
7fb9f35
- Update to 0.6.5
effd7ec
- Clean the spec a little
effd7ec
- Comment out the tests for the moment
333226f
- Update macro to python2
7ec11ed
- Add the devel subpackage for the header file
7fb9f35
d5052e8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-7
d5052e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d5052e8
1392185
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-6
1392185
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1392185
49e70f4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-5
49e70f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
49e70f4
46f4ffe
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
46f4ffe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
46f4ffe
afb74b4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-3
afb74b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
afb74b4
Jesse Keating 16f6856
* Wed Sep 29 2010 jkeating - 0.5.4-2
Jesse Keating 16f6856
- Rebuilt for gcc bug 634757
Jesse Keating 16f6856
9868e14
* Fri Sep 17 2010 Neal Becker <ndbecker2@gmail.com> - 0.5.4-1
9868e14
- Update to 0.5.4
9868e14
20a8d66
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.5.2-5
20a8d66
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
20a8d66
5595101
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-4
5595101
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5595101
c5f4e1d
* Sat May  2 2009 Neal Becker <ndbecker2@gmail.com> - 0.5.2-3
c5f4e1d
- Try removing Requires
c5f4e1d
e1d6338
* Mon Apr 27 2009 Neal Becker <ndbecker2@gmail.com> - 0.5.2-2
e1d6338
- Try running check
e1d6338
c8f8696
* Mon Apr 27 2009 Neal Becker <ndbecker2@gmail.com> - 0.5.2-1
c8f8696
- Update to 0.5.2
c8f8696
- Try building without patch2
c8f8696
3a9c2b3
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
3a9c2b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3a9c2b3
21527d6
* Sun Dec 21 2008 Neal Becker <ndbecker2@gmail.com> - 0.5.1-3
21527d6
- Bump tag
21527d6
e26a6c9
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.1-2
e26a6c9
- Rebuild for Python 2.6
e26a6c9
8bb92b0
* Sun Nov 16 2008 Neal Becker <ndbecker2@gmail.com> - 0.5.1-1
8bb92b0
- Update to 0.5.1
8bb92b0
98907bc
* Mon Feb 25 2008 Neal Becker <ndbecker2@gmail.com> - 0.5-5
98907bc
- Nothing
98907bc
4f1edb1
* Sun Feb 17 2008 Neal Becker <ndbecker2@gmail.com> - 0.5-4
4f1edb1
- Fix requires igraph
4f1edb1
012296a
* Sun Feb 17 2008 Neal Becker <ndbecker2@gmail.com> - 0.5-3
012296a
- Add BR python
012296a
8a3db89
* Sat Feb 16 2008 Neal Becker <ndbecker2@gmail.com> - 0.5-2
8a3db89
- Fix BR
8a3db89
7a23123
* Fri Feb 15 2008 Neal Becker <ndbecker2@gmail.com> - 0.5-1
7a23123
- Update to 0.5
7a23123
f512d1b
* Thu Jan 24 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-7
f512d1b
- Add AUTHORS
f512d1b
f512d1b
* Thu Jan 24 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-6
f512d1b
- More patches from upstream
f512d1b
f512d1b
* Thu Jan 24 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-5
f512d1b
- try memory patch
f512d1b
f512d1b
* Thu Jan 24 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-4
f512d1b
- patch2
f512d1b
f512d1b
* Thu Jan 24 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-3
f512d1b
- Got patch from upstream
f512d1b
f512d1b
* Thu Jan 24 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-2
f512d1b
- Add BR gcc
f512d1b
- BR libxml2-devel, Req libxml2
f512d1b
f512d1b
* Wed Jan 23 2008 Neal Becker <ndbecker2@gmail.com> - 0.4.5-1
f512d1b
- Initial package
f512d1b