]> git.pld-linux.org Git - packages/gegl-gtk.git/blob - gegl-gtk.spec
- libffi rebuild
[packages/gegl-gtk.git] / gegl-gtk.spec
1 #
2 # Conditional build:
3 %bcond_without  gtk2            # GTK+2 API
4 %bcond_without  gtk3            # GTK+3 API
5 # reenable when new babl/gegl will arrive that actually is able to build
6 %bcond_with     introspection   # API introspection
7 # reenable when new babl/gegl will arrive that actually is able to build
8 %bcond_with     vala            # Vala API
9 #
10 %if %{without introspection}
11 %undefine       with_vala
12 %endif
13 Summary:        Utility library for using GEGL in GTK+ based applications
14 Summary(pl.UTF-8):      Biblioteka narzędziowa do używania biblioteki GEGL w aplikacjach opartych na GTK+
15 Name:           gegl-gtk
16 Version:        0.0.7
17 Release:        4
18 License:        LGPL v3+
19 Group:          Libraries
20 Source0:        ftp://ftp.gimp.org/pub/gegl-gtk/0.0/%{name}-%{version}.tar.bz2
21 # Source0-md5:  646b2cf05a636ece6d55a9ba7d179361
22 # git diff 0.0.7 c0ea020056feeed9edff5fbf2b812c5606366d9e (before switch to gegl 0.3)
23 # (then adjusted to apply on dist tarball)
24 Patch0:         %{name}-git.patch
25 URL:            http://www.gegl.org/
26 BuildRequires:  autoconf >= 2.54
27 BuildRequires:  automake >= 1.6
28 BuildRequires:  babl-devel >= 0.1.4
29 %{?with_introspection:BuildRequires:    /usr/share/gir-1.0/Gegl-0.2.gir}
30 BuildRequires:  cairo-gobject-devel
31 BuildRequires:  gegl-devel >= 0.2.0
32 BuildRequires:  glib2-devel >= 1:2.22.0
33 BuildRequires:  gtk+2-devel >= 2:2.18.0
34 BuildRequires:  gtk+3-devel >= 3.0.0
35 %{?with_introspection:BuildRequires:    gobject-introspection-devel >= 0.10.0}
36 BuildRequires:  gtk-doc >= 1.0
37 BuildRequires:  libtool
38 BuildRequires:  perl-base
39 BuildRequires:  pkgconfig
40 %{?with_vala:BuildRequires:     vala}
41 Requires:       babl >= 0.1.4
42 Requires:       gegl >= 0.2.0
43 Requires:       glib2 >= 1:2.22.0
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
47 Utility library for using GEGL in GTK+ based applications.
48
49 %description -l pl.UTF-8
50 Biblioteka narzędziowa do używania biblioteki GEGL w aplikacjach
51 opartych na GTK+.
52
53 %package -n gegl-gtk2
54 Summary:        Utility library for using GEGL in GTK+ 2 based applications
55 Summary(pl.UTF-8):      Biblioteka narzędziowa do używania biblioteki GEGL w aplikacjach opartych na GTK+ 2
56 Group:          Libraries
57 Requires:       babl >= 0.1.4
58 Requires:       gegl >= 0.2.0
59 Requires:       glib2 >= 1:2.22.0
60 Requires:       gtk+2 >= 2:2.18.0
61
62 %description -n gegl-gtk2
63 Utility library for using GEGL in GTK+ 2 based applications.
64
65 %description -n gegl-gtk2 -l pl.UTF-8
66 Biblioteka narzędziowa do używania biblioteki GEGL w aplikacjach
67 opartych na GTK+ 2.
68
69 %package -n gegl-gtk2-devel
70 Summary:        Header files for gegl-gtk2 library
71 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gegl-gtk2
72 Group:          Development/Libraries
73 Requires:       gegl-gtk2 = %{version}-%{release}
74 Requires:       babl-devel >= 0.1.4
75 Requires:       gegl-devel >= 0.2.0
76 Requires:       glib2-devel >= 1:2.22.0
77 Requires:       gtk+2-devel >= 2:2.18.0
78
79 %description -n gegl-gtk2-devel
80 Header files for gegl-gtk2 library.
81
82 %description -n gegl-gtk2-devel -l pl.UTF-8
83 Pliki nagłówkowe biblioteki gegl-gtk2.
84
85 %package -n gegl-gtk2-static
86 Summary:        Static gegl-gtk2 library
87 Summary(pl.UTF-8):      Statyczna biblioteka gegl-gtk2
88 Group:          Development/Libraries
89 Requires:       gegl-gtk2-devel = %{version}-%{release}
90
91 %description -n gegl-gtk2-static
92 Static gegl-gtk2 library.
93
94 %description -n gegl-gtk2-static -l pl.UTF-8
95 Statyczna biblioteka gegl-gtk2.
96
97 %package -n vala-gegl-gtk2
98 Summary:        Vala API for gegl-gtk2 library
99 Summary(pl.UTF-8):      API języka Vala dla biblioteki gegl-gtk2
100 Group:          Development/Libraries
101 Requires:       gegl-gtk2-devel = %{version}-%{release}
102 Requires:       vala-gegl >= 0.2.0
103
104 %description -n vala-gegl-gtk2
105 Vala API for gegl-gtk2 library.
106
107 %description -n vala-gegl-gtk2 -l pl.UTF-8
108 API języka Vala dla biblioteki gegl-gtk2.
109
110 %package -n gegl-gtk3
111 Summary:        Utility library for using GEGL in GTK+ 3 based applications
112 Summary(pl.UTF-8):      Biblioteka narzędziowa do używania biblioteki GEGL w aplikacjach opartych na GTK+ 3
113 Group:          Libraries
114 Requires:       babl >= 0.1.4
115 Requires:       gegl >= 0.2.0
116 Requires:       glib2 >= 1:2.22.0
117 Requires:       gtk+3 >= 3.0.0
118
119 %description -n gegl-gtk3
120 Utility library for using GEGL in GTK+ 3 based applications.
121
122 %description -n gegl-gtk3 -l pl.UTF-8
123 Biblioteka narzędziowa do używania biblioteki GEGL w aplikacjach
124 opartych na GTK+ 3.
125
126 %package -n gegl-gtk3-devel
127 Summary:        Header files for gegl-gtk3 library
128 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gegl-gtk3
129 Group:          Development/Libraries
130 Requires:       gegl-gtk3 = %{version}-%{release}
131 Requires:       babl-devel >= 0.1.4
132 Requires:       gegl-devel >= 0.2.0
133 Requires:       glib2-devel >= 1:2.22.0
134 Requires:       gtk+3-devel >= 3.0.0
135
136 %description -n gegl-gtk3-devel
137 Header files for gegl-gtk3 library.
138
139 %description -n gegl-gtk3-devel -l pl.UTF-8
140 Pliki nagłówkowe biblioteki gegl-gtk3.
141
142 %package -n gegl-gtk3-static
143 Summary:        Static gegl-gtk3 library
144 Summary(pl.UTF-8):      Statyczna biblioteka gegl-gtk3
145 Group:          Development/Libraries
146 Requires:       gegl-gtk3-devel = %{version}-%{release}
147
148 %description -n gegl-gtk3-static
149 Static gegl-gtk3 library.
150
151 %description -n gegl-gtk3-static -l pl.UTF-8
152 Statyczna biblioteka gegl-gtk3.
153
154 %package -n vala-gegl-gtk3
155 Summary:        Vala API for gegl-gtk3 library
156 Summary(pl.UTF-8):      API języka Vala dla biblioteki gegl-gtk3
157 Group:          Development/Libraries
158 Requires:       gegl-gtk3-devel = %{version}-%{release}
159 Requires:       vala-gegl >= 0.2.0
160
161 %description -n vala-gegl-gtk3
162 Vala API for gegl-gtk3 library.
163
164 %description -n vala-gegl-gtk3 -l pl.UTF-8
165 API języka Vala dla biblioteki gegl-gtk3.
166
167 %package apidocs
168 Summary:        gegl library API documentation
169 Summary(pl.UTF-8):      Dokumentacja API biblioteki gegl
170 Group:          Documentation
171 Requires:       gtk-doc-common
172
173 %description apidocs
174 gegl library API documentation.
175
176 %description apidocs -l pl.UTF-8
177 Dokumentacja API biblioteki gegl.
178
179 %prep
180 %setup -q
181 %patch0 -p1
182
183 %build
184 %{__libtoolize}
185 %{__aclocal} -I m4
186 %{__autoconf}
187 %{__autoheader}
188 %{__automake}
189 for d in %{?with_gtk2:2.0} %{?with_gtk3:3.0} ; do
190 install -d build-gtk${d}
191 cd build-gtk${d}
192 ../%configure \
193         %{!?with_introspection:--disable-introspection} \
194         --disable-silent-rules \
195         --enable-static \
196         --with-gtk=${d} \
197         --with-html-dir=%{_gtkdocdir} \
198         --with-vala%{!?with_vala:=no}
199 %{__make}
200 cd ..
201 done
202
203 %install
204 rm -rf $RPM_BUILD_ROOT
205
206 for d in %{?with_gtk2:2.0} %{?with_gtk3:3.0} ; do
207 %{__make} -C build-gtk${d} install \
208         DESTDIR=$RPM_BUILD_ROOT
209 done
210
211 %{__rm} $RPM_BUILD_ROOT%{_libdir}/gegl-0.2/*.{a,la}
212 # obsoleted by pkg-config
213 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-*.la
214
215 %clean
216 rm -rf $RPM_BUILD_ROOT
217
218 %post   -n gegl-gtk2 -p /sbin/ldconfig
219 %postun -n gegl-gtk2 -p /sbin/ldconfig
220
221 %post   -n gegl-gtk3 -p /sbin/ldconfig
222 %postun -n gegl-gtk3 -p /sbin/ldconfig
223
224 %if %{with gtk2}
225 %files -n gegl-gtk2
226 %defattr(644,root,root,755)
227 %doc README
228 %attr(755,root,root) %{_libdir}/libgegl-gtk2-0.1.so.*.*.*
229 %attr(755,root,root) %ghost %{_libdir}/libgegl-gtk2-0.1.so.0
230 %attr(755,root,root) %{_libdir}/gegl-0.2/gegl-gtk2-display.so
231 %{?with_introspection:%{_libdir}/girepository-1.0/GeglGtk2-0.1.typelib}
232
233 %files -n gegl-gtk2-devel
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/libgegl-gtk2-0.1.so
236 %{_includedir}/gegl-gtk2-0.1
237 %{?with_introspection:%{_datadir}/gir-1.0/GeglGtk2-0.1.gir}
238 %{_pkgconfigdir}/gegl-gtk2-0.1.pc
239
240 %files -n gegl-gtk2-static
241 %defattr(644,root,root,755)
242 %{_libdir}/libgegl-gtk2-0.1.a
243
244 %if %{with vala}
245 %files -n vala-gegl-gtk2
246 %defattr(644,root,root,755)
247 %{_datadir}/vala/vapi/gegl-gtk2-0.1.deps
248 %{_datadir}/vala/vapi/gegl-gtk2-0.1.vapi
249 %endif
250 %endif
251
252 %if %{with gtk3}
253 %files -n gegl-gtk3
254 %defattr(644,root,root,755)
255 %doc README
256 %attr(755,root,root) %{_libdir}/libgegl-gtk3-0.1.so.*.*.*
257 %attr(755,root,root) %ghost %{_libdir}/libgegl-gtk3-0.1.so.0
258 %attr(755,root,root) %{_libdir}/gegl-0.2/gegl-gtk3-display.so
259 %{?with_introspection:%{_libdir}/girepository-1.0/GeglGtk3-0.1.typelib}
260
261 %files -n gegl-gtk3-devel
262 %defattr(644,root,root,755)
263 %attr(755,root,root) %{_libdir}/libgegl-gtk3-0.1.so
264 %{_includedir}/gegl-gtk3-0.1
265 %{?with_introspection:%{_datadir}/gir-1.0/GeglGtk3-0.1.gir}
266 %{_pkgconfigdir}/gegl-gtk3-0.1.pc
267
268 %files -n gegl-gtk3-static
269 %defattr(644,root,root,755)
270 %{_libdir}/libgegl-gtk3-0.1.a
271
272 %if %{with vala}
273 %files -n vala-gegl-gtk3
274 %defattr(644,root,root,755)
275 %{_datadir}/vala/vapi/gegl-gtk3-0.1.deps
276 %{_datadir}/vala/vapi/gegl-gtk3-0.1.vapi
277 %endif
278 %endif
279
280 %if %{with doc}
281 %files apidocs
282 %defattr(644,root,root,755)
283 %{_gtkdocdir}/gegl-gtk-%{version}
284 %endif
This page took 0.071572 seconds and 3 git commands to generate.