| |
@@ -14,7 +14,7 @@
|
| |
# WARNING When rebasing to a new Python version,
|
| |
# remember to update the python3-docs package as well
|
| |
Version: %{pybasever}.0
|
| |
- Release: 7%{?dist}
|
| |
+ Release: 8%{?dist}
|
| |
License: Python
|
| |
|
| |
|
| |
@@ -200,8 +200,8 @@
|
| |
|
| |
# A simple script to check timestamps of bytecode files
|
| |
# Run in check section with Python that is currently being built
|
| |
- # Written by bkabrda
|
| |
- Source8: check-pyc-and-pyo-timestamps.py
|
| |
+ # Originally written by bkabrda
|
| |
+ Source8: check-pyc-timestamps.py
|
| |
|
| |
# Desktop menu entry for idle3
|
| |
Source10: idle3.desktop
|
| |
@@ -893,6 +893,14 @@
|
| |
# See https://github.com/fedora-python/python-rpm-porting/issues/24
|
| |
cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/
|
| |
|
| |
+ # Install i18n tools to bindir
|
| |
+ # They are also in python2, so we version them
|
| |
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1571474
|
| |
+ for tool in pygettext msgfmt; do
|
| |
+ cp -p Tools/i18n/${tool}.py %{buildroot}%{_bindir}/${tool}%{pybasever}.py
|
| |
+ ln -s ${tool}%{pybasever}.py %{buildroot}%{_bindir}/${tool}3.py
|
| |
+ done
|
| |
+
|
| |
# Switch all shebangs to refer to the specific Python version.
|
| |
# This currently only covers files matching ^[a-zA-Z0-9_]+\.py$,
|
| |
# so handle files named using other naming scheme separately.
|
| |
@@ -900,6 +908,7 @@
|
| |
Tools/scripts/pathfix.py \
|
| |
-i "%{_bindir}/python%{pybasever}" -pn \
|
| |
%{buildroot} \
|
| |
+ %{buildroot}%{_bindir}/*%{pybasever}.py \
|
| |
%{?with_gdb_hooks:%{buildroot}$DirHoldingGdbPy/*.py}
|
| |
|
| |
# Remove tests for python3-tools which was removed in
|
| |
@@ -964,6 +973,8 @@
|
| |
rm %{buildroot}%{_bindir}/python3
|
| |
rm %{buildroot}%{_bindir}/pydoc3
|
| |
rm %{buildroot}%{_bindir}/pathfix.py
|
| |
+ rm %{buildroot}%{_bindir}/pygettext3.py
|
| |
+ rm %{buildroot}%{_bindir}/msgfmt3.py
|
| |
rm %{buildroot}%{_bindir}/idle3
|
| |
rm %{buildroot}%{_bindir}/python3-*
|
| |
rm %{buildroot}%{_bindir}/pyvenv
|
| |
@@ -1328,8 +1339,13 @@
|
| |
%{_bindir}/python3-config
|
| |
%{_libdir}/pkgconfig/python3.pc
|
| |
%{_bindir}/pathfix.py
|
| |
+ %{_bindir}/pygettext3.py
|
| |
+ %{_bindir}/msgfmt3.py
|
| |
%endif
|
| |
|
| |
+ %{_bindir}/pygettext%{pybasever}.py
|
| |
+ %{_bindir}/msgfmt%{pybasever}.py
|
| |
+
|
| |
%{_bindir}/python%{pybasever}-config
|
| |
%{_bindir}/python%{LDVERSION_optimized}-config
|
| |
%{_bindir}/python%{LDVERSION_optimized}-*-config
|
| |
@@ -1528,6 +1544,10 @@
|
| |
# ======================================================
|
| |
|
| |
%changelog
|
| |
+ * Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-8
|
| |
+ - Add /usr/bin/pygettext3.py and msgfmt3.py to python3-devel
|
| |
+ Resolves: rhbz#1571474
|
| |
+
|
| |
* Fri Aug 17 2018 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-7
|
| |
- Backport TLS 1.3 related fixes to fix FTBFS
|
| |
Resolves: rhbz#1609291
|
| |
2 unrelated changes, yet I've done the second as a reaction for changes required for the first. See individual commits.