]>
Commit | Line | Data |
---|---|---|
f17f265d | 1 | Summary: GNOME 2 libraries for Ruby |
4b7b2784 | 2 | Summary(pl.UTF-8): Biblioteki GNOME 2 dla Ruby |
1415aa2c | 3 | Name: ruby-gnome2 |
a7ca994c | 4 | Version: 0.19.4 |
15186f55 | 5 | Release: 4 |
1415aa2c | 6 | License: GPL |
7 | Group: Development/Languages | |
f4c7242a | 8 | Source0: http://dl.sourceforge.net/ruby-gnome2/%{name}-all-%{version}.tar.gz |
a7ca994c | 9 | # Source0-md5: 40451e4173e2c8bcd5046aea7e499ef9 |
284fe018 | 10 | Patch0: %{name}-libxul.patch |
431a02b3 | 11 | Patch1: %{name}-libgnomeui.patch |
069551a2 | 12 | Patch2: %{name}-ruby19.patch |
1415aa2c | 13 | URL: http://ruby-gnome2.sourceforge.jp/ |
eb536ac1 JB |
14 | BuildRequires: GConf2-devel >= 2.0 |
15 | BuildRequires: glib2-devel >= 2.0 | |
106239ae | 16 | BuildRequires: gnome-panel-devel >= 2.0 |
eb536ac1 | 17 | BuildRequires: gnome-vfs2-devel >= 2.0 |
431a02b3 | 18 | BuildRequires: goocanvas-devel >= 0.8 |
fb1a2263 | 19 | BuildRequires: gstreamer-plugins-base-devel |
431a02b3 | 20 | BuildRequires: gtk+2-devel >= 2:2.12.0 |
eb536ac1 | 21 | BuildRequires: gtkglext-devel >= 1.0 |
106239ae | 22 | BuildRequires: gtksourceview-devel |
431a02b3 | 23 | BuildRequires: gtksourceview2-devel |
eb536ac1 JB |
24 | BuildRequires: libart_lgpl-devel >= 2.0 |
25 | BuildRequires: libglade2-devel >= 2.0 | |
26 | BuildRequires: libgnomecanvas-devel >= 2.0 | |
318ae66b | 27 | BuildRequires: libgnomeprintui-devel |
eb536ac1 | 28 | BuildRequires: libgnomeui-devel >= 2.0 |
106239ae | 29 | BuildRequires: libgtkhtml-devel >= 2.0 |
431a02b3 | 30 | BuildRequires: libjpeg-devel |
106239ae | 31 | BuildRequires: libpng-devel |
318ae66b | 32 | BuildRequires: librsvg-devel |
eb536ac1 JB |
33 | BuildRequires: pango-devel |
34 | BuildRequires: pkgconfig | |
431a02b3 | 35 | BuildRequires: poppler-glib-devel >= 0.5.2 |
cc7bc1c2 | 36 | BuildRequires: rpmbuild(macros) >= 1.277 |
2d0c65e5 | 37 | BuildRequires: ruby-devel |
069551a2 | 38 | BuildRequires: ruby-rcairo >= 1.8.1-3 |
9865ee37 | 39 | BuildRequires: sed >= 4.0 |
431a02b3 | 40 | BuildRequires: vte-devel >= 0.12.1 |
284fe018 | 41 | BuildRequires: xulrunner-devel >= 1.9-5 |
431a02b3 | 42 | BuildRequires: zlib-devel |
7c7e8880 | 43 | Requires: ruby-rbogl |
284fe018 | 44 | Requires: ruby-rcairo |
fd600827 | 45 | %{?ruby_mod_ver_requires_eq} |
1415aa2c | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
f17f265d | 49 | GNOME 2 libraries for Ruby, including GTKHtml2. |
7c7e8880 | 50 | |
af27d76f JR |
51 | %description -l pl.UTF-8 |
52 | Biblioteki GNOME 2 dla Ruby, włącznie z GTKHtml2. | |
1415aa2c | 53 | |
fc67a9b4 | 54 | %package devel |
0626bbf7 | 55 | Summary: Header files for Ruby-GNOME2 |
4b7b2784 | 56 | Summary(pl.UTF-8): Pliki nagłówkowe dla Ruby-GNOME2 |
0626bbf7 JB |
57 | Group: Development/Libraries |
58 | Requires: %{name} = %{version}-%{release} | |
fc67a9b4 | 59 | |
60 | %description devel | |
61 | Header files for Ruby-GNOME2. | |
62 | ||
af27d76f JR |
63 | %description devel -l pl.UTF-8 |
64 | Pliki nagłówkowe dla Ruby-GNOME2. | |
0626bbf7 | 65 | |
9fdef8cc | 66 | %package doc-ri |
67 | Summary: Ruby-GNOME2 ri documentation | |
4b7b2784 | 68 | Summary(pl.UTF-8): Dokumentacja dla Ruby-GNOME2 w formacie ri. |
9fdef8cc | 69 | Group: Documentation |
1a316027 | 70 | Requires: %{name} = %{version}-%{release} |
71 | ||
9fdef8cc | 72 | %description doc-ri |
73 | Ruby-GNOME2 ri documentation. | |
1a316027 | 74 | |
af27d76f | 75 | %description doc-ri -l pl.UTF-8 |
9fdef8cc | 76 | Dokumentacja dla Ruby-GNOME2 w formacie ri. |
1a316027 | 77 | |
78 | %package examples | |
79 | Summary: Ruby-GNOME2 examples | |
4b7b2784 | 80 | Summary(pl.UTF-8): Przykłady do Ruby-GNOME2 |
1a316027 | 81 | Group: Development/Libraries |
82 | ||
83 | %description examples | |
84 | Ruby-GNOME2 examples. | |
85 | ||
af27d76f JR |
86 | %description examples -l pl.UTF-8 |
87 | Przykłady do Ruby-GNOME2. | |
1a316027 | 88 | |
1415aa2c | 89 | %prep |
6f024924 | 90 | %setup -q -n %{name}-all-%{version} |
284fe018 | 91 | %patch0 -p1 |
431a02b3 | 92 | %patch1 -p1 |
069551a2 | 93 | %patch2 -p1 |
9865ee37 | 94 | find . -name '*.rb' | xargs sed -i -e '1s,#.*local/bin/ruby,#!%{_bindir}/ruby,' |
1415aa2c | 95 | |
96 | %build | |
f8791c67 | 97 | ruby extconf.rb --enable-glib-experimental |
1415aa2c | 98 | %{__make} |
99 | ||
479e3a17 | 100 | rdoc -o rdoc |
101 | rdoc --ri -o ri | |
102 | ||
1415aa2c | 103 | %install |
104 | rm -rf $RPM_BUILD_ROOT | |
479e3a17 | 105 | install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_rubylibdir},%{ruby_ridir}} \ |
431a02b3 | 106 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/{gtkhtml2,gnomecanvas,libart,libglade,gtkglext,gtk/{gtk-demo,misc,testgtk},gnome/test-gnome,gdkpixbuf,pango} |
1415aa2c | 107 | |
c17551df | 108 | %{__make} install \ |
57b56947 JR |
109 | DESTDIR=$RPM_BUILD_ROOT \ |
110 | RUBYLIBDIR=$RPM_BUILD_ROOT%{ruby_rubylibdir} \ | |
111 | sitearchdir=$RPM_BUILD_ROOT%{ruby_archdir} \ | |
112 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_archdir} | |
1f4a1c85 | 113 | |
1415aa2c | 114 | install gtkhtml2/sample/*.rb \ |
7c7e8880 | 115 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtkhtml2 |
1415aa2c | 116 | |
117 | install gnomecanvas/sample/*.rb \ | |
7c7e8880 | 118 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gnomecanvas |
1415aa2c | 119 | |
120 | install libart/sample/*.rb \ | |
7c7e8880 | 121 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/libart |
1415aa2c | 122 | |
123 | install libglade/sample/*.rb \ | |
7c7e8880 | 124 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/libglade |
1415aa2c | 125 | |
126 | install gtkglext/sample/*.rb \ | |
7c7e8880 | 127 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtkglext |
1415aa2c | 128 | |
1415aa2c | 129 | install gnome/sample/*.rb \ |
7c7e8880 | 130 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gnome |
1415aa2c | 131 | |
132 | install pango/sample/*.rb \ | |
7c7e8880 | 133 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/pango |
1415aa2c | 134 | |
135 | install gdkpixbuf/sample/*.rb \ | |
7c7e8880 | 136 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gdkpixbuf |
1415aa2c | 137 | |
138 | install gtk/sample/gtk-demo/*.rb \ | |
7c7e8880 | 139 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtk/gtk-demo |
1415aa2c | 140 | |
141 | install gtk/sample/misc/*.rb \ | |
7c7e8880 | 142 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtk/misc |
1415aa2c | 143 | |
144 | install gtk/sample/testgtk/*.rb \ | |
7c7e8880 | 145 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtk/testgtk |
1415aa2c | 146 | |
147 | install gnome/sample/test-gnome/*.rb \ | |
7c7e8880 | 148 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gnome/test-gnome |
1415aa2c | 149 | |
baa03b11 | 150 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} |
dba2b696 | 151 | rm -rf $RPM_BUILD_ROOT%{ruby_ridir}/ri/{Array,Object,TC*,Test*} |
479e3a17 | 152 | |
4932b6e1 | 153 | rm -f $RPM_BUILD_ROOT%{ruby_ridir}/Array/cdesc-Array.yaml |
154 | ||
1415aa2c | 155 | %clean |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %files | |
159 | %defattr(644,root,root,755) | |
479e3a17 | 160 | %doc README ChangeLog rdoc |
431a02b3 MB |
161 | %attr(755,root,root) %{ruby_archdir}/atk.so |
162 | %attr(755,root,root) %{ruby_archdir}/bonobo2.so | |
163 | %attr(755,root,root) %{ruby_archdir}/bonoboui2.so | |
164 | %attr(755,root,root) %{ruby_archdir}/gconf2.so | |
165 | %attr(755,root,root) %{ruby_archdir}/gdk_pixbuf2.so | |
166 | %attr(755,root,root) %{ruby_archdir}/glib2.so | |
167 | %attr(755,root,root) %{ruby_archdir}/gnome2.so | |
168 | %attr(755,root,root) %{ruby_archdir}/gnomecanvas2.so | |
169 | %attr(755,root,root) %{ruby_archdir}/gnomeprint2.so | |
170 | %attr(755,root,root) %{ruby_archdir}/gnomeprintui2.so | |
171 | %attr(755,root,root) %{ruby_archdir}/gnomevfs.so | |
172 | %attr(755,root,root) %{ruby_archdir}/goocanvas.so | |
173 | %attr(755,root,root) %{ruby_archdir}/gst.so | |
174 | %attr(755,root,root) %{ruby_archdir}/gtk2.so | |
175 | %attr(755,root,root) %{ruby_archdir}/gtkglext.so | |
176 | %attr(755,root,root) %{ruby_archdir}/gtkhtml2.so | |
177 | %attr(755,root,root) %{ruby_archdir}/gtkmozembed.so | |
178 | %attr(755,root,root) %{ruby_archdir}/gtksourceview.so | |
179 | %attr(755,root,root) %{ruby_archdir}/gtksourceview2.so | |
180 | %attr(755,root,root) %{ruby_archdir}/libart2.so | |
181 | %attr(755,root,root) %{ruby_archdir}/libglade2.so | |
182 | %attr(755,root,root) %{ruby_archdir}/panelapplet2.so | |
57b56947 | 183 | %attr(755,root,root) %{ruby_archdir}/panelapplet2_main.so |
431a02b3 MB |
184 | %attr(755,root,root) %{ruby_archdir}/pango.so |
185 | %attr(755,root,root) %{ruby_archdir}/poppler.so | |
186 | %attr(755,root,root) %{ruby_archdir}/rsvg2.so | |
187 | %attr(755,root,root) %{ruby_archdir}/vte.so | |
7c7e8880 | 188 | %{ruby_rubylibdir}/*.rb |
833fa2f2 | 189 | %{ruby_rubylibdir}/gtk2 |
fc67a9b4 | 190 | |
191 | %files devel | |
0626bbf7 | 192 | %defattr(644,root,root,755) |
fc67a9b4 | 193 | %{ruby_archdir}/*.h |
57b56947 | 194 | %{_pkgconfigdir}/*.pc |
1a316027 | 195 | |
9fdef8cc | 196 | %files doc-ri |
1a316027 | 197 | %defattr(644,root,root,755) |
198 | %{ruby_ridir}/* | |
199 | ||
200 | %files examples | |
201 | %defattr(644,root,root,755) | |
202 | %{_examplesdir}/%{name}-%{version} |