]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pygobject3/pygobject3.nm
glibc: Update to 2.19.
[people/ms/ipfire-3.x.git] / pygobject3 / pygobject3.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = pygobject3
7 version = %{ver_major}.%{ver_minor}
8 ver_major = 3.7
9 ver_minor = 4
10 release = 1
11
12 groups = Development/Tools
13 url = http://www.pygtk.org/
14 license = LGPLv2+
15 summary = Python 2 bindings for GObject.
16
17 description
18 The %{name} package provides a convenient wrapper for the GObject library
19 for use in Python programs.
20 end
21
22 thisapp = pygobject-%{version}
23
24 source_dl = http://ftp.gnome.org/pub/GNOME/sources/pygobject/%{ver_major}/
25 sources = %{thisapp}.tar.xz
26
27 build
28 requires
29 cairo-gobject-devel >= 1.12.12
30 chrpath
31 glib2-devel >= 2.34.2
32 gobject-introspection-devel >= 1.34.2
33 pkg-config
34 python-cairo-devel
35 python3-cairo-devel
36 python-devel
37 python3-devel
38 end
39
40 DIR_APP3 = %{DIR_APP}-python3
41
42 prepare_cmds
43 cp -av %{DIR_APP} %{DIR_APP3}
44
45 pushd %{DIR_APP3}
46 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python3}|'
47 popd
48
49 find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python}|'
50 end
51
52 build
53 pushd %{DIR_APP3}
54 export PYTHON=%{python3}
55 ./configure %{configure_options}
56 make %{PARALLELISMFLAGS}
57 popd
58
59 export PYTHON=%{python}
60 ./configure %{configure_options}
61 make %{PARALELLISMFLAGS}
62 end
63
64 install
65 pushd %{DIR_APP3}
66 export PYTHON=%{python3}
67 make install DESTDIR=%{BUILDROOT}
68 chrpath --delete %{BUILDROOT}%{python3_sitearch}/gi/{*.so,*/*.so}
69 popd
70
71 export PYTHON=%{python}
72 make install DESTDIR=%{BUILDROOT}
73 chrpath --delete %{BUILDROOT}%{python_sitearch}/gi/{*.so,*/*.so}
74 end
75 end
76
77 packages
78 package python-gobject3
79 requires
80 gobject-introspection >= 1.34.2
81 python-cairo
82 end
83 end
84
85 package python3-gobject3
86 template PYTHON3
87
88 requires
89 gobject-introspection >= 1.34.2
90 python3-cairo
91 end
92 end
93
94 package %{name}-devel
95 template DEVEL
96
97 provides
98 python-gobject3-devel
99 python3-gobject3-devel
100 end
101
102 requires
103 glib2-devel
104 gobject-introspection-devel >= 1.34.2
105 end
106
107 files += \
108 %{libdir}/*python3*.so.*
109 end
110
111 package %{name}-debuginfo
112 template DEBUGINFO
113 end
114 end