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 %{?with_gnome:Requires: gtkhtml = %{gtkhtml_version}}
46 Requires: mono >= 1.0.2
52 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
55 This package provides bindings for .NET to GTK+2 and GNOME2 libraries.
58 Pakiet ten dostarcza wi±zania dla .NET do bibliotek z GTK+2 oraz
62 Summary: Development part of GTK#
63 Summary(pl): Czê¶æ dla programistów GTK#
64 Group: Development/Libraries
65 Requires: %{name} = %{version}-%{release}
66 Provides: dotnet-gtk-devel
67 Provides: gtk-sharp-devel
68 Obsoletes: dotnet-gtk-devel
69 Obsoletes: gtk-sharp-devel
72 Tools (C source parser and C# code generator) and documentation for
73 developing applications using GTK#.
75 %description devel -l pl
76 Narzêdzia (parser kodu C oraz generator kodu C#) i dokumentacja
77 potrzebne przy tworzeniu aplikacji korzystaj±cych z GTK#.
80 Summary: Static gtk-sharp libraries
81 Summary(pl): Biblioteki statyczne gtk-sharp
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
84 Provides: dotnet-gtk-static
85 Provides: gtk-sharp-static
86 Obsoletes: dotnet-gtk-static
87 Obsoletes: gtk-sharp-static
90 Static gtk-sharp libraries.
92 %description static -l pl
93 Biblioteki statyczne gtk-sharp.
96 %setup -q -n gtk-sharp-%{version}
102 # workaround for variable name
103 echo 'm4_pattern_allow(PKG_PATH)' > acinclude.m4
112 GTKHTMLSOVERSION=%{gtkhtml_soversion}
116 rm -rf $RPM_BUILD_ROOT
117 install -d $RPM_BUILD_ROOT{%{perl_vendorlib},%{_examplesdir}/%{name}-%{version}}
120 DESTDIR=$RPM_BUILD_ROOT
122 cp -a sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
125 rm -rf $RPM_BUILD_ROOT
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
131 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/gconfsharp-schemagen*
134 %attr(755,root,root) %{_libdir}/lib*sharpglue.so
135 %{_libdir}/lib*sharpglue.la
136 %{_libdir}/mono/gac/*
139 %defattr(644,root,root,755)
140 %doc README.generator ChangeLog
141 %attr(755,root,root) %{_bindir}/gapi*
143 %{_examplesdir}/%{name}-%{version}
145 %{_libdir}/mono/gtk-sharp
148 %defattr(644,root,root,755)
149 %{_libdir}/lib*sharpglue.a