Dominique Leuenberger 2017-02-13 06:46:59 +00:00 committed by Git OBS Bridge
commit b4f8900c6d
3 changed files with 10 additions and 3 deletions

View File

@ -60,7 +60,7 @@ rm -rf "$tmpdir"
}
function python_requires {
for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | sed -e 's:#.*::' -e 's:raise ImportError.*::' -e 's:.*"from gi.repository import .*".*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+$::g' -e 's:\s+as\s+\w+::g' -e 's:,: :g'); do
for module in $(grep -h -P "^\s*from gi\.repository import (\w+)" $1 | sed -e 's:#.*::' -e 's:raise ImportError.*::' -e 's:.*"from gi.repository import .*".*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+$::g' -e 's:\s+as\s+\w+::g' -e 's:,: :g'); do
split_name_version $module
print_req_prov
# Temporarly disabled... this is not true if the python code is written for python3... And there seems no real 'way' to identify this.

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Feb 11 16:24:53 UTC 2017 - dimstar@opensuse.org
- gi-find-deps.sh: do not match "from gi.repository import" if
there is anything but white space in front of it (usually
indicates we are in some descriptive comment block)"
-------------------------------------------------------------------
Wed Sep 21 17:19:41 UTC 2016 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package gobject-introspection
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@ -81,9 +81,9 @@ a uniform, machine readable format.
%package devel
Summary: GObject Introspection Development Files
# Note: the devel package requires the binaries, not just the library
License: LGPL-2.1+
Group: Development/Libraries/GNOME
# Note: the devel package requires the binaries, not just the library
Requires: %{name} = %{version}
Requires: libffi-devel