Commit Graph

436 Commits

Author SHA1 Message Date
Miro Hrončok
8dd12915a9 rpmlintrc: Filter macro-in-comment %{_pyconfig(32|64)_h} 2018-04-04 12:51:55 +02:00
Miro Hrončok
f124ad4c93 Fix broken macro invocation and broken building of C Python extensions
Revert "Use %% for actual % in spec"

This reverts commit 90512a5a1b.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1560103
2018-04-04 12:51:55 +02:00
Miro Hrončok
23b7cdc7ee rpmlintrc: Do not filter library-without-ldconfig-post on F < 28 2018-04-04 12:51:43 +02:00
Miro Hrončok
1c084246f6 Add rpmlintrc file
Filter all the errors and warnings. This allows us to actually read the rpmlint
output to get new information. From now on, we can rely on this information
when pushing updates.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1548683

Backport of https://src.fedoraproject.org/rpms/python37/pull-request/10
2018-03-29 16:45:01 +02:00
Miro Hrončok
e73306ff64 Use %% for actual % in spec
rpmlint reports this as macro in comment, however it was left here, because it
is not macro and not comment. On the other hand, % shall be escaped using %%.
All this needs to blow is somebody defining a macro called _pyconfig64_h.
2018-03-29 16:17:44 +02:00
Miro Hrončok
b0edf85387 Add -n option for pathfix.py (#1546990) 2018-03-29 16:17:42 +02:00
Miro Hrončok
3324e84bc3 Fix the py_byte_compile macro to work on Python 2
See https://bugzilla.redhat.com/show_bug.cgi?id=1484993

Inspired by Terje Røsten's workaround from that bugzilla
2018-03-29 16:09:04 +02:00
Charalampos Stratakis
bc228b8ca2 Do not send IP addresses in SNI TLS extension 2018-03-13 17:00:59 +01:00
Charalampos Stratakis
6e02335726 Fix the name macro in the description 2018-02-08 14:55:14 +01:00
Michal Cyprian
956845fa5b Remove sys.executable check from change-user-install-location patch
Resolves: rhbz#1532287
2018-02-08 14:52:09 +01:00
Charalampos Stratakis
73123677e8 Define TLS cipher suite on build time 2018-02-01 11:23:20 +01:00
Charalampos Stratakis
d20afa1807 Restore the PyExc_RecursionErrorInst public symbol 2018-01-23 17:22:24 +01:00
Charalampos Stratakis
d3a063dd35 Properly add patch 273 2018-01-19 17:46:46 +01:00
Charalampos Stratakis
08e5703d68 Fix localeconv() encoding for LC_NUMERIC 2018-01-19 17:36:21 +01:00
Igor Gnatenko
ec05ee2814 R: gdbm-devel → R: gdbm for python3-libs
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-19 12:46:06 +01:00
Miro Hrončok
2787c85b78 Require large enough gdbm (fixup for previous commit) 2018-01-17 12:10:59 +01:00
Charalampos Stratakis
e7bbd26b13 Rebuild for reverted gdbm 1:1.13 on F27 2018-01-16 20:37:17 +01:00
Charalampos Stratakis
9109dafcdb Update to version 3.6.4
Rebased patches: 189, 262

Dropped patches due to being upstreamed: 277, 279
2018-01-15 15:51:53 +01:00
Charalampos Stratakis
bfc0c338e5 Remove a ppc64 segfault workaround which provided a larger stack for that
arch, as it doesn't seem to affect the build anymore.
2017-12-04 18:06:06 +01:00
Charalampos Stratakis
8b736574c2 Masc two macros in comments that were expanded.
Remove the commented out file for the time shared library.
2017-12-04 18:06:00 +01:00
Charalampos Stratakis
b5bbd7e7a9 Remove python-gdb.py source file as it now gets installed from the upstream sources 2017-12-04 18:05:53 +01:00
Charalampos Stratakis
6eb19770a6 Remove our downstream systemtap instrumentation as now upstream provides us
with dtrace hooks.
2017-12-04 18:05:43 +01:00
Charalampos Stratakis
a8c86d3aed Apply the patch 279 correctly. 2017-10-09 13:21:53 +02:00
Charalampos Stratakis
22b8f2b10b Fix memory corruption due to allocator mix (rhbz#1498207) 2017-10-09 13:10:17 +02:00
Charalampos Stratakis
47069ff417 Update to Python 3.6.3
Patches 270, 271, 272 were removed as they have been upstreamed.

Patch 277 was added to fix two hanging tests from test_subprocess.

Added gdb at the build dependencies, since gdb is not anymore in the
buildroot, and that made test_gdb to be skipped.
2017-10-06 13:30:25 +02:00
Miro Hrončok
71718b673e Make the -devel package require redhat-rpm-config
https://bugzilla.redhat.com/show_bug.cgi?id=1217376
https://bugzilla.redhat.com/show_bug.cgi?id=1496757
https://bugzilla.redhat.com/show_bug.cgi?id=1218294

Later should be changed to a specific subpackage.
2017-09-29 12:30:12 +02:00
Miro Hrončok
0652b06063 Move pathfix.py to bindir
See https://github.com/fedora-python/python-rpm-porting/issues/24
2017-09-20 14:16:59 +02:00
Iryna Shcherbina
685fb7bc99 Fix /usr/bin/env dependency from python3-tools (rhbz#1482118) 2017-09-14 15:30:27 +02:00
Iryna Shcherbina
87e35ed7a5 Include -g in LDFLAGS sent to the linker (rhbz#1483222)
Include -g flag for both compilation and linking so that the debugging
information is correctly generated.
2017-09-06 17:19:02 +02:00
Petr Viktorin
7d6b083b83 Add changelog entry for this round of cleanups 2017-09-05 17:31:28 +02:00
Petr Viktorin
15a5ab1694 Make the main description also applicable to the SRPM
Also, add a comment to highlight its dual purpose
2017-09-05 11:54:13 +02:00
Petr Viktorin
7c72174fbd Snipe a typo 2017-09-05 11:54:06 +02:00
Petr Viktorin
4ced9a188e Check %{_lib} rather than hardcode all 64-bit arches
Checking %{lib} isn't guaranteed to determine the word size
correctly, but it works for current arches and is more likely
to stay correct when a new arch are added.
2017-09-05 11:43:32 +02:00
Petr Viktorin
4f6b427d2e Include audiotest.au again
These files were removed because historically they included
a short sound clip from Monty Python shows, which might fall
under copyright.
In 2010 this was replaced upstream by a recording of Guido
van Rossum saying something silly in Dutch. So, there's no
reason to exclude the file anymore.

The bug mentioned in the removed comment is private due to
corporate policy from 2004. Sorry for that!
The problem itself is discussed at: http://bugs.python.org/issue7755
2017-09-05 11:33:00 +02:00
Petr Viktorin
39c4234d48 Remove the %clean section 2017-09-04 16:06:13 +02:00
Petr Viktorin
64593af0dd Move systemtap tapfile installation into the per-build function 2017-09-04 16:06:13 +02:00
Petr Viktorin
6c5169565e Move multilib support for pyconfig.h to the per-build section 2017-09-04 16:06:13 +02:00
Petr Viktorin
474cc9f637 install: Move renaming -devel scripts to the per-build function 2017-09-04 16:06:13 +02:00
Petr Viktorin
ec8375ccf7 Move packaging checks from %install to %check 2017-09-04 16:06:13 +02:00
Petr Viktorin
d54a775b46 Remove some unneeded old cleanups in %install 2017-09-04 16:06:13 +02:00
Petr Viktorin
f86b3d1707 Move creation of site-packages/__pycache__ dirs together 2017-09-04 16:06:13 +02:00
Petr Viktorin
208332b1c9 Clean up the start of the %install section
- Rewrite comments
- Move common part of GDB hook install out of the per-build function
2017-09-04 16:06:13 +02:00
Petr Viktorin
b3fc51be32 Replace ${RPM_BUILD_ROOT} by %{buildroot} 2017-09-04 16:06:13 +02:00
Petr Viktorin
db2797c8b7 Clean up the %build section
- Add more explanatory comments, remove historical notes
- Put configuration options in %%global
- Shell: use $() instead of backticks
- Remove unused aruments to BuildPython()! (fun fact: most were *never* used!)
2017-09-04 16:06:13 +02:00
Petr Viktorin
e441743e28 Don't remove the buildroot in %install 2017-09-04 16:06:13 +02:00
Miro Hrončok
1acd7dfa33 Remove %{pylibdir}/Tools/scripts/2to3
* the file has wrong shebang (#!/usr/bin/env python)
    * it is not covered by the shebang correction because it is not
      named with .py extension
    * a note has been added to the shebang correction code about this
 * ignoring shebang, the file is identical to /usr/bin/2to3
   * thus redundant
2017-09-04 10:54:33 +02:00
Miro Hrončok
5f24f39d01 For consistency, require /usr/sbin/ifconfig instead of net-tools 2017-09-01 11:49:17 +02:00
Miro Hrončok
51501f9a0b Conditionalize systemtap-devel BuildRequires 2017-09-01 11:45:01 +02:00
Miro Hrončok
33e1101626 Expat >= 2.1.0 is everywhere, remove explicit requires
(Except EL6)
2017-09-01 11:04:02 +02:00
Miro Hrončok
357f40b6c4 Move python2-tools conflicts to tools subpackage
They were previously wrongly placed in tkinter subpackage
2017-09-01 10:43:39 +02:00