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
32 gobject-introspection-devel >= 1.34.2
40 DIR_APP3 = %{DIR_APP}-python3
43 cp -av %{DIR_APP} %{DIR_APP3}
46 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python3}|'
49 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python}|'
54 export PYTHON=%{python3}
55 ./configure %{configure_options}
56 make %{PARALLELISMFLAGS}
59 export PYTHON=%{python}
60 ./configure %{configure_options}
61 make %{PARALELLISMFLAGS}
66 export PYTHON=%{python3}
67 make install DESTDIR=%{BUILDROOT}
68 chrpath --delete %{BUILDROOT}%{python3_sitearch}/gi/{*.so,*/*.so}
71 export PYTHON=%{python}
72 make install DESTDIR=%{BUILDROOT}
73 chrpath --delete %{BUILDROOT}%{python_sitearch}/gi/{*.so,*/*.so}
78 package python-gobject3
80 gobject-introspection >= 1.34.2
85 {libdir}/*python2*.so.*
88 package python3-gobject3
92 gobject-introspection >= 1.34.2
97 %{libdir}/*python3*.so.*
100 package %{name}-devel
104 python-gobject3-devel
105 python3-gobject3-devel
110 gobject-introspection-devel >= 1.34.2
114 %{libdir}/*python3*.so
117 package %{name}-debuginfo