From 75b386a2bb076c0455a67bdf438c9c618e4cc66f Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Aug 09 2018 10:21:28 +0000 Subject: Invoke /usr/bin/python2 instead of /usr/bin/python, fixes #1605545, #1606784 --- diff --git a/pygobject2.spec b/pygobject2.spec index 7f4df05..f210914 100644 --- a/pygobject2.spec +++ b/pygobject2.spec @@ -2,7 +2,7 @@ Name: pygobject2 Version: 2.28.7 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPLv2+ Summary: Python 2 bindings for GObject URL: http://www.pygtk.org/ @@ -11,6 +11,7 @@ Source0: http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-%{versi ### Build Dependencies ### +BuildRequires: gcc BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(python2) @@ -51,10 +52,10 @@ This package contains documentation files for %{name}. %prep %setup -q -n pygobject-%{version} -find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|' +find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python2}|' %build -PYTHON=%{__python} +PYTHON=%{__python2} export PYTHON %configure --disable-introspection make %{?_smp_mflags} @@ -63,21 +64,16 @@ make %{?_smp_mflags} make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -name '*.la' -delete find $RPM_BUILD_ROOT -name '*.a' -delete - rm examples/Makefile* -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%ldconfig_scriptlets %files -%doc AUTHORS NEWS README -%doc examples - -%{_libdir}/libpyglib-2.0-python.so* -%dir %{python_sitearch}/gtk-2.0 -%dir %{python_sitearch}/gobject -%dir %{python_sitearch}/glib - +%doc AUTHORS NEWS README examples +%{_libdir}/libpyglib-2.0-python2.so* +%dir %{python2_sitearch}/gtk-2.0 +%dir %{python2_sitearch}/gobject +%dir %{python2_sitearch}/glib %{python2_sitearch}/gtk-2.0/* %{python2_sitearch}/pygtk.* %{python2_sitearch}/gobject/* @@ -101,6 +97,9 @@ rm examples/Makefile* %{_datadir}/pygobject/xsl %changelog +* Thu Aug 9 2018 Hans de Goede - 2.28.7-4 +- Invoke /usr/bin/python2 instead of /usr/bin/python, fixes #1605545, #1606784 + * Fri Jul 13 2018 Fedora Release Engineering - 2.28.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild