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