SHA256
1
0
forked from pool/python-gtk

Accepting request 1129155 from GNOME:Next

- Use %autosetup macro. Allows to eliminate the usage of
  deprecated %patchN.

- add python-rpm-macros dependency

OBS-URL: https://build.opensuse.org/request/show/1129155
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/python-gtk?expand=0&rev=6
This commit is contained in:
Bjørn Lie 2023-11-27 15:46:34 +00:00 committed by Git OBS Bridge
parent 70af26eef1
commit 1170131273
2 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,13 @@
-------------------------------------------------------------------
Mon Nov 27 14:34:35 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %autosetup macro. Allows to eliminate the usage of
deprecated %patchN.
-------------------------------------------------------------------
Tue Jan 11 21:04:53 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add python-rpm-macros dependency
- add python-rpm-macros dependency
-------------------------------------------------------------------
Fri May 14 19:27:21 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-gtk
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -75,9 +75,7 @@ can write in python with PyGTK (within reason), but with all of
python's benefits.
%prep
%setup -q -n pygtk-%{version}
%patch0 -p1
%patch1 -p1
%autosetup -p1 -n pygtk-%{version}
find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python|#!%{_bindir}/python2|" {} \;
find examples -type f -name "*.py" -exec sed -i "s|#! %{_bindir}/env python|#!%{_bindir}/python2|" {} \;