X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=dotnet-gtk-sharp.spec;h=8397edf867e54f674d1e2583e137282bcd176f63;hb=19bcd65c7ba6c1033d6b85da8a48cde8c5153999;hp=0fa1fdcbb526e9e2a4133325df7f478de93f463e;hpb=6ebebdf7b8b50db6bf0010dcc4887133101c80e6;p=packages%2Fdotnet-gtk-sharp.git diff --git a/dotnet-gtk-sharp.spec b/dotnet-gtk-sharp.spec index 0fa1fdc..8397edf 100644 --- a/dotnet-gtk-sharp.spec +++ b/dotnet-gtk-sharp.spec @@ -1,21 +1,25 @@ +%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: 0.99 -Release: 2 +Version: 1.0 +Release: 8 License: LGPL Group: Development/Libraries -Source0: http://www.go-mono.com/archive/rc/gtk-sharp-%{version}.tar.gz -# Source0-md5: fef7aea3d834ccf208913e29c2e989eb +Source0: http://www.go-mono.com/archive/%{version}/gtk-sharp-%{version}.tar.gz +# Source0-md5: 6eab56e11c1e1245ec6af12312969399 Patch0: %{name}-gtkhtml31.patch Patch1: %{name}-destdir.patch Patch2: %{name}-mint.patch -Patch3: %{name}-runtime-optimize.patch +Patch3: %{name}-disable-rsvg-sample.patch +Patch4: %{name}-pc-libdir.patch URL: http://gtk-sharp.sf.net/ BuildRequires: autoconf BuildRequires: automake -BuildRequires: gtkhtml-devel >= 3.1.14 +BuildRequires: pkgconfig +BuildRequires: gtkhtml-devel >= 3.1.20 BuildRequires: libart_lgpl-devel >= 2.2.0 BuildRequires: libgda-devel >= 1.0.0 BuildRequires: libglade2-devel >= 2.0.1 @@ -26,18 +30,20 @@ BuildRequires: libgnomeui-devel >= 2.4.0 BuildRequires: librsvg-devel >= 2.4.0 BuildRequires: libtool BuildRequires: libxml2-devel -BuildRequires: mono-csharp -BuildRequires: mono-devel >= 0.96 +BuildRequires: mono-csharp >= 1.0-3 BuildRequires: ncurses-devel BuildRequires: rpm-perlprov BuildRequires: vte-devel >= 0.11.10 +BuildRequires: gawk +Requires: gtkhtml = %{gtkhtml_version} Provides: dotnet-gtk Provides: gtk-sharp Obsoletes: dotnet-gtk Obsoletes: gtk-sharp -ExcludeArch: amd64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + + %description This package provides bindings for .NET to Gtk+2 and GNOME2 libraries. @@ -85,6 +91,7 @@ Biblioteki statyczne gtk-sharp. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build rm -rf autom4te.cache @@ -93,7 +100,10 @@ rm -rf autom4te.cache %{__autoheader} %{__automake} %{__autoconf} -%configure + +%configure \ + GTKHTMLSOVERSION=%{gtkhtml_soversion} + %{__make} %install