Accepting request 583095 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/583095 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gtk?expand=0&rev=39
This commit is contained in:
commit
6f247df03d
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 28 16:39:05 UTC 2018 - dimstar@opensuse.org
|
||||
|
||||
- Modernize spec-file by calling spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 11 14:46:35 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-gtk
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -23,9 +23,9 @@ Name: python-gtk
|
||||
Version: 2.24.0
|
||||
Release: 0
|
||||
Summary: Python bindings for the GTK+ widget set
|
||||
License: LGPL-2.1+
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.pygtk.org/
|
||||
URL: http://www.pygtk.org/
|
||||
Source: http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-%{version}.tar.bz2
|
||||
# PATCH-FIX-UPSTREAM pygtk-2.22.0-capsule.patch bgo#623965 bnc#669802 jmatejek@novell.com -- Conditionally use the new Capsule API instead of PyCObject
|
||||
Patch0: pygtk-2.22.0-capsule.patch
|
||||
@ -77,8 +77,8 @@ python's benefits.
|
||||
%setup -q -n pygtk-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python|#!/usr/bin/python2|" {} \;
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#! /usr/bin/env python|#!/usr/bin/python2|" {} \;
|
||||
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|" {} \;
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -92,7 +92,7 @@ find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -v
|
||||
mkdir -p %{buildroot}%{_docdir}
|
||||
mv %{buildroot}%{_datadir}/gtk-doc %{buildroot}%{_docdir}/%{name}
|
||||
|
||||
sed -i "s|#!/usr/bin/python|#!/usr/bin/python2|" %{buildroot}%{_bindir}/pygtk-demo
|
||||
sed -i "s|#!%{_bindir}/python|#!%{_bindir}/python2|" %{buildroot}%{_bindir}/pygtk-demo
|
||||
|
||||
rm examples/Makefile*
|
||||
# demo is already in devel package
|
||||
@ -102,8 +102,8 @@ chmod +x %{buildroot}%{_libdir}/pygtk/2.0/{,*/}*.py
|
||||
%fdupes %{buildroot}%{_datadir}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS NEWS README MAPPING ChangeLog THREADS COPYING
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS README MAPPING ChangeLog THREADS
|
||||
%exclude %{_docdir}/%{name}/html/
|
||||
%{python_sitearch}/gtk-2.0/gtk/
|
||||
%{python_sitearch}/gtk-2.0/atk.so
|
||||
@ -111,7 +111,6 @@ chmod +x %{buildroot}%{_libdir}/pygtk/2.0/{,*/}*.py
|
||||
%{python_sitearch}/gtk-2.0/pango*.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/pygtk-codegen-2.0
|
||||
%{_bindir}/pygtk-demo
|
||||
%{_includedir}/pygtk-2.0/pygtk/
|
||||
@ -127,7 +126,6 @@ chmod +x %{buildroot}%{_libdir}/pygtk/2.0/{,*/}*.py
|
||||
%{_libdir}/pygtk/2.0/demos/
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc examples/
|
||||
%{_docdir}/%{name}/html/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user