Compare commits

...

No commits in common. "c8-stream-2.8" and "stream-gimp-2.8-rhel-8.0.0" have entirely different histories.

4 changed files with 4 additions and 20 deletions

View File

@ -1 +0,0 @@
344e6a32a5e8c7e0aaeb807e0636a163095231c2 SOURCES/pygtk-2.24.0.tar.bz2

View File

@ -11,7 +11,7 @@
Name: pygtk2
Version: 2.24.0
Release: 25%{?dist}
Release: 24%{?dist}
License: LGPLv2+
Group: Development/Languages
Summary: Python bindings for GTK+
@ -43,15 +43,7 @@ BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: libtool
BuildRequires: libxslt
# python2-numpy is only needed if you use a small subset of pygtk2, and has
# to be pulled in explicitly - there is no longer a hard Requires. Since we're
# not including python2-numpy in the GIMP Flatpak, which is the only Flatpak where
# we're including pygtk, there is no reason to build the support at all for
# a Flatpak build. (This avoids having to build python2-numpy and a pile of
# dependencies in the GIMP Flatpak.)
%if !0%{?flatpak}
BuildRequires: python2-numpy
%endif
BuildRequires: pango-devel >= %{pango_version}
BuildRequires: python2-cairo-devel >= %{pycairo_version}
BuildRequires: pygobject2-devel >= %{pygobject2_version}
@ -96,7 +88,7 @@ This package contains documentation files for %{name}.
%patch0 -p1 -b .Fix-leaks-of-Pango-objects
# Fix shebangs to system Python2.x
for file in $(find . -name '*.py' -type f)
for file in $(%{_bindir}/find . -name '*.py' -type f)
do
%{__sed} -i.orig \
-e 's~#!/usr/bin/python(2\?)~#!%{__python2}~'\
@ -107,11 +99,7 @@ do
done
%build
%if !0%{?flatpak}
%configure --enable-thread --disable-numpy --without-glade
%else
%configure --enable-thread --enable-numpy --without-glade
%endif
%{make_build}
%install
@ -119,7 +107,7 @@ done
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
# Fix python shebangs
sed -i 's|^#! /usr/bin/python(2\?)|#!%{__python2}|' %{buildroot}%{_bindir}/pygtk-demo
sed -i 's|^#! /usr/bin/python(2\?)|#!%{__python2}|' %{buildroot}/usr/bin/pygtk-demo
%files
%doc AUTHORS NEWS README MAPPING
@ -145,10 +133,6 @@ sed -i 's|^#! /usr/bin/python(2\?)|#!%{__python2}|' %{buildroot}%{_bindir}/pygtk
%{_datadir}/gtk-doc/html/pygtk/
%changelog
* Mon Jan 11 2021 Jan Beran <jaberan@redhat.com> 2.24.0-25
- Fix shebang mangling for _prefix=app (#1907579)
- disable numpy for flatpak (#1907579)
* Wed Sep 12 2018 Josef Ridky <jridky@redhat.com> - 2.24.0-24
- remove libglade dependency and sub-package (#1622134)

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (pygtk-2.24.0.tar.bz2) = 64f4344fcf7636e0b2016ffd5310250b5c02a1bf87e44aef39b5d4cf4a5fc50d27cb4f030d4c6802cff61fffb88dee7752821e3d8a4cd1c34dc3745d9ff2f0da