%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]; }')
%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)
%include /usr/lib/rpm/macros.perl
+%include /usr/lib/rpm/macros.mono
Summary: .NET language bindings for GTK+ and GNOME
Summary(pl): Wi±zania GTK+ oraz GNOME dla .NET
Name: dotnet-gtk-sharp
-Version: 1.0.6
-Release: 6
+Version: 1.0.10
+Release: 1
License: LGPL
Group: Libraries
-Source0: http://www.go-mono.com/archive/1.0.6/gtk-sharp-%{version}.tar.gz
-# Source0-md5: 2651d14fe77174ab20b8af53d150ee11
+Source0: http://go-mono.com/sources/gtk-sharp/gtk-sharp-%{version}.tar.gz
+# Source0-md5: e21fb3c5a39374f86ba70b926311a6d0
Patch0: %{name}-gtkhtml31.patch
Patch1: %{name}-destdir.patch
Patch2: %{name}-mint.patch
BuildRequires: mono-csharp >= 1.0.2
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(monoautodeps)
BuildRequires: rpm-perlprov
%if %{with gnome}
BuildRequires: gtkhtml-devel >= 3.6.2
%install
rm -rf $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT{%{perl_vendorlib},%{_examplesdir}/%{name}-%{version}}
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
%dir %{_libdir}/mono/gtk-sharp
%{_libdir}/mono/gtk-sharp/art-sharp.dll
%{_libdir}/mono/gtk-sharp/atk-sharp.dll
-%{_libdir}/mono/gtk-sharp/gtk-sharp.dll
+%{_libdir}/mono/gtk-sharp/gdk-sharp.dll
%{_libdir}/mono/gtk-sharp/glade-sharp.dll
%{_libdir}/mono/gtk-sharp/glib-sharp.dll
%{_libdir}/mono/gtk-sharp/gtk-sharp.dll
%{_libdir}/mono/gtk-sharp/gconf-sharp.dll
%{_libdir}/mono/gtk-sharp/gconf-sharp-peditors.dll
%{_libdir}/mono/gtk-sharp/gnome-sharp.dll
+%{_libdir}/mono/gtk-sharp/gtkhtml-sharp.dll
%{_libdir}/mono/gtk-sharp/rsvg-sharp.dll
%{_libdir}/mono/gtk-sharp/vte-sharp.dll
%{_datadir}/gapi/gnome-api.xml