| |
@@ -2,26 +2,23 @@
|
| |
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
|
| |
#
|
| |
# We can generate PDF documentation as a lesser substitute.
|
| |
- %bcond_without doc_pdf
|
| |
+ %bcond doc_pdf 1
|
| |
|
| |
Name: python-hdfs
|
| |
- Version: 2.6.0
|
| |
- Release: 5%{?dist}
|
| |
+ Version: 2.7.2
|
| |
+ Release: %autorelease
|
| |
Summary: API and command line interface for HDFS
|
| |
|
| |
+ # SPDX
|
| |
License: MIT
|
| |
URL: https://github.com/mtth/hdfs
|
| |
- Source0: %{url}/archive/%{version}/hdfs-%{version}.tar.gz
|
| |
+ Source0: %{url}/archive/v%{version}/hdfs-%{version}.tar.gz
|
| |
# Downstream man pages in groff_man(7) format. These were written for Fedora
|
| |
# based on the tools’ --help output and should be updated if the command-line
|
| |
# interface changes.
|
| |
Source1: hdfscli.1
|
| |
Source2: hdfscli-avro.1
|
| |
|
| |
- # Use unittest.mock where available
|
| |
- # https://github.com/mtth/hdfs/pull/177
|
| |
- Patch0: https://github.com/mtth/hdfs/pull/177.patch
|
| |
-
|
| |
# The base package is arched because extras metapackages requiring fastavro are
|
| |
# not available on 32-bit architectures
|
| |
# (https://bugzilla.redhat.com/show_bug.cgi?id=1943932).
|
| |
@@ -86,8 +83,6 @@
|
| |
-exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' |
|
| |
xargs -r -t sed -r -i '1{/^#!/d}'
|
| |
|
| |
- cp -p '%{SOURCE1}' %{?fastavro_arch:'%{SOURCE2}'} .
|
| |
-
|
| |
|
| |
%generate_buildrequires
|
| |
%pyproject_buildrequires -x kerberos%{?fastavro_arch:,avro,dataframe}
|
| |
@@ -152,8 +147,8 @@
|
| |
%pyproject_wheel
|
| |
|
| |
%if %{with doc_pdf}
|
| |
- PYTHONPATH="${PWD}" sphinx-build -b latex doc _latex %{?_smp_mflags}
|
| |
- %make_build -C _latex
|
| |
+ PYTHONPATH="${PWD}" sphinx-build -b latex doc _latex -j%{?_smp_build_ncpus}
|
| |
+ %make_build -C _latex LATEXMKOPTS='-quiet'
|
| |
%endif
|
| |
|
| |
|
| |
@@ -161,7 +156,7 @@
|
| |
%pyproject_install
|
| |
%pyproject_save_files hdfs
|
| |
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 \
|
| |
- hdfscli.1 %{?fastavro_arch:hdfscli-avro.1}
|
| |
+ %{SOURCE1} %{?fastavro_arch:%{SOURCE2}}
|
| |
|
| |
|
| |
%check
|
| |
@@ -192,105 +187,4 @@
|
| |
|
| |
|
| |
%changelog
|
| |
- * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-5
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
| |
-
|
| |
- * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-4
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
| |
-
|
| |
- * Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 2.6.0-3
|
| |
- - Rebuilt for Python 3.11
|
| |
-
|
| |
- * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-2
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
| |
-
|
| |
- * Mon Nov 08 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.6.0-1
|
| |
- - Update to 2.6.0 (close RHBZ#2020978)
|
| |
-
|
| |
- * Fri Oct 29 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-12
|
| |
- - Use the new %%pyproject_check_import macro
|
| |
-
|
| |
- * Wed Oct 27 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-11
|
| |
- - Fix a typo in a comment in the spec file
|
| |
-
|
| |
- * Sun Oct 10 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 2.5.8-10
|
| |
- - Fully modernize the packaging
|
| |
- - Switch to “new guidelines” / pyproject-rpm-macros
|
| |
- - Drop conditionals for Python 2 on obsolete Fedora releases
|
| |
- - Rely on Python dependency generator (no manual Requires)
|
| |
- - Build PDF instead of HTML documentation due to guideline issues
|
| |
- - Drop dependencies on deprecated nose and mock
|
| |
- - Properly handle extras metapackages and dependency on unported
|
| |
- python-fastavro for 32-bit architectures; move the hdfscli-avro entry point
|
| |
- into the new python3-hdfs+avro package
|
| |
- - Add man pages for command-line tools
|
| |
-
|
| |
- * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-9
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
| |
-
|
| |
- * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.8-8
|
| |
- - Rebuilt for Python 3.10
|
| |
-
|
| |
- * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-7
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
| |
-
|
| |
- * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-6
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
-
|
| |
- * Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-5
|
| |
- - Rebuilt for Python 3.9
|
| |
-
|
| |
- * Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.8-4
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
| |
-
|
| |
- * Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-3
|
| |
- - Rebuilt for Python 3.8.0rc1 (#1748018)
|
| |
-
|
| |
- * Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.5.8-2
|
| |
- - Rebuilt for Python 3.8
|
| |
-
|
| |
- * Thu Aug 01 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.5.8-1
|
| |
- - Update to new version
|
| |
-
|
| |
- * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.6-2
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
| |
-
|
| |
- * Wed Jun 19 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.6-1
|
| |
- - New upstream version
|
| |
-
|
| |
- * Wed Jun 12 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.4-1
|
| |
- - New upstream version
|
| |
-
|
| |
- * Mon May 27 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.2-2
|
| |
- - Add buildrequire
|
| |
- - Fix readme extension
|
| |
-
|
| |
- * Mon May 27 2019 Luis Bazan <lbazan@fedoraproject.org> - 2.5.2-1
|
| |
- - New upstream version
|
| |
-
|
| |
- * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
-
|
| |
- * Thu Nov 08 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.1.0-7
|
| |
- - Disable py2 on F30+
|
| |
- - Use py3 sphinx for document generation
|
| |
-
|
| |
- * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
| |
-
|
| |
- * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-5
|
| |
- - Rebuilt for Python 3.7
|
| |
-
|
| |
- * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-4
|
| |
- - Rebuilt for Python 3.7
|
| |
-
|
| |
- * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
| |
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
| |
-
|
| |
- * Tue Jan 23 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 2.1.0-2
|
| |
- - Fix doc generation
|
| |
- - Fix summary macro
|
| |
- - List binary files
|
| |
-
|
| |
- * Mon Jan 15 2018 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.1.0-1
|
| |
- - Initial build
|
| |
+ %autochangelog
|
| |
This is https://src.fedoraproject.org/rpms/python-hdfs/pull-request/2, with the “Drop i686 support (leaf package)” commit dropped in order to keep the
i686
packages around in stable releases.