From 39b4c052c7d444a15fb281b3b2293a2f28942ccf Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Aug 18 2006 15:08:18 +0000 Subject: libdir updates --- diff --git a/gnome-sharp-2.15.0-libdir.patch b/gnome-sharp-2.15.0-libdir.patch new file mode 100644 index 0000000..2706e18 --- /dev/null +++ b/gnome-sharp-2.15.0-libdir.patch @@ -0,0 +1,89 @@ +--- gnome-sharp-2.15.0/art/art-sharp-2.0.pc.in.libdir 2006-08-18 14:21:56.000000000 +0200 ++++ gnome-sharp-2.15.0/art/art-sharp-2.0.pc.in 2006-08-18 14:22:45.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + gapidir=${prefix}/share/gapi-2.0 + + +--- gnome-sharp-2.15.0/gnomevfs/gnome-vfs-sharp-2.0.pc.in.libdir 2006-08-18 14:21:56.000000000 +0200 ++++ gnome-sharp-2.15.0/gnomevfs/gnome-vfs-sharp-2.0.pc.in 2006-08-18 14:22:31.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + gapidir=${prefix}/share/gapi-2.0 + + +--- gnome-sharp-2.15.0/gconf/GConf/gconf-sharp-2.0.pc.in.libdir 2006-08-18 14:26:50.000000000 +0200 ++++ gnome-sharp-2.15.0/gconf/GConf/gconf-sharp-2.0.pc.in 2006-08-18 14:26:58.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + + + Name: GConf# +--- gnome-sharp-2.15.0/gconf/tools/gconfsharp2-schemagen.in.libdir 2006-08-18 14:15:34.000000000 +0200 ++++ gnome-sharp-2.15.0/gconf/tools/gconfsharp2-schemagen.in 2006-08-18 14:16:20.000000000 +0200 +@@ -1,6 +1,5 @@ + #!/bin/sh + +-a=`which "$0"` +-d=`dirname "$a"` ++d=`monodir` + +-@RUNTIME@ $d/../lib/gtk-sharp-2.0/gconfsharp-schemagen.exe "$@" ++@RUNTIME@ $d/../gtk-sharp-2.0/gconfsharp-schemagen.exe "$@" +--- gnome-sharp-2.15.0/gconf/tools/Makefile.am.libdir 2006-08-18 14:15:18.000000000 +0200 ++++ gnome-sharp-2.15.0/gconf/tools/Makefile.am 2006-08-18 14:15:57.000000000 +0200 +@@ -1,4 +1,4 @@ +-assemblydir = $(prefix)/lib/gtk-sharp-2.0 ++assemblydir = $(libdir)/gtk-sharp-2.0 + assembly_DATA = gconfsharp-schemagen.exe + bin_SCRIPTS = gconfsharp2-schemagen + CLEANFILES = gconfsharp-schemagen.exe +--- gnome-sharp-2.15.0/vte/vte-sharp-2.0.pc.in.libdir 2006-08-18 14:21:56.000000000 +0200 ++++ gnome-sharp-2.15.0/vte/vte-sharp-2.0.pc.in 2006-08-18 14:22:11.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + gapidir=${prefix}/share/gapi-2.0 + + +--- gnome-sharp-2.15.0/gnome/gnome-sharp-2.0.pc.in.libdir 2006-08-18 14:21:56.000000000 +0200 ++++ gnome-sharp-2.15.0/gnome/gnome-sharp-2.0.pc.in 2006-08-18 14:22:36.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + gapidir=${prefix}/share/gapi-2.0 + + +--- gnome-sharp-2.15.0/gtkhtml/gtkhtml-sharp-2.0.pc.in.libdir 2006-08-18 14:21:56.000000000 +0200 ++++ gnome-sharp-2.15.0/gtkhtml/gtkhtml-sharp-2.0.pc.in 2006-08-18 14:22:26.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + gapidir=${prefix}/share/gapi-2.0 + + +--- gnome-sharp-2.15.0/rsvg/rsvg-sharp-2.0.pc.in.libdir 2006-08-18 14:21:56.000000000 +0200 ++++ gnome-sharp-2.15.0/rsvg/rsvg-sharp-2.0.pc.in 2006-08-18 14:22:18.000000000 +0200 +@@ -1,6 +1,6 @@ + prefix=${pcfiledir}/../.. + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir=@libdir@ + gapidir=${prefix}/share/gapi-2.0 + + diff --git a/gnome-sharp.spec b/gnome-sharp.spec index 9939a57..f810455 100644 --- a/gnome-sharp.spec +++ b/gnome-sharp.spec @@ -9,11 +9,14 @@ URL: ftp://ftp.gnome.org/pub/gnome/sources/gnome-sharp/2.15/ Source0: ftp://ftp.gnome.org/pub/gnome/sources/gnome-sharp/2.15/gnome-sharp-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: mono-devtools gtk2-devel libart_lgpl-devel gnome-vfs2-devel libgnomecanvas-devel libgnomeui-devel -BuildRequires: gtk-sharp2 >= 2.9.0 +Patch1: gnome-sharp-2.15.0-libdir.patch + +BuildRequires: mono-devel gtk2-devel libart_lgpl-devel gnome-vfs2-devel libgnomecanvas-devel libgnomeui-devel +BuildRequires: gtk-sharp2-devel >= 2.9.0 BuildRequires: gtk-sharp2-gapi >= 2.9.0 -BuildRequires: libglade2-devel librsvg2-devel gtkhtml3-devel vte-devel gnome-panel-devel +BuildRequires: librsvg2-devel gtkhtml3-devel vte-devel gnome-panel-devel BuildRequires: libgnomeprintui22-devel +BuildRequires: automake, libtool # Mono only availible on these: ExclusiveArch: %ix86 x86_64 ppc ia64 armv4l sparc @@ -25,10 +28,22 @@ fully native graphical GNOME applications using Mono. gnome-sharp extends gtk-sharp2 and adds bindings for gconf, libgnome, gnome-vfs, libart, gtkhtml, librsvg, and vte. +%package devel +Summary: files needed for developing with gnome-sharp +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkg-config + +%description devel +This package provides the necessary development libraries and headers +for writing gnome-sharp2 applications. + %prep %setup -n gnome-sharp-%{version} +%patch1 -p1 -b .libdir %build +autoreconf --force --install export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir} %configure @@ -37,22 +52,28 @@ make %install %{__rm} -rf $RPM_BUILD_ROOT export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir} -make install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT GACUTIL_FLAGS="/package gtk-sharp-2.0 /gacdir %{_libdir} /root ${RPM_BUILD_ROOT}%{_libdir}" %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.*a %clean %{__rm} -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files %defattr(-,root,root,-) %doc COPYING ChangeLog README %{_bindir}/gconfsharp2-schemagen -%{_prefix}/lib/gtk-sharp-2.0/gconfsharp-schemagen.exe +%{_libdir}/gtk-sharp-2.0/gconfsharp-schemagen.exe %{_libdir}/*.so -%{_prefix}/lib/mono/gac -%{_prefix}/lib/mono/gtk-sharp-2.0/*.dll +%{_libdir}/mono/gac +%{_libdir}/mono/gtk-sharp-2.0/*.dll +%{_datadir}/gapi-2.0/* + +%files devel +%defattr(-,root,root,-) %{_libdir}/pkgconfig/*-sharp-2.0.pc -%{_prefix}/share/gapi-2.0/* %changelog * Mon Aug 14 2006 Alexander Larsson - 2.15.0-1