]>
Commit | Line | Data |
---|---|---|
1 | Summary: GNOME 2 libraries for Ruby | |
2 | Summary(pl.UTF-8): Biblioteki GNOME 2 dla Ruby | |
3 | Name: ruby-gnome2 | |
4 | Version: 0.15.0 | |
5 | Release: 1 | |
6 | License: GPL | |
7 | Group: Development/Languages | |
8 | Source0: http://dl.sourceforge.net/ruby-gnome2/%{name}-all-%{version}.tar.gz | |
9 | # Source0-md5: 3e5b89b674a2b60ff9d3a2eeac0468e9 | |
10 | URL: http://ruby-gnome2.sourceforge.jp/ | |
11 | BuildRequires: GConf2-devel >= 2.0 | |
12 | BuildRequires: glib2-devel >= 2.0 | |
13 | BuildRequires: gnome-panel-devel >= 2.0 | |
14 | BuildRequires: gnome-vfs2-devel >= 2.0 | |
15 | BuildRequires: gstreamer-plugins-base-devel | |
16 | BuildRequires: gtk+2-devel >= 2:2.2 | |
17 | BuildRequires: gtkglext-devel >= 1.0 | |
18 | BuildRequires: gtksourceview-devel | |
19 | BuildRequires: libart_lgpl-devel >= 2.0 | |
20 | BuildRequires: libgda-devel | |
21 | BuildRequires: libglade2-devel >= 2.0 | |
22 | BuildRequires: libgnomecanvas-devel >= 2.0 | |
23 | BuildRequires: libgnomeprintui-devel | |
24 | BuildRequires: libgnomeui-devel >= 2.0 | |
25 | BuildRequires: libgtkhtml-devel >= 2.0 | |
26 | BuildRequires: libpng-devel | |
27 | BuildRequires: librsvg-devel | |
28 | BuildRequires: pango-devel | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: rpmbuild(macros) >= 1.277 | |
31 | BuildRequires: ruby-devel | |
32 | BuildRequires: sed >= 4.0 | |
33 | BuildRequires: vte-devel | |
34 | Requires: ruby-rcairo | |
35 | Requires: ruby-rbogl | |
36 | %{?ruby_mod_ver_requires_eq} | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | GNOME 2 libraries for Ruby, including GTKHtml2. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Biblioteki GNOME 2 dla Ruby, włącznie z GTKHtml2. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for Ruby-GNOME2 | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe dla Ruby-GNOME2 | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description devel | |
52 | Header files for Ruby-GNOME2. | |
53 | ||
54 | %description devel -l pl.UTF-8 | |
55 | Pliki nagłówkowe dla Ruby-GNOME2. | |
56 | ||
57 | %package doc-ri | |
58 | Summary: Ruby-GNOME2 ri documentation | |
59 | Summary(pl.UTF-8): Dokumentacja dla Ruby-GNOME2 w formacie ri. | |
60 | Group: Documentation | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | ||
63 | %description doc-ri | |
64 | Ruby-GNOME2 ri documentation. | |
65 | ||
66 | %description doc-ri -l pl.UTF-8 | |
67 | Dokumentacja dla Ruby-GNOME2 w formacie ri. | |
68 | ||
69 | %package examples | |
70 | Summary: Ruby-GNOME2 examples | |
71 | Summary(pl.UTF-8): Przykłady do Ruby-GNOME2 | |
72 | Group: Development/Libraries | |
73 | ||
74 | %description examples | |
75 | Ruby-GNOME2 examples. | |
76 | ||
77 | %description examples -l pl.UTF-8 | |
78 | Przykłady do Ruby-GNOME2. | |
79 | ||
80 | %prep | |
81 | %setup -q -n %{name}-all-%{version} | |
82 | find . -name '*.rb' | xargs sed -i -e '1s,#.*local/bin/ruby,#!%{_bindir}/ruby,' | |
83 | ||
84 | %build | |
85 | ruby extconf.rb --enable-glib-experimental | |
86 | %{__make} | |
87 | ||
88 | rdoc -o rdoc | |
89 | rdoc --ri -o ri | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_rubylibdir},%{ruby_ridir}} \ | |
94 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/{gtkhtml2,gnomecanvas,libart,libglade,gtkglext,gtk/gtk-demo,gtk/misc,gtk/testgtk,gnome/test-gnome,gdkpixbuf,pango} | |
95 | ||
96 | %{__make} install \ | |
97 | RUBYLIBDIR=$RPM_BUILD_ROOT%{ruby_rubylibdir} \ | |
98 | sitearchdir=$RPM_BUILD_ROOT%{ruby_archdir} \ | |
99 | RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_archdir} | |
100 | ||
101 | install gtkhtml2/sample/*.rb \ | |
102 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtkhtml2 | |
103 | ||
104 | install gnomecanvas/sample/*.rb \ | |
105 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gnomecanvas | |
106 | ||
107 | install libart/sample/*.rb \ | |
108 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/libart | |
109 | ||
110 | install libglade/sample/*.rb \ | |
111 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/libglade | |
112 | ||
113 | install gtkglext/sample/*.rb \ | |
114 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtkglext | |
115 | ||
116 | install gnome/sample/*.rb \ | |
117 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gnome | |
118 | ||
119 | install pango/sample/*.rb \ | |
120 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/pango | |
121 | ||
122 | install gdkpixbuf/sample/*.rb \ | |
123 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gdkpixbuf | |
124 | ||
125 | install gtk/sample/gtk-demo/*.rb \ | |
126 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtk/gtk-demo | |
127 | ||
128 | install gtk/sample/misc/*.rb \ | |
129 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtk/misc | |
130 | ||
131 | install gtk/sample/testgtk/*.rb \ | |
132 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gtk/testgtk | |
133 | ||
134 | install gnome/sample/test-gnome/*.rb \ | |
135 | $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/gnome/test-gnome | |
136 | ||
137 | cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir} | |
138 | rm -rf $RPM_BUILD_ROOT%{ruby_ridir}/ri/ri/{Array,Object,TC*,Test*} | |
139 | ||
140 | rm -f $RPM_BUILD_ROOT%{ruby_ridir}/Array/cdesc-Array.yaml | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %files | |
146 | %defattr(644,root,root,755) | |
147 | %doc README ChangeLog rdoc | |
148 | %attr(755,root,root) %{ruby_archdir}/*.so | |
149 | %{ruby_rubylibdir}/*.rb | |
150 | %{ruby_rubylibdir}/gtk2 | |
151 | ||
152 | %files devel | |
153 | %defattr(644,root,root,755) | |
154 | %{ruby_archdir}/*.h | |
155 | ||
156 | %files doc-ri | |
157 | %defattr(644,root,root,755) | |
158 | %{ruby_ridir}/* | |
159 | ||
160 | %files examples | |
161 | %defattr(644,root,root,755) | |
162 | %{_examplesdir}/%{name}-%{version} |