]>
Commit | Line | Data |
---|---|---|
9ceb6d83 JB |
1 | # |
2 | # Conditional build: | |
c69006d6 | 3 | %bcond_with gda # don't build gda binding |
9ceb6d83 JB |
4 | %bcond_without gnome # don't build GNOME (and dependent) bindings |
5 | # | |
58df7bf6 | 6 | %define gtkhtml_soversion %(/bin/ls %{_libdir}/libgtkhtml-3.14.so.* 2>/dev/null | /usr/bin/head -n 1 | /bin/awk '{ split($1,v,"."); print v[4]; }') |
d30c0d86 | 7 | %include /usr/lib/rpm/macros.perl |
fb83caa7 | 8 | %include /usr/lib/rpm/macros.mono |
833027e4 | 9 | Summary: .NET language bindings for GTK+ and GNOME |
5d05b39e | 10 | Summary(pl.UTF-8): Wiązania GTK+ oraz GNOME dla .NET |
e18eac49 | 11 | Name: dotnet-gtk-sharp |
b181b676 | 12 | Version: 1.0.10 |
b3fa104c | 13 | Release: 9 |
d0e51392 | 14 | License: LGPL |
6db5cdef | 15 | Group: Libraries |
cf03b011 | 16 | Source0: http://ftp.novell.com/pub/mono/sources/gtk-sharp/gtk-sharp-%{version}.tar.gz |
b181b676 | 17 | # Source0-md5: e21fb3c5a39374f86ba70b926311a6d0 |
eb046221 | 18 | Patch0: %{name}-gtkhtml.patch |
93b42a72 | 19 | Patch1: %{name}-mint.patch |
50c1225f | 20 | Patch2: %{name}-am.patch |
eb06c7ab | 21 | URL: http://gtk-sharp.sourceforge.net/ |
d0e51392 MM |
22 | BuildRequires: autoconf |
23 | BuildRequires: automake | |
3d0966b8 | 24 | BuildRequires: gawk |
17ff6b31 | 25 | BuildRequires: libart_lgpl-devel >= 2.2.0 |
9ceb6d83 | 26 | %{?with_gda:BuildRequires: libgda-devel >= 1.0.0} |
a22609be | 27 | BuildRequires: libglade2-devel >= 2.0.1 |
de023962 | 28 | BuildRequires: libtool |
17ff6b31 | 29 | BuildRequires: libxml2-devel |
3d0966b8 | 30 | BuildRequires: mono-csharp >= 1.0.2 |
e06ebdb9 | 31 | BuildRequires: ncurses-devel |
3d0966b8 | 32 | BuildRequires: pkgconfig |
d30c0d86 | 33 | BuildRequires: rpm-perlprov |
eb06c7ab | 34 | BuildRequires: rpmbuild(monoautodeps) |
9ceb6d83 | 35 | %if %{with gnome} |
eb046221 | 36 | BuildRequires: gtkhtml-devel >= 3.8.0 |
9ceb6d83 JB |
37 | BuildRequires: libgnomecanvas-devel >= 2.4.0 |
38 | %{?with_gda:BuildRequires: libgnomedb-devel >= 1.0.0} | |
39 | BuildRequires: libgnomeprintui-devel >= 2.4.0 | |
40 | BuildRequires: libgnomeui-devel >= 2.4.0 | |
6db5cdef JB |
41 | # depends on GNOME (vfs, printui) in PLD |
42 | BuildRequires: librsvg-devel >= 2.4.0 | |
6f2f4fa7 | 43 | BuildRequires: vte-devel >= 0.11.10 |
9ceb6d83 | 44 | %endif |
fb0d65ea | 45 | Requires: mono >= 1.0.2 |
5221cfe5 | 46 | ExclusiveArch: %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9 |
c69006d6 | 47 | ExcludeArch: i386 |
d0e51392 MM |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
50 | %description | |
833027e4 | 51 | This package provides bindings for .NET to GTK+2 and GNOME2 libraries. |
d0e51392 | 52 | |
ac095928 JR |
53 | %description -l pl.UTF-8 |
54 | Pakiet ten dostarcza wiązania dla .NET do bibliotek z GTK+2 oraz | |
d0e51392 MM |
55 | GNOME2. |
56 | ||
57 | %package devel | |
58 | Summary: Development part of GTK# | |
5d05b39e | 59 | Summary(pl.UTF-8): Część dla programistów GTK# |
d0e51392 | 60 | Group: Development/Libraries |
7e4601f9 | 61 | Requires: %{name} = %{version}-%{release} |
d0e51392 MM |
62 | |
63 | %description devel | |
64 | Tools (C source parser and C# code generator) and documentation for | |
65 | developing applications using GTK#. | |
66 | ||
ac095928 JR |
67 | %description devel -l pl.UTF-8 |
68 | Narzędzia (parser kodu C oraz generator kodu C#) i dokumentacja | |
69 | potrzebne przy tworzeniu aplikacji korzystających z GTK#. | |
d0e51392 | 70 | |
de023962 | 71 | %package static |
72 | Summary: Static gtk-sharp libraries | |
5d05b39e | 73 | Summary(pl.UTF-8): Biblioteki statyczne gtk-sharp |
de023962 | 74 | Group: Development/Libraries |
7e4601f9 | 75 | Requires: %{name}-devel = %{version}-%{release} |
de023962 | 76 | |
77 | %description static | |
78 | Static gtk-sharp libraries. | |
79 | ||
ac095928 | 80 | %description static -l pl.UTF-8 |
de023962 | 81 | Biblioteki statyczne gtk-sharp. |
82 | ||
6db5cdef JB |
83 | %package gnome |
84 | Summary: .NET language bindings for GNOME libraries | |
5d05b39e | 85 | Summary(pl.UTF-8): Wiązania .NET dla bibliotek GNOME |
6db5cdef JB |
86 | Group: Libraries |
87 | Requires: %{name} = %{version}-%{release} | |
6db5cdef JB |
88 | |
89 | %description gnome | |
90 | .NET language bindings for GNOME libraries. | |
91 | ||
ac095928 JR |
92 | %description gnome -l pl.UTF-8 |
93 | Wiązania .NET dla bibliotek GNOME. | |
6db5cdef JB |
94 | |
95 | %package gnome-devel | |
96 | Summary: .NET language bindings for GNOME libraries - development files | |
5d05b39e | 97 | Summary(pl.UTF-8): Wiązania .NET dla bibliotek GNOME - pliki programistyczne |
6db5cdef JB |
98 | Group: Libraries |
99 | Requires: %{name}-devel = %{version}-%{release} | |
100 | Requires: %{name}-gnome = %{version}-%{release} | |
101 | ||
102 | %description gnome-devel | |
103 | .NET language bindings for GNOME libraries - development files. | |
104 | ||
ac095928 JR |
105 | %description gnome-devel -l pl.UTF-8 |
106 | Wiązania .NET dla bibliotek GNOME - pliki programistyczne. | |
6db5cdef JB |
107 | |
108 | %package gnome-static | |
109 | Summary: .NET language bindings for GNOME libraries - static libraries | |
5d05b39e | 110 | Summary(pl.UTF-8): Wiązania .NET dla bibliotek GNOME - static libraries |
6db5cdef JB |
111 | Group: Libraries |
112 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
113 | ||
114 | %description gnome-static | |
115 | .NET language bindings for GNOME libraries - static libraries. | |
116 | ||
ac095928 JR |
117 | %description gnome-static -l pl.UTF-8 |
118 | Wiązania .NET dla bibliotek GNOME - static libraries. | |
6db5cdef JB |
119 | |
120 | %package gda | |
121 | Summary: .NET language bindings for GDA library | |
5d05b39e | 122 | Summary(pl.UTF-8): Wiązania .NET dla biblioteki GDA |
6db5cdef JB |
123 | Group: Libraries |
124 | Requires: %{name} = %{version}-%{release} | |
125 | ||
126 | %description gda | |
127 | .NET language bindings for GDA library. | |
128 | ||
ac095928 JR |
129 | %description gda -l pl.UTF-8 |
130 | Wiązania .NET dla biblioteki GDA. | |
6db5cdef JB |
131 | |
132 | %package gda-devel | |
133 | Summary: .NET language bindings for GDA library - development files | |
5d05b39e | 134 | Summary(pl.UTF-8): Wiązania .NET dla biblioteki GDA - pliki programistyczne |
6db5cdef JB |
135 | Group: Libraries |
136 | Requires: %{name}-devel = %{version}-%{release} | |
137 | Requires: %{name}-gda = %{version}-%{release} | |
138 | ||
139 | %description gda-devel | |
140 | .NET language bindings for GDA library - development files. | |
141 | ||
ac095928 JR |
142 | %description gda-devel -l pl.UTF-8 |
143 | Wiązania .NET dla biblioteki GDA - pliki programistyczne. | |
6db5cdef JB |
144 | |
145 | %package gnomedb | |
146 | Summary: .NET language bindings for GNOME-DB library | |
5d05b39e | 147 | Summary(pl.UTF-8): Wiązania .NET dla biblioteki GNOME-DB |
6db5cdef JB |
148 | Group: Libraries |
149 | Requires: %{name}-gda = %{version}-%{release} | |
150 | Requires: %{name}-gnome = %{version}-%{release} | |
151 | ||
152 | %description gnomedb | |
153 | .NET language bindings for GNOME-DB library. | |
154 | ||
ac095928 JR |
155 | %description gnomedb -l pl.UTF-8 |
156 | Wiązania .NET dla biblioteki GNOME-DB. | |
6db5cdef JB |
157 | |
158 | %package gnomedb-devel | |
159 | Summary: .NET language bindings for GNOME-DB library - development files | |
5d05b39e | 160 | Summary(pl.UTF-8): Wiązania .NET dla biblioteki GNOME-DB - pliki programistyczne |
6db5cdef JB |
161 | Group: Libraries |
162 | Requires: %{name}-gda-devel = %{version}-%{release} | |
163 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
164 | Requires: %{name}-gnomedb = %{version}-%{release} | |
165 | ||
166 | %description gnomedb-devel | |
167 | .NET language bindings for GNOME-DB library - development files. | |
168 | ||
ac095928 JR |
169 | %description gnomedb-devel -l pl.UTF-8 |
170 | Wiązania .NET dla biblioteki GNOME-DB - pliki programistyczne. | |
6db5cdef | 171 | |
d0e51392 | 172 | %prep |
407f5dc2 | 173 | %setup -q -n gtk-sharp-%{version} |
a22609be | 174 | %patch0 -p1 |
93b42a72 | 175 | %patch1 -p1 |
50c1225f | 176 | %patch2 -p1 |
d0e51392 | 177 | |
9ceb6d83 JB |
178 | # workaround for variable name |
179 | echo 'm4_pattern_allow(PKG_PATH)' > acinclude.m4 | |
180 | ||
d0e51392 MM |
181 | %build |
182 | %{__libtoolize} | |
183 | %{__aclocal} | |
184 | %{__autoheader} | |
185 | %{__automake} | |
186 | %{__autoconf} | |
7272b9d1 | 187 | %configure \ |
6db5cdef | 188 | %{?with_gnome:GTKHTMLSOVERSION=%{gtkhtml_soversion}} |
d0e51392 MM |
189 | %{__make} |
190 | ||
191 | %install | |
192 | rm -rf $RPM_BUILD_ROOT | |
6db5cdef | 193 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
d0e51392 | 194 | |
de023962 | 195 | %{__make} install \ |
196 | DESTDIR=$RPM_BUILD_ROOT | |
d0e51392 | 197 | |
d0e51392 MM |
198 | cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
199 | ||
ddc9f483 MM |
200 | %clean |
201 | rm -rf $RPM_BUILD_ROOT | |
202 | ||
b4428635 JB |
203 | %post -p /sbin/ldconfig |
204 | %postun -p /sbin/ldconfig | |
ddc9f483 | 205 | |
d0e51392 MM |
206 | %files |
207 | %defattr(644,root,root,755) | |
208 | %doc README | |
6db5cdef JB |
209 | %attr(755,root,root) %{_libdir}/libgdksharpglue.so |
210 | %attr(755,root,root) %{_libdir}/libgladesharpglue.so | |
211 | %attr(755,root,root) %{_libdir}/libglibsharpglue.so | |
212 | %attr(755,root,root) %{_libdir}/libgtksharpglue.so | |
213 | %attr(755,root,root) %{_libdir}/libpangosharpglue.so | |
214 | %{_libdir}/libgdksharpglue.la | |
215 | %{_libdir}/libgladesharpglue.la | |
216 | %{_libdir}/libglibsharpglue.la | |
217 | %{_libdir}/libgtksharpglue.la | |
218 | %{_libdir}/libpangosharpglue.la | |
8823b8b7 JB |
219 | %{_prefix}/lib/mono/gac/art-sharp |
220 | %{_prefix}/lib/mono/gac/atk-sharp | |
221 | %{_prefix}/lib/mono/gac/gdk-sharp | |
222 | %{_prefix}/lib/mono/gac/glade-sharp | |
223 | %{_prefix}/lib/mono/gac/glib-sharp | |
224 | %{_prefix}/lib/mono/gac/gtk-sharp | |
225 | %{_prefix}/lib/mono/gac/pango-sharp | |
d0e51392 MM |
226 | |
227 | %files devel | |
228 | %defattr(644,root,root,755) | |
229 | %doc README.generator ChangeLog | |
230 | %attr(755,root,root) %{_bindir}/gapi* | |
93b42a72 | 231 | %dir %{_prefix}/lib/mono/gtk-sharp |
8823b8b7 JB |
232 | %{_prefix}/lib/mono/gtk-sharp/art-sharp.dll |
233 | %{_prefix}/lib/mono/gtk-sharp/atk-sharp.dll | |
234 | %{_prefix}/lib/mono/gtk-sharp/gdk-sharp.dll | |
235 | %{_prefix}/lib/mono/gtk-sharp/glade-sharp.dll | |
236 | %{_prefix}/lib/mono/gtk-sharp/glib-sharp.dll | |
237 | %{_prefix}/lib/mono/gtk-sharp/gtk-sharp.dll | |
238 | %{_prefix}/lib/mono/gtk-sharp/pango-sharp.dll | |
6db5cdef JB |
239 | %dir %{_datadir}/gapi |
240 | %{_datadir}/gapi/art-*.xml | |
241 | %{_datadir}/gapi/atk-api.xml | |
242 | %{_datadir}/gapi/gdk-*.xml | |
243 | %{_datadir}/gapi/glade-api.xml | |
244 | %{_datadir}/gapi/gtk-*.xml | |
245 | %{_datadir}/gapi/pango-api.xml | |
246 | %{_pkgconfigdir}/art-sharp.pc | |
247 | %{_pkgconfigdir}/gapi.pc | |
248 | %{_pkgconfigdir}/glade-sharp.pc | |
249 | %{_pkgconfigdir}/gtk-sharp.pc | |
d0e51392 | 250 | %{_examplesdir}/%{name}-%{version} |
de023962 | 251 | |
252 | %files static | |
253 | %defattr(644,root,root,755) | |
6db5cdef JB |
254 | %{_libdir}/libgdksharpglue.a |
255 | %{_libdir}/libgladesharpglue.a | |
256 | %{_libdir}/libglibsharpglue.a | |
257 | %{_libdir}/libgtksharpglue.a | |
258 | %{_libdir}/libpangosharpglue.a | |
259 | ||
260 | %if %{with gnome} | |
261 | %files gnome | |
262 | %defattr(644,root,root,755) | |
263 | %attr(755,root,root) %{_bindir}/gconfsharp-schemagen* | |
264 | %attr(755,root,root) %{_libdir}/libgnomesharpglue.so | |
265 | %{_libdir}/libgnomesharpglue.la | |
8823b8b7 JB |
266 | %{_prefix}/lib/mono/gac/gconf-sharp |
267 | %{_prefix}/lib/mono/gac/gconf-sharp-peditors | |
268 | %{_prefix}/lib/mono/gac/gnome-sharp | |
269 | %{_prefix}/lib/mono/gac/gtkhtml-sharp | |
270 | %{_prefix}/lib/mono/gac/rsvg-sharp | |
271 | %{_prefix}/lib/mono/gac/vte-sharp | |
6db5cdef JB |
272 | |
273 | %files gnome-devel | |
274 | %defattr(644,root,root,755) | |
8823b8b7 JB |
275 | %{_prefix}/lib/mono/gtk-sharp/gconf-sharp.dll |
276 | %{_prefix}/lib/mono/gtk-sharp/gconf-sharp-peditors.dll | |
277 | %{_prefix}/lib/mono/gtk-sharp/gnome-sharp.dll | |
278 | %{_prefix}/lib/mono/gtk-sharp/gtkhtml-sharp.dll | |
279 | %{_prefix}/lib/mono/gtk-sharp/rsvg-sharp.dll | |
280 | %{_prefix}/lib/mono/gtk-sharp/vte-sharp.dll | |
6db5cdef JB |
281 | %{_datadir}/gapi/gnome-api.xml |
282 | %{_datadir}/gapi/gtkhtml-api.xml | |
283 | %{_datadir}/gapi/rsvg-api.xml | |
284 | %{_datadir}/gapi/vte-api.xml | |
285 | %{_pkgconfigdir}/gconf-sharp.pc | |
286 | %{_pkgconfigdir}/gnome-sharp.pc | |
287 | %{_pkgconfigdir}/gtkhtml-sharp.pc | |
288 | %{_pkgconfigdir}/rsvg-sharp.pc | |
289 | %{_pkgconfigdir}/vte-sharp.pc | |
290 | ||
291 | %files gnome-static | |
292 | %defattr(644,root,root,755) | |
293 | %{_libdir}/libgnomesharpglue.a | |
294 | %endif | |
295 | ||
296 | %if %{with gda} | |
297 | %files gda | |
298 | %defattr(644,root,root,755) | |
8823b8b7 | 299 | %{_prefix}/lib/mono/gac/gda-sharp |
6db5cdef JB |
300 | |
301 | %files gda-devel | |
302 | %defattr(644,root,root,755) | |
8823b8b7 | 303 | %{_prefix}/lib/mono/gtk-sharp/gda-sharp.dll |
6db5cdef JB |
304 | %{_datadir}/gapi/gda-api.xml |
305 | %{_pkgconfigdir}/gda-sharp.pc | |
306 | %endif | |
307 | ||
308 | %if %{with gnome} && %{with gda} | |
309 | %files gnomedb | |
310 | %defattr(644,root,root,755) | |
8823b8b7 | 311 | %{_prefix}/lib/mono/gac/gnomedb-sharp |
6db5cdef JB |
312 | |
313 | %files gnomedb-devel | |
314 | %defattr(644,root,root,755) | |
8823b8b7 | 315 | %{_prefix}/lib/mono/gtk-sharp/gnomedb-sharp.dll |
6db5cdef JB |
316 | %{_datadir}/gapi/gnomedb-api.xml |
317 | %{_pkgconfigdir}/gnomedb-sharp.pc | |
318 | %endif |