Blame SPECS/python-networkx.spec

8ee993
%global srcname networkx
8ee993
8ee993
Name:           python-%{srcname}
8ee993
Version:        2.6.2
8ee993
Release:        2%{?dist}
8ee993
Summary:        Creates and Manipulates Graphs and Networks
8ee993
License:        BSD
8ee993
URL:            http://networkx.github.io/
8ee993
Source0:        https://github.com/networkx/networkx/archive/%{srcname}-%{version}.tar.gz
8ee993
8ee993
BuildArch:      noarch
8ee993
8ee993
BuildRequires:  make
8ee993
BuildRequires:  python3-devel
8ee993
BuildRequires:  %{py3_dist setuptools}
8ee993
8ee993
%if 0%{?rhel} == 0
8ee993
BuildRequires:  python3-docs
8ee993
BuildRequires:  %{py3_dist gdal}
8ee993
BuildRequires:  %{py3_dist lxml}
8ee993
BuildRequires:  %{py3_dist matplotlib}
8ee993
BuildRequires:  %{py3_dist nb2plots}
8ee993
BuildRequires:  %{py3_dist numpy}
8ee993
BuildRequires:  %{py3_dist numpydoc}
8ee993
BuildRequires:  %{py3_dist pandas}
8ee993
BuildRequires:  %{py3_dist pillow}
8ee993
BuildRequires:  %{py3_dist pydot}
8ee993
BuildRequires:  %{py3_dist pygraphviz}
8ee993
BuildRequires:  %{py3_dist pytest}
8ee993
BuildRequires:  %{py3_dist pytest-cov}
8ee993
BuildRequires:  %{py3_dist pyyaml}
8ee993
BuildRequires:  %{py3_dist scipy}
8ee993
BuildRequires:  %{py3_dist sphinx}
8ee993
BuildRequires:  %{py3_dist sphinx-gallery}
8ee993
BuildRequires:  %{py3_dist sphinx-rtd-theme}
8ee993
BuildRequires:  %{py3_dist texext}
8ee993
BuildRequires:  xdg-utils
8ee993
8ee993
# Documentation
8ee993
BuildRequires:  tex(latex)
8ee993
BuildRequires:  tex-preview
8ee993
%endif
8ee993
8ee993
%description
8ee993
NetworkX is a Python package for the creation, manipulation, and
8ee993
study of the structure, dynamics, and functions of complex networks.
8ee993
8ee993
%package -n python3-%{srcname}
8ee993
Summary:        Creates and Manipulates Graphs and Networks
8ee993
Recommends:     %{py3_dist gdal}
8ee993
Recommends:     %{py3_dist lxml}
8ee993
Recommends:     %{py3_dist matplotlib}
8ee993
Recommends:     %{py3_dist numpy}
8ee993
Recommends:     %{py3_dist pandas}
8ee993
Recommends:     %{py3_dist pillow}
8ee993
Recommends:     %{py3_dist pydot}
8ee993
Recommends:     %{py3_dist pygraphviz}
8ee993
Recommends:     %{py3_dist pyparsing}
8ee993
Recommends:     %{py3_dist pyyaml}
8ee993
Recommends:     %{py3_dist scipy}
8ee993
Recommends:     xdg-utils
8ee993
8ee993
# This can be removed when Fedora 30 reaches EOL
8ee993
Obsoletes:      python3-%{srcname}-test < 2.3-2
8ee993
Provides:       python3-%{srcname}-test = %{version}-%{release}
8ee993
8ee993
%description -n python3-%{srcname}
8ee993
NetworkX is a Python 3 package for the creation, manipulation, and
8ee993
study of the structure, dynamics, and functions of complex networks.
8ee993
8ee993
%if 0%{?rhel} == 0
8ee993
%package doc
8ee993
Summary:        Documentation for networkx
8ee993
Requires:       font(fontawesome)
8ee993
Requires:       font(lato)
8ee993
Requires:       font(robotoslab)
8ee993
Provides:       bundled(jquery)
8ee993
Provides:       bundled(js-underscore)
8ee993
8ee993
%description doc
8ee993
Documentation for networkx
8ee993
%endif
8ee993
8ee993
%prep
8ee993
%autosetup -p0 -n %{srcname}-%{srcname}-%{version}
8ee993
8ee993
# Do not use env
8ee993
for f in $(grep -FRl %{_bindir}/env .); do
8ee993
  sed -e 's,%{_bindir}/env python[[:digit:]]*,%{python3},' \
8ee993
      -e 's,%{_bindir}/env ,%{_bindir},' \
8ee993
      -i.orig $f
8ee993
  touch -r $f.orig $f
8ee993
  rm $f.orig
8ee993
done
8ee993
8ee993
# Use local objects.inv for intersphinx
8ee993
sed -e 's|\("https://docs\.python\.org/3/": \)None|\1"%{_docdir}/python3-docs/html/objects.inv"|' \
8ee993
    -e 's|\("https://numpy\.org/doc/stable/": \)None|\1"%{_docdir}/python3-numpy-doc/objects.inv"|' \
8ee993
    -i doc/conf.py
8ee993
8ee993
%build
8ee993
%py3_build
8ee993
8ee993
%if 0%{?rhel} == 0
8ee993
# Build the documentation
8ee993
PYTHONPATH=$PWD/build/lib make -C doc html
8ee993
rst2html --no-datestamp README.rst README.html
8ee993
%endif
8ee993
8ee993
%install
8ee993
%py3_install
8ee993
mv %{buildroot}%{_docdir}/networkx-%{version} ./installed-docs
8ee993
rm -f installed-docs/INSTALL.txt
8ee993
8ee993
%if 0%{?rhel} == 0
8ee993
# Repack uncompressed zip archives
8ee993
for fil in $(find doc/build -name \*.zip); do
8ee993
  mkdir zip
8ee993
  cd zip
8ee993
  unzip ../$fil
8ee993
  zip -9r ../$fil .
8ee993
  cd ..
8ee993
  rm -fr zip
8ee993
done
8ee993
%endif
8ee993
8ee993
%check
8ee993
%if 0%{?rhel} == 0
8ee993
pytest
8ee993
%endif
8ee993
8ee993
%files -n python3-networkx
8ee993
%if 0%{?rhel} == 0
8ee993
%doc README.html installed-docs/*
8ee993
%endif
8ee993
%license LICENSE.txt
8ee993
%{python3_sitelib}/networkx*
8ee993
8ee993
%if 0%{?rhel} == 0
8ee993
%files doc
8ee993
%doc doc/build/html/*
8ee993
%endif
8ee993
8ee993
%changelog
8ee993
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.2-2
8ee993
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
8ee993
  Related: rhbz#1991688
8ee993
8ee993
* Wed Aug  4 2021 Petr Lautrbach <plautrba@redhat.com> - 2.6.2-1
8ee993
- Version 2.6.2
8ee993
8ee993
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.5-4
8ee993
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
8ee993
8ee993
* Tue Jan 26 2021 Jerry James <loganjerry@gmail.com> - 2.5-3
8ee993
- Add -pyyaml patch to fix FTBFS
8ee993
8ee993
* Fri Dec 11 2020 Petr Lautrbach <plautrba@redhat.com> - 2.5-2
8ee993
- Limit BuildRequires to necessary minimum in Red Hat Enterprise Linux
8ee993
- Skip pytest in Red Hat Enterprise Linux
8ee993
- Do not build -doc subpackage for Red Hat Enterprise Linux
8ee993
8ee993
* Sat Aug 22 2020 Jerry James <loganjerry@gmail.com> - 2.5-1
8ee993
- Version 2.5
8ee993
- All patches except -doc have been upstreamed; drop them
8ee993
8ee993
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-6
8ee993
- Second attempt - Rebuilt for
8ee993
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8ee993
8ee993
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-5
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8ee993
8ee993
* Tue May 26 2020 Miro HronÄŤok <mhroncok@redhat.com> - 2.4-4
8ee993
- Rebuilt for Python 3.9
8ee993
8ee993
* Mon Mar  9 2020 Jerry James <loganjerry@gmail.com> - 2.4-3
8ee993
- Add -deprecated and -arg-order patches to fix FTBFS with python 3.9
8ee993
8ee993
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-2
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8ee993
8ee993
* Mon Nov  4 2019 Jerry James <loganjerry@gmail.com> - 2.4-1
8ee993
- New upstream version
8ee993
- Drop upstreamed patches: -is, -source-target, -union-find, -cb-iterable,
8ee993
  -iterable, and -dict-iteration
8ee993
- Unbundle fonts from the documentation
8ee993
- Reenable the tests
8ee993
- Add -test patch
8ee993
8ee993
* Wed Sep 11 2019 Jerry James <loganjerry@gmail.com> - 2.3-5
8ee993
- Add -doc patch to fix building the gallery of examples
8ee993
- Add -is patch to reduce noise in sagemath
8ee993
- Add upstream bug fix patches: -source-target, -union-find, -cb-iterable,
8ee993
  -iterable, and -dict-iteration
8ee993
8ee993
* Mon Aug 19 2019 Miro HronÄŤok <mhroncok@redhat.com> - 2.3-4
8ee993
- Rebuilt for Python 3.8
8ee993
8ee993
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-3
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8ee993
8ee993
* Thu May 16 2019 Jerry James <loganjerry@gmail.com> - 2.3-2
8ee993
- Merge the -test subpackage back into the main package (bz 1708372)
8ee993
8ee993
* Sat Apr 27 2019 Jerry James <loganjerry@gmail.com> - 2.3-1
8ee993
- New upstream version
8ee993
- Drop upstreamed -abc patch
8ee993
- Add a -test subpackage (bz 1668197)
8ee993
- Convert most Requires to Recommends (bz 1668197)
8ee993
8ee993
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-3
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
8ee993
8ee993
* Tue Oct 30 2018 Jerry James <loganjerry@gmail.com> - 2.2-2
8ee993
- Add -abc patch to quiet warnings
8ee993
8ee993
* Sat Oct 13 2018 Jerry James <loganjerry@gmail.com> - 2.2-1
8ee993
- New upstream version (bz 1600361)
8ee993
- Drop all patches
8ee993
- Drop the python2 subpackages (bz 1634570)
8ee993
- Figure out the BuildRequires all over again (bz 1576805)
8ee993
- Consolidate BuildRequires so I can tell what is actually on the list
8ee993
- Drop conditionals for RHEL < 8; this version can never appear there anyway
8ee993
- Consolidate back to a single package for the same reason
8ee993
- Temporarily disable tests due to multigraph bug in graphviz > 2.38
8ee993
8ee993
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-13
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8ee993
8ee993
* Tue Jun 19 2018 Miro HronÄŤok <mhroncok@redhat.com> - 1.11-12
8ee993
- Rebuilt for Python 3.7
8ee993
8ee993
* Fri May 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.11-11
8ee993
- Update graphviz dependency for python2
8ee993
- Drop graphviz dependency for python3 (graphviz doesn't support python3)
8ee993
8ee993
* Fri Mar 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11-10
8ee993
- Update Python 2 dependency declarations to new packaging standards
8ee993
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
8ee993
8ee993
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-9
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8ee993
8ee993
* Thu Dec 07 2017 Merlin Mathesius <mmathesi@redhat.com> - 1.11-8
8ee993
- Cleanup spec file conditionals
8ee993
8ee993
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-7
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8ee993
8ee993
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-6
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8ee993
8ee993
* Fri Dec 23 2016 Orion Poplawski <orion@cora.nwra.com> - 1.11-5
8ee993
- Add patch to fix sphinx build
8ee993
8ee993
* Mon Dec 19 2016 Miro HronÄŤok <mhroncok@redhat.com> - 1.11-5
8ee993
- Rebuild for Python 3.6
8ee993
8ee993
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
8ee993
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8ee993
8ee993
* Thu Apr 14 2016 Jerry James <loganjerry@gmail.com> - 1.11-3
8ee993
- Change pydot dependencies to pydotplus (bz 1326957)
8ee993
8ee993
* Sat Apr  2 2016 Jerry James <loganjerry@gmail.com> - 1.11-2
8ee993
- Fix gdal and pydot dependencies
8ee993
8ee993
* Sat Mar  5 2016 Jerry James <loganjerry@gmail.com> - 1.11-1
8ee993
- New upstream version
8ee993
- Drop upstreamed -numpy patch
8ee993
8ee993
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-2
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8ee993
8ee993
* Mon Feb  1 2016 Jerry James <loganjerry@gmail.com> - 1.10-1
8ee993
- Comply with latest python packaging guidelines (bz 1301767)
8ee993
8ee993
* Tue Dec  1 2015 Jerry James <loganjerry@gmail.com> - 1.10-1
8ee993
- New upstream version
8ee993
- Update URLs
8ee993
- Add -numpy patch to fix test failure
8ee993
8ee993
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-5
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
8ee993
8ee993
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-4
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8ee993
8ee993
* Sat Feb 21 2015 Jerry James <loganjerry@gmail.com> - 1.9.1-3
8ee993
- Note bundled jquery
8ee993
8ee993
* Tue Oct  7 2014 Jerry James <loganjerry@gmail.com> - 1.9.1-2
8ee993
- Fix python3-networkx-drawing subpackage (bz 1149980)
8ee993
- Fix python(3)-geo subpackage
8ee993
8ee993
* Mon Sep 22 2014 Jerry James <loganjerry@gmail.com> - 1.9.1-1
8ee993
- New upstream version
8ee993
- Fix license handling
8ee993
8ee993
* Thu Jul 10 2014 Jerry James <loganjerry@gmail.com> - 1.9-2
8ee993
- BR python-setuptools
8ee993
8ee993
* Tue Jul  8 2014 Jerry James <loganjerry@gmail.com> - 1.9-1
8ee993
- New upstream version
8ee993
- Drop upstreamed -test-rounding-fix patch
8ee993
- Upstream no longer bundles python-decorator; drop the workaround
8ee993
8ee993
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-14
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8ee993
8ee993
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.8.1-13
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8ee993
8ee993
* Thu Mar 13 2014 Pádraig Brady <pbrady@redhat.com> - 1.8.1-12
8ee993
- Split to subpackages and support EL6 and EL7
8ee993
8ee993
* Thu Oct  3 2013 Jerry James <loganjerry@gmail.com> - 1.8.1-2
8ee993
- Update project and source URLs
8ee993
8ee993
* Fri Aug  9 2013 Jerry James <loganjerry@gmail.com> - 1.8.1-1
8ee993
- New upstream version
8ee993
8ee993
* Mon Jul 29 2013 Jerry James <loganjerry@gmail.com> - 1.8-1
8ee993
- New upstream version
8ee993
- Add tex-preview BR for documentation
8ee993
8ee993
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8ee993
8ee993
* Mon Aug  6 2012 Jerry James <loganjerry@gmail.com> - 1.7-1
8ee993
- New upstream version
8ee993
8ee993
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ee993
8ee993
* Tue Jan 10 2012 Jerry James <loganjerry@gmail.com> - 1.6-2
8ee993
- Mass rebuild for Fedora 17
8ee993
8ee993
* Mon Nov 28 2011 Jerry James <loganjerry@gmail.com> - 1.6-1
8ee993
- New upstream version
8ee993
- Do not use bundled python-decorator
8ee993
- Remove Requires: ipython, needed by one example only
8ee993
- Clean junk files left in /tmp
8ee993
8ee993
* Wed Jun 22 2011 Jerry James <loganjerry@gmail.com> - 1.5-1
8ee993
- New upstream version
8ee993
- Drop defattr
8ee993
- Build documentation
8ee993
8ee993
* Sat Apr 23 2011 Jerry James <loganjerry@gmail.com> - 1.4-1
8ee993
- New upstream version
8ee993
- Build for both python2 and python3
8ee993
- Drop BuildRoot, clean script, and clean at start of install script
8ee993
8ee993
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8ee993
8ee993
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.1-2
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
8ee993
8ee993
* Wed Jan 20 2010 Conrad Meyer <konrad@tylerc.org> - 1.0.1-1
8ee993
- Bump version to 1.0.1.
8ee993
- License changed LGPLv2+ -> BSD.
8ee993
8ee993
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-4
8ee993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8ee993
8ee993
* Tue Mar 24 2009 Conrad Meyer <konrad@tylerc.org> - 0.99-3
8ee993
- Replace __python macros with direct python invocations.
8ee993
- Disable checks for now.
8ee993
- Replace a define with global.
8ee993
8ee993
* Thu Mar 12 2009 Conrad Meyer <konrad@tylerc.org> - 0.99-2
8ee993
- License is really LGPLv2+.
8ee993
- Include license as documentation.
8ee993
- Add a check section to run tests.
8ee993
8ee993
* Sat Dec 13 2008 Conrad Meyer <konrad@tylerc.org> - 0.99-1
8ee993
- Initial package.