]>
Commit | Line | Data |
---|---|---|
24466d07 | 1 | # |
54304741 JB |
2 | # Conditional build: |
3 | %bcond_without libart # libart_lgpl binding | |
4 | %bcond_without gnomevfs # gnome-vfs2 binding | |
5 | %bcond_without gnomeui # gnome (libgnomecanvas+libgnomeui) binding | |
24466d07 | 6 | # |
b2caceb2 JB |
7 | Summary: GNOME# - .NET language bindings for GNOME libraries |
8 | Summary(pl.UTF-8): GNOME# - wiązania .NET do bibliotek GNOME | |
24466d07 | 9 | Name: dotnet-gnome-sharp |
ad976d4d JB |
10 | Version: 2.24.5 |
11 | Release: 1 | |
076417e5 | 12 | License: LGPL v2+ |
3983d77d | 13 | Group: Libraries |
ad976d4d JB |
14 | #Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-sharp/2.24/gnome-sharp-%{version}.tar.bz2 |
15 | Source0: http://download.mono-project.com/sources/gnome-sharp2/gnome-sharp-%{version}.tar.gz | |
16 | # Source0-md5: 26be828348b0c6ef020f313b6f92fbba | |
24466d07 | 17 | Patch0: %{name}-destdir.patch |
18 | Patch1: %{name}-mint.patch | |
19 | URL: http://gtk-sharp.sourceforge.net/ | |
20 | BuildRequires: autoconf | |
21 | BuildRequires: automake | |
b2caceb2 | 22 | # gapi-2.0, gtk-sharp-2.0, glade-sharp-2.0 |
076417e5 | 23 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.12.2 |
54304741 JB |
24 | %{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.24.0} |
25 | %{?with_gnomeui:BuildRequires: gtk+2-devel >= 2:2.14.0} | |
26 | %{?with_libart:BuildRequires: libart_lgpl-devel >= 2.3.20} | |
27 | %{?with_gnomeui:BuildRequires: libgnomecanvas-devel >= 2.20.0} | |
28 | %{?with_gnomeui:BuildRequires: libgnomeui-devel >= 2.24.0} | |
24466d07 | 29 | BuildRequires: libtool |
b2caceb2 JB |
30 | BuildRequires: mono-csharp >= 2.7 |
31 | BuildRequires: mono-devel >= 2.7 | |
24466d07 | 32 | BuildRequires: monodoc >= 1.1.16 |
24466d07 | 33 | BuildRequires: pkgconfig |
34 | BuildRequires: rpmbuild(monoautodeps) | |
b2caceb2 JB |
35 | Requires: dotnet-art-sharp = %{version}-%{release} |
36 | Requires: dotnet-gnome-vfs-sharp = %{version}-%{release} | |
37 | Requires: dotnet-gtk-sharp2 >= 2.12.2 | |
38 | Requires: gtk+2 >= 2:2.14.0 | |
39 | Requires: libgnomecanvas >= 2.20.0 | |
40 | Requires: libgnomeui >= 2.24.0 | |
41 | Requires: mono >= 2.7 | |
8c867b05 | 42 | Obsoletes: dotnet-gtk-sharp2-gnome |
24466d07 | 43 | Obsoletes: gtk-sharp2 |
f7c317a7 | 44 | ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 |
24466d07 | 45 | ExcludeArch: i386 |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
47 | ||
48 | %description | |
49 | This package provides bindings for .NET to GNOME libraries. | |
50 | ||
0fdc95f7 JR |
51 | %description -l pl.UTF-8 |
52 | Pakiet ten dostarcza wiązania dla .NET do bibliotek z GNOME. | |
24466d07 | 53 | |
54 | %package devel | |
b2caceb2 JB |
55 | Summary: Development files for GNOME# library |
56 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GNOME# | |
24466d07 | 57 | Group: Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
b2caceb2 JB |
59 | Requires: dotnet-art-sharp-devel = %{version}-%{release} |
60 | Requires: dotnet-gnome-vfs-sharp-devel = %{version}-%{release} | |
61 | Requires: dotnet-gtk-sharp2-devel >= 2.12.2 | |
24466d07 | 62 | Requires: monodoc |
63 | Requires: which | |
8c867b05 | 64 | Obsoletes: dotnet-gtk-sharp2-gnome-devel |
24466d07 | 65 | Obsoletes: gtk-sharp2-devel |
66 | ||
67 | %description devel | |
b2caceb2 | 68 | Development files for GNOME# library. |
24466d07 | 69 | |
0fdc95f7 | 70 | %description devel -l pl.UTF-8 |
b2caceb2 | 71 | Pliki programistyczne biblioteki GNOME#. |
24466d07 | 72 | |
73 | %package static | |
b2caceb2 JB |
74 | Summary: Static GNOME# glue library |
75 | Summary(pl.UTF-8): Statyczna biblioteka warstwy sklejającej GNOME# | |
24466d07 | 76 | Group: Development/Libraries |
77 | Requires: %{name}-devel = %{version}-%{release} | |
8c867b05 | 78 | Obsoletes: dotnet-gtk-sharp2-gnome-static |
24466d07 | 79 | |
80 | %description static | |
b2caceb2 | 81 | Static GNOME# glue library. |
24466d07 | 82 | |
0fdc95f7 | 83 | %description static -l pl.UTF-8 |
b2caceb2 JB |
84 | Statyczna biblioteka warstwy sklejającej GNOME#. |
85 | ||
86 | %package examples | |
87 | Summary: Examples for GNOME# libraries | |
88 | Summary(pl.UTF-8): Przykłado do bibliotek GNOME# | |
89 | Group: Development/Libraries | |
90 | Conflicts: dotnet-gnome-sharp-devel < 2.24.2-4 | |
91 | ||
92 | %description examples | |
93 | Examples for GNOME# libraries. | |
94 | ||
95 | %description examples -l pl.UTF-8 | |
96 | Przykłady do bibliotek GNOME#. | |
97 | ||
98 | %package -n dotnet-art-sharp | |
99 | Summary: Art# - .NET binding for libart library | |
100 | Summary(pl.UTF-8): Art# - wiązanie .NET do biblioteki libart | |
101 | Group: Libraries | |
102 | Requires: libart_lgpl >= 2.3.20 | |
103 | Requires: mono >= 2.7 | |
104 | Conflicts: dotnet-gnome-sharp < 2.24.2-4 | |
105 | ||
106 | %description -n dotnet-art-sharp | |
107 | Art# - .NET binding for libart library. | |
108 | ||
109 | %description -n dotnet-art-sharp -l pl.UTF-8 | |
110 | Art# - wiązanie .NET do biblioteki libart. | |
111 | ||
112 | %package -n dotnet-art-sharp-devel | |
113 | Summary: Development files for Art# library | |
114 | Summary(pl.UTF-8): Pliki programistyczne biblioteki Art# | |
115 | Group: Development/Libraries | |
116 | Requires: dotnet-art-sharp = %{version}-%{release} | |
117 | Requires: dotnet-gtk-sharp2-devel >= 2.12.2 | |
118 | ||
119 | %description -n dotnet-art-sharp-devel | |
120 | Development files for Art# library. | |
121 | ||
122 | %description -n dotnet-art-sharp-devel -l pl.UTF-8 | |
123 | Pliki programistyczne biblioteki Art#. | |
124 | ||
125 | %package -n dotnet-gconf-sharp | |
126 | Summary: GConf# - .NET binding for GConf 2 library | |
127 | Summary(pl.UTF-8): GConf# - wiązanie .NET do biblioteki GConf 2 | |
128 | Group: Libraries | |
129 | Requires: GConf2-libs | |
130 | Requires: mono >= 2.7 | |
131 | Conflicts: dotnet-gnome-sharp < 2.24.2-4 | |
132 | ||
133 | %description -n dotnet-gconf-sharp | |
134 | GConf# - .NET binding for GConf 2 library. | |
135 | ||
136 | %description -n dotnet-gconf-sharp -l pl.UTF-8 | |
137 | GConf# - wiązanie .NET do biblioteki GConf 2. | |
138 | ||
139 | %package -n dotnet-gconf-sharp-devel | |
140 | Summary: Development files for GConf# library | |
141 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GConf# | |
142 | Group: Development/Libraries | |
143 | Requires: dotnet-gconf-sharp = %{version}-%{release} | |
144 | Requires: dotnet-gtk-sharp2-devel >= 2.12.2 | |
145 | ||
146 | %description -n dotnet-gconf-sharp-devel | |
147 | Development files for GConf# library. | |
148 | ||
149 | %description -n dotnet-gconf-sharp-devel -l pl.UTF-8 | |
150 | Pliki programistyczne biblioteki GConf#. | |
151 | ||
152 | %package -n dotnet-gconf-sharp-peditors | |
153 | Summary: GConf# Property Editing classes | |
154 | Summary(pl.UTF-8): Klasy GConf# Property Editing | |
155 | Group: Libraries | |
156 | Requires: %{name} = %{version}-%{release} | |
157 | Requires: dotnet-gconf-sharp = %{version}-%{release} | |
158 | ||
159 | %description -n dotnet-gconf-sharp-peditors | |
160 | GConf.PropertyEditors# - GConf# Property Editing classes. | |
161 | ||
162 | %description -n dotnet-gconf-sharp-peditors -l pl.UTF-8 | |
163 | GConf.PropertyEditors# - klasy GConf# Property Editing. | |
164 | ||
165 | %package -n dotnet-gconf-sharp-peditors-devel | |
166 | Summary: Development files for GConf# Property Editing classes | |
167 | Summary(pl.UTF-8): Pliki programistyczne biblioteki klas GConf# Property Editing | |
168 | Group: Development/Libraries | |
169 | Requires: %{name}-devel = %{version}-%{release} | |
170 | Requires: dotnet-gconf-sharp-devel = %{version}-%{release} | |
171 | Requires: dotnet-gconf-sharp-peditors = %{version}-%{release} | |
172 | ||
173 | %description -n dotnet-gconf-sharp-peditors-devel | |
174 | Development files for GConf# Property Editing classes. | |
175 | ||
176 | %description -n dotnet-gconf-sharp-peditors-devel -l pl.UTF-8 | |
177 | Pliki programistyczne biblioteki klas GConf# Property Editing. | |
178 | ||
179 | %package -n dotnet-gnome-vfs-sharp | |
180 | Summary: GnomeVfs# - .NET binding for GNOME-VFS 2 library | |
181 | Summary(pl.UTF-8): GnomeVfs# - wiązanie .NET do biblioteki GNOME-VFS 2 | |
182 | Group: Libraries | |
183 | Requires: gnome-vfs2-libs >= 2.24.0 | |
184 | Requires: mono >= 2.7 | |
185 | Conflicts: dotnet-gnome-sharp < 2.24.2-4 | |
186 | ||
187 | %description -n dotnet-gnome-vfs-sharp | |
188 | GnomeVfs# - .NET binding for GNOME-VFS 2 library. | |
189 | ||
190 | %description -n dotnet-gnome-vfs-sharp -l pl.UTF-8 | |
191 | GnomeVfs# - wiązanie .NET do biblioteki GNOME-VFS 2. | |
192 | ||
193 | %package -n dotnet-gnome-vfs-sharp-devel | |
194 | Summary: Development files for GnomeVfs# library | |
195 | Summary(pl.UTF-8): Pliki programistyczne biblioteki GnomeVfs# | |
196 | Group: Development/Libraries | |
197 | Requires: dotnet-gnome-vfs-sharp = %{version}-%{release} | |
198 | Requires: dotnet-gtk-sharp2-devel >= 2.12.2 | |
199 | ||
200 | %description -n dotnet-gnome-vfs-sharp-devel | |
201 | Development files for GnomeVfs# library. | |
202 | ||
203 | %description -n dotnet-gnome-vfs-sharp-devel -l pl.UTF-8 | |
204 | Pliki programistyczne biblioteki GnomeVfs#. | |
24466d07 | 205 | |
206 | %prep | |
207 | %setup -q -n gnome-sharp-%{version} | |
208 | %patch0 -p1 | |
209 | %patch1 -p1 | |
210 | ||
211 | %build | |
212 | %{__libtoolize} | |
213 | %{__aclocal} | |
076417e5 | 214 | %{__autoconf} |
24466d07 | 215 | %{__autoheader} |
216 | %{__automake} | |
24466d07 | 217 | %configure |
61095360 | 218 | %{__make} -j 1 |
24466d07 | 219 | |
220 | %install | |
221 | rm -rf $RPM_BUILD_ROOT | |
54304741 | 222 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
24466d07 | 223 | |
224 | %{__make} install \ | |
225 | DESTDIR=$RPM_BUILD_ROOT \ | |
226 | monodocdir=%{_libdir}/monodoc/sources | |
227 | ||
228 | cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
229 | ||
230 | %clean | |
231 | rm -rf $RPM_BUILD_ROOT | |
232 | ||
233 | %post -p /sbin/ldconfig | |
234 | %postun -p /sbin/ldconfig | |
235 | ||
b2caceb2 | 236 | %if %{with gnomeui} |
24466d07 | 237 | %files |
238 | %defattr(644,root,root,755) | |
54304741 | 239 | %doc AUTHORS ChangeLog NEWS README |
b2caceb2 JB |
240 | %attr(755,root,root) %{_libdir}/libgnomesharpglue-2.so |
241 | %{_libdir}/libgnomesharpglue-2.la | |
242 | %{_prefix}/lib/mono/gac/gnome-sharp | |
24466d07 | 243 | |
b2caceb2 JB |
244 | %files devel |
245 | %defattr(644,root,root,755) | |
246 | %{_prefix}/lib/mono/gtk-sharp-2.0/gnome-sharp.dll | |
247 | %{_datadir}/gapi-2.0/gnome-api.xml | |
248 | %{_pkgconfigdir}/gnome-sharp-2.0.pc | |
249 | ||
250 | %files static | |
251 | %defattr(644,root,root,755) | |
252 | %{_libdir}/libgnomesharpglue-2.a | |
253 | %endif | |
254 | ||
255 | %files examples | |
256 | %defattr(644,root,root,755) | |
257 | %{_examplesdir}/%{name}-%{version} | |
6db3765c | 258 | |
54304741 | 259 | %if %{with libart} |
b2caceb2 JB |
260 | %files -n dotnet-art-sharp |
261 | %defattr(644,root,root,755) | |
54304741 JB |
262 | %{_prefix}/lib/mono/gac/art-sharp |
263 | %{_prefix}/lib/mono/gac/policy.2.4.art-sharp | |
264 | %{_prefix}/lib/mono/gac/policy.2.6.art-sharp | |
265 | %{_prefix}/lib/mono/gac/policy.2.8.art-sharp | |
266 | %{_prefix}/lib/mono/gac/policy.2.16.art-sharp | |
6db3765c | 267 | %{_prefix}/lib/mono/gac/policy.2.20.art-sharp |
54304741 | 268 | |
b2caceb2 JB |
269 | %files -n dotnet-art-sharp-devel |
270 | %defattr(644,root,root,755) | |
271 | %{_prefix}/lib/mono/gtk-sharp-2.0/art-sharp.dll | |
272 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.4.art-sharp.dll | |
273 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.6.art-sharp.dll | |
274 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.8.art-sharp.dll | |
275 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.16.art-sharp.dll | |
276 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.20.art-sharp.dll | |
277 | %{_datadir}/gapi-2.0/art-api.xml | |
278 | %{_pkgconfigdir}/art-sharp-2.0.pc | |
54304741 JB |
279 | %endif |
280 | ||
b2caceb2 JB |
281 | %files -n dotnet-gconf-sharp |
282 | %defattr(644,root,root,755) | |
283 | %attr(755,root,root) %{_bindir}/gconfsharp2-schemagen | |
284 | %attr(755,root,root) %{_prefix}/lib/gtk-sharp-2.0/gconfsharp-schemagen.exe | |
285 | %{_prefix}/lib/mono/gac/gconf-sharp | |
286 | %{_prefix}/lib/mono/gac/policy.2.4.gconf-sharp | |
287 | %{_prefix}/lib/mono/gac/policy.2.6.gconf-sharp | |
288 | %{_prefix}/lib/mono/gac/policy.2.8.gconf-sharp | |
289 | %{_prefix}/lib/mono/gac/policy.2.16.gconf-sharp | |
290 | %{_prefix}/lib/mono/gac/policy.2.20.gconf-sharp | |
6db3765c | 291 | |
b2caceb2 | 292 | %files -n dotnet-gconf-sharp-devel |
24466d07 | 293 | %defattr(644,root,root,755) |
24466d07 | 294 | %{_prefix}/lib/mono/gtk-sharp-2.0/gconf-sharp.dll |
6db3765c | 295 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.4.gconf-sharp.dll |
6db3765c | 296 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.6.gconf-sharp.dll |
6db3765c | 297 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.8.gconf-sharp.dll |
6db3765c | 298 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.16.gconf-sharp.dll |
6db3765c | 299 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.20.gconf-sharp.dll |
54304741 | 300 | %{_pkgconfigdir}/gconf-sharp-2.0.pc |
54304741 JB |
301 | |
302 | %if %{with gnomeui} | |
b2caceb2 JB |
303 | %files -n dotnet-gconf-sharp-peditors |
304 | %defattr(644,root,root,755) | |
305 | %{_prefix}/lib/mono/gac/gconf-sharp-peditors | |
306 | %{_prefix}/lib/mono/gac/policy.2.4.gconf-sharp-peditors | |
307 | %{_prefix}/lib/mono/gac/policy.2.6.gconf-sharp-peditors | |
308 | %{_prefix}/lib/mono/gac/policy.2.8.gconf-sharp-peditors | |
309 | %{_prefix}/lib/mono/gac/policy.2.16.gconf-sharp-peditors | |
310 | %{_prefix}/lib/mono/gac/policy.2.20.gconf-sharp-peditors | |
311 | ||
312 | %files -n dotnet-gconf-sharp-peditors-devel | |
313 | %defattr(644,root,root,755) | |
54304741 | 314 | %{_prefix}/lib/mono/gtk-sharp-2.0/gconf-sharp-peditors.dll |
54304741 JB |
315 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.4.gconf-sharp-peditors.dll |
316 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.6.gconf-sharp-peditors.dll | |
317 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.8.gconf-sharp-peditors.dll | |
318 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.16.gconf-sharp-peditors.dll | |
319 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.20.gconf-sharp-peditors.dll | |
e1568e14 | 320 | %{_pkgconfigdir}/gconf-sharp-peditors-2.0.pc |
54304741 JB |
321 | %endif |
322 | ||
323 | %if %{with gnomevfs} | |
b2caceb2 JB |
324 | %files -n dotnet-gnome-vfs-sharp |
325 | %defattr(644,root,root,755) | |
326 | %{_prefix}/lib/mono/gac/gnome-vfs-sharp | |
327 | %{_prefix}/lib/mono/gac/policy.2.4.gnome-vfs-sharp | |
328 | %{_prefix}/lib/mono/gac/policy.2.6.gnome-vfs-sharp | |
329 | %{_prefix}/lib/mono/gac/policy.2.8.gnome-vfs-sharp | |
330 | %{_prefix}/lib/mono/gac/policy.2.16.gnome-vfs-sharp | |
331 | %{_prefix}/lib/mono/gac/policy.2.20.gnome-vfs-sharp | |
332 | ||
333 | %files -n dotnet-gnome-vfs-sharp-devel | |
334 | %defattr(644,root,root,755) | |
54304741 JB |
335 | %{_prefix}/lib/mono/gtk-sharp-2.0/gnome-vfs-sharp.dll |
336 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.4.gnome-vfs-sharp.dll | |
337 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.6.gnome-vfs-sharp.dll | |
338 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.8.gnome-vfs-sharp.dll | |
339 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.16.gnome-vfs-sharp.dll | |
340 | %{_prefix}/lib/mono/gtk-sharp-2.0/policy.2.20.gnome-vfs-sharp.dll | |
341 | %{_datadir}/gapi-2.0/gnome-vfs-api.xml | |
24466d07 | 342 | %{_pkgconfigdir}/gnome-vfs-sharp-2.0.pc |
54304741 | 343 | %endif |