]>
Commit | Line | Data |
---|---|---|
7ca6f00d | 1 | %include /usr/lib/rpm/macros.mono |
171b3c41 | 2 | Summary: Gecko# - A Gtk# Mozilla binding |
9bfc8f1d | 3 | Summary(pl.UTF-8): Gecko# - wiązanie Gtk# dla Mozilli |
978005c7 | 4 | Name: dotnet-gecko-sharp |
0f2962bb | 5 | Version: 0.6 |
4f02cff8 | 6 | Release: 8 |
25b697a7 | 7 | Epoch: 0 |
8 | License: GPL | |
9 | Group: Libraries | |
56b44593 | 10 | Source0: http://www.go-mono.com/archive/1.0.6/gecko-sharp-%{version}.tar.gz |
0f2962bb | 11 | # Source0-md5: 9ce9bb08125f7c7eecf8bd696a3345bd |
98bbf101 | 12 | Patch0: %{name}-mint.patch |
36d93816 | 13 | Patch1: %{name}-monodir.patch |
652453ae | 14 | URL: http://www.mono-project.com/ |
25b697a7 | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
56b44593 | 17 | # just gtk-sharp |
652453ae | 18 | BuildRequires: dotnet-gtk-sharp-devel >= 0.98 |
4f02cff8 | 19 | BuildRequires: gtk+2-devel >= 1:2.0.0 |
36d93816 | 20 | BuildRequires: mono-csharp >= 1.1.7 |
abb37e75 | 21 | BuildRequires: pkgconfig |
56b44593 | 22 | BuildRequires: sed >= 4.0 |
56c9a047 | 23 | BuildConflicts: gecko-sharp < 0.2 |
36d93816 | 24 | Requires: mono >= 1.1.7 |
abb37e75 | 25 | Requires: dotnet-gtk-sharp >= 0.98 |
2007c3ac JB |
26 | %ifarch %{x8664} ia64 ppc64 s390x sparc64 |
27 | Requires: libgtkembedmoz.so()(64bit) | |
28 | %else | |
29 | Requires: libgtkembedmoz.so | |
30 | %endif | |
4f02cff8 | 31 | ExcludeArch: i386 |
25b697a7 | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
33 | ||
34 | %description | |
171b3c41 | 35 | Gecko# - A Gtk# Mozilla binding. |
25b697a7 | 36 | |
76b1f91b JR |
37 | %description -l pl.UTF-8 |
38 | Gecko# - wiązanie Gtk# dla Mozilli. | |
25b697a7 | 39 | |
40 | %package devel | |
171b3c41 | 41 | Summary: Gecko# development files |
9bfc8f1d | 42 | Summary(pl.UTF-8): Pliki programistyczne Gecko# |
25b697a7 | 43 | Group: Development/Libraries |
abb37e75 | 44 | Requires: %{name} = %{epoch}:%{version}-%{release} |
25b697a7 | 45 | |
46 | %description devel | |
171b3c41 | 47 | Gecko# development files. |
25b697a7 | 48 | |
76b1f91b | 49 | %description devel -l pl.UTF-8 |
171b3c41 | 50 | Pliki programistyczne Gecko#. |
25b697a7 | 51 | |
52 | %prep | |
56c9a047 | 53 | %setup -q -n gecko-sharp-%{version} |
98bbf101 | 54 | %patch0 -p1 |
36d93816 | 55 | %patch1 -p1 |
25b697a7 | 56 | |
57 | %build | |
58 | %{__aclocal} | |
59 | %{__autoconf} | |
60 | %{__automake} | |
61 | %configure | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
56b44593 JB |
70 | if ! pkg-config --exists mono; then |
71 | sed -i -e 's/exec mono/exec mint/' $RPM_BUILD_ROOT%{_bindir}/webshot | |
72 | fi | |
73 | ||
25b697a7 | 74 | %clean |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc AUTHORS ChangeLog NEWS README | |
6266c1cf | 80 | %attr(755,root,root)%{_bindir}/webshot |
abb37e75 | 81 | %{_libdir}/gecko-sharp |
36d93816 | 82 | %{_prefix}/lib/mono/gac/gecko-sharp |
25b697a7 | 83 | |
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
36d93816 | 86 | %{_prefix}/lib/mono/gecko-sharp |
56b44593 | 87 | %{_pkgconfigdir}/gecko-sharp.pc |