]> git.pld-linux.org Git - packages/dotnet-gtk-sharp.git/blobdiff - dotnet-gtk-sharp.spec
- release 3 to rebuild with gtkhtml
[packages/dotnet-gtk-sharp.git] / dotnet-gtk-sharp.spec
index 59c043f1b53f66c339e3d1569516da06c404e8bc..d6dcfc506d2b50e753f1bcaa93ddef954f41576c 100644 (file)
@@ -1,13 +1,15 @@
+%define                gtkhtml_soversion       %(/bin/ls %{_libdir}/libgtkhtml-3.1.so.* | /usr/bin/head -n 1 | /usr/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.1; else echo 0; fi)
 %include       /usr/lib/rpm/macros.perl
 Summary:       .NET language bindings for Gtk+ and GNOME
 Summary(pl):   Wi±zania Gtk+ oraz GNOME dla .NET
 Name:          dotnet-gtk-sharp
-Version:       1.0
-Release:       4
+Version:       1.0.2
+Release:       3
 License:       LGPL
 Group:         Development/Libraries
 Source0:       http://www.go-mono.com/archive/%{version}/gtk-sharp-%{version}.tar.gz
-# Source0-md5: 6eab56e11c1e1245ec6af12312969399
+# Source0-md5: 34473fcd2cc2bf3500deb9e6bf4fcd56
 Patch0:                %{name}-gtkhtml31.patch
 Patch1:                %{name}-destdir.patch
 Patch2:                %{name}-mint.patch
@@ -16,7 +18,8 @@ Patch4:               %{name}-pc-libdir.patch
 URL:           http://gtk-sharp.sf.net/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: gtkhtml-devel >= 3.1.14
+BuildRequires: gawk
+BuildRequires: gtkhtml-devel >= 3.2.3
 BuildRequires: libart_lgpl-devel >= 2.2.0
 BuildRequires: libgda-devel >= 1.0.0
 BuildRequires: libglade2-devel >= 2.0.1
@@ -27,15 +30,17 @@ BuildRequires:      libgnomeui-devel >= 2.4.0
 BuildRequires: librsvg-devel >= 2.4.0
 BuildRequires: libtool
 BuildRequires: libxml2-devel
-BuildRequires: mono-csharp
-BuildRequires: mono-devel >= 1.0-3
+BuildRequires: mono-csharp >= 1.0.2
 BuildRequires: ncurses-devel
+BuildRequires: pkgconfig
 BuildRequires: rpm-perlprov
 BuildRequires: vte-devel >= 0.11.10
+Requires:      gtkhtml = %{gtkhtml_version}
 Provides:      dotnet-gtk
 Provides:      gtk-sharp
 Obsoletes:     dotnet-gtk
 Obsoletes:     gtk-sharp
+ExcludeArch:   alpha
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -94,7 +99,10 @@ rm -rf autom4te.cache
 %{__autoheader}
 %{__automake}
 %{__autoconf}
-%configure
+
+%configure \
+       GTKHTMLSOVERSION=%{gtkhtml_soversion}
+    
 %{__make}
 
 %install
This page took 0.100794 seconds and 4 git commands to generate.