1 # TODO: split (at least gtk, gnome, gda, gnomedb)
4 %bcond_without gda # don't build gda binding
5 %bcond_without gnome # don't build GNOME (and dependent) bindings
7 %define gtkhtml_soversion %(/bin/ls %{_libdir}/libgtkhtml-3.6.so.* 2>/dev/null | /usr/bin/head -n 1 | /bin/awk '{ split($1,v,"."); print v[4]; }')
8 %define gtkhtml_version %(if [ -e /usr/bin/pkg-config ]; then /usr/bin/pkg-config --modversion libgtkhtml-3.6 2>/dev/null || echo 0; else echo 0; fi)
9 %include /usr/lib/rpm/macros.perl
10 Summary: .NET language bindings for GTK+ and GNOME
11 Summary(pl): Wi±zania GTK+ oraz GNOME dla .NET
12 Name: dotnet-gtk-sharp
16 Group: Development/Libraries
17 Source0: http://www.go-mono.com/archive/1.0.6/gtk-sharp-%{version}.tar.gz
18 # Source0-md5: 2651d14fe77174ab20b8af53d150ee11
19 Patch0: %{name}-gtkhtml31.patch
20 Patch1: %{name}-destdir.patch
21 Patch2: %{name}-mint.patch
22 Patch3: %{name}-pc-libdir.patch
23 URL: http://gtk-sharp.sf.net/
24 BuildRequires: autoconf
25 BuildRequires: automake
27 BuildRequires: libart_lgpl-devel >= 2.2.0
28 %{?with_gda:BuildRequires: libgda-devel >= 1.0.0}
29 BuildRequires: libglade2-devel >= 2.0.1
30 BuildRequires: librsvg-devel >= 2.4.0
31 BuildRequires: libtool
32 BuildRequires: libxml2-devel
33 BuildRequires: mono-csharp >= 1.0.2
34 BuildRequires: ncurses-devel
35 BuildRequires: pkgconfig
36 BuildRequires: rpm-perlprov
38 BuildRequires: gtkhtml-devel >= 3.6.2
39 BuildRequires: libgnomecanvas-devel >= 2.4.0
40 %{?with_gda:BuildRequires: libgnomedb-devel >= 1.0.0}
41 BuildRequires: libgnomeprintui-devel >= 2.4.0
42 BuildRequires: libgnomeui-devel >= 2.4.0
43 BuildRequires: vte-devel >= 0.11.10
45 BuildRequires: rpmbuild(macros) >= 1.197
46 Requires(post,postun): /sbin/ldconfig
47 %{?with_gnome:Requires: gtkhtml = %{gtkhtml_version}}
48 Requires: mono >= 1.0.2
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 This package provides bindings for .NET to GTK+2 and GNOME2 libraries.
60 Pakiet ten dostarcza wi±zania dla .NET do bibliotek z GTK+2 oraz
64 Summary: Development part of GTK#
65 Summary(pl): Czê¶æ dla programistów GTK#
66 Group: Development/Libraries
67 Requires: %{name} = %{version}-%{release}
68 Provides: dotnet-gtk-devel
69 Provides: gtk-sharp-devel
70 Obsoletes: dotnet-gtk-devel
71 Obsoletes: gtk-sharp-devel
74 Tools (C source parser and C# code generator) and documentation for
75 developing applications using GTK#.
77 %description devel -l pl
78 Narzêdzia (parser kodu C oraz generator kodu C#) i dokumentacja
79 potrzebne przy tworzeniu aplikacji korzystaj±cych z GTK#.
82 Summary: Static gtk-sharp libraries
83 Summary(pl): Biblioteki statyczne gtk-sharp
84 Group: Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
86 Provides: dotnet-gtk-static
87 Provides: gtk-sharp-static
88 Obsoletes: dotnet-gtk-static
89 Obsoletes: gtk-sharp-static
92 Static gtk-sharp libraries.
94 %description static -l pl
95 Biblioteki statyczne gtk-sharp.
98 %setup -q -n gtk-sharp-%{version}
104 # workaround for variable name
105 echo 'm4_pattern_allow(PKG_PATH)' > acinclude.m4
114 GTKHTMLSOVERSION=%{gtkhtml_soversion}
118 rm -rf $RPM_BUILD_ROOT
119 install -d $RPM_BUILD_ROOT{%{perl_vendorlib},%{_examplesdir}/%{name}-%{version}}
122 DESTDIR=$RPM_BUILD_ROOT
124 cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
127 rm -rf $RPM_BUILD_ROOT
136 %defattr(644,root,root,755)
138 %attr(755,root,root) %{_bindir}/gconfsharp-schemagen*
139 %attr(755,root,root) %{_libdir}/lib*sharpglue.so
140 %{_libdir}/lib*sharpglue.la
141 %{_libdir}/mono/gac/*
144 %defattr(644,root,root,755)
145 %doc README.generator ChangeLog
146 %attr(755,root,root) %{_bindir}/gapi*
148 %{_examplesdir}/%{name}-%{version}
150 %{_libdir}/mono/gtk-sharp
153 %defattr(644,root,root,755)
154 %{_libdir}/lib*sharpglue.a