1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
7 version = %{ver_major}.%{ver_minor}
12 groups = Development/Tools
13 url = http://www.pygtk.org/
15 summary = Python 2 bindings for GObject.
18 The %{name} package provides a convenient wrapper for the GObject library
19 for use in Python programs.
22 thisapp = pygobject-%{version}
24 source_dl = http://ftp.gnome.org/pub/GNOME/sources/pygobject/%{ver_major}/
25 sources = %{thisapp}.tar.xz
29 cairo-gobject-devel >= 1.12.12
31 gobject-introspection-devel >= 1.34.2
39 DIR_APP3 = %{DIR_APP}-python3
42 cp -av %{DIR_APP} %{DIR_APP3}
45 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python3}|'
48 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python}|'
53 export PYTHON=%{python3}
54 ./configure %{configure_options}
55 make %{PARALLELISMFLAGS}
58 export PYTHON=%{python}
59 ./configure %{configure_options}
60 make %{PARALELLISMFLAGS}
65 export PYTHON=%{python3}
66 make install DESTDIR=%{BUILDROOT}
69 export PYTHON=%{python}
70 make install DESTDIR=%{BUILDROOT}
75 package python-gobject3
77 gobject-introspection >= 1.34.2
82 {libdir}/*python2*.so.*
85 package python3-gobject3
89 gobject-introspection >= 1.34.2
94 %{libdir}/*python3*.so.*
101 python-gobject3-devel
102 python3-gobject3-devel
107 gobject-introspection-devel >= 1.34.2
111 %{libdir}/*python3*.so
114 package %{name}-debuginfo