]> git.pld-linux.org Git - packages/dotnet-gecko-sharp.git/blobdiff - dotnet-gecko-sharp.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/dotnet-gecko-sharp.git] / dotnet-gecko-sharp.spec
index 930a11306eaf7ab301f94c0018a7d0cfc728c37c..504c6e5fcc81bb7c95a1f4c103d53006460a432f 100644 (file)
@@ -1,48 +1,57 @@
+# NOTE: libgtkembedmoz.so has been dropped since xulrunner 1.9
 Summary:       Gecko# - A Gtk# Mozilla binding
-Summary(pl):   Gecko# - wi±zanie Gtk# dla Mozilli
+Summary(pl.UTF-8):     Gecko# - wiązanie Gtk# dla Mozilli
 Name:          dotnet-gecko-sharp
-Version:       0.5
-Release:       1
-Epoch:         0
+Version:       0.6
+Release:       8
 License:       GPL
 Group:         Libraries
-Source0:       http://www.go-mono.com/archive/beta3/gecko-sharp-%{version}.tar.gz
-# Source0-md5: 71e75186b2ee5c644d5dd1560ce27357
-URL:           http://www.go-mono.com/
+Source0:       http://download.mono-project.com/sources/gecko-sharp/gecko-sharp-%{version}.tar.gz
+# Source0-md5: 9ce9bb08125f7c7eecf8bd696a3345bd
+Patch0:                %{name}-mint.patch
+Patch1:                %{name}-monodir.patch
+URL:           http://www.mono-project.com/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: mono
+# just gtk-sharp
+BuildRequires: dotnet-gtk-sharp-devel >= 0.98
+BuildRequires: gtk+2-devel >= 1:2.0.0
+BuildRequires: mono-csharp >= 1.1.7
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
 BuildConflicts:        gecko-sharp < 0.2
-Provides:      gecko-sharp = %{version}
-Obsoletes:     gecko-sharp
-Provides:      dotnet-gecko
-Obsoletes:     dotnet-gecko
+Requires:      mono >= 1.1.7
+Requires:      dotnet-gtk-sharp >= 0.98
+%ifarch %{x8664} ia64 ppc64 s390x sparc64
+Requires:      libgtkembedmoz.so()(64bit)
+%else
+Requires:      libgtkembedmoz.so
+%endif
+ExcludeArch:   i386
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Gecko# - A Gtk# Mozilla binding.
 
-%description -l pl
-Gecko# - wi±zanie Gtk# dla Mozilli.
+%description -l pl.UTF-8
+Gecko# - wiązanie Gtk# dla Mozilli.
 
 %package devel
 Summary:       Gecko# development files
-Summary(pl):   Pliki programistyczne Gecko#
+Summary(pl.UTF-8):     Pliki programistyczne Gecko#
 Group:         Development/Libraries
-Provides:      gecko-sharp-devel
-Obsoletes:     gecko-sharp-devel
-Provides:      dotnet-gecko-devel
-Obsoletes:     dotnet-gecko-devel
-Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Gecko# development files.
 
-%description devel -l pl
+%description devel -l pl.UTF-8
 Pliki programistyczne Gecko#.
 
 %prep
 %setup -q -n gecko-sharp-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal}
@@ -57,17 +66,21 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+if ! pkg-config --exists mono; then
+       sed -i -e 's/exec mono/exec mint/' $RPM_BUILD_ROOT%{_bindir}/webshot
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root)%{_bindir}/webshot
-%{_libdir}/gecko-sharp/WebThumbnailer.exe
-%{_libdir}/mono/gac/gecko-sharp
+%doc ChangeLog README
+%attr(755,root,root) %{_bindir}/webshot
+%{_libdir}/gecko-sharp
+%{_prefix}/lib/mono/gac/gecko-sharp
 
 %files devel
 %defattr(644,root,root,755)
-%{_pkgconfigdir}/*
-%{_libdir}/mono/gecko-sharp/gecko-sharp.dll
+%{_prefix}/lib/mono/gecko-sharp
+%{_pkgconfigdir}/gecko-sharp.pc
This page took 0.094989 seconds and 4 git commands to generate.