46 |
%define my_target_cpu x86_64 |
%define my_target_cpu x86_64 |
47 |
%endif |
%endif |
48 |
|
|
49 |
|
# we're building for eabi |
50 |
|
%ifarch %arm |
51 |
|
%define abi -eabi |
52 |
|
%else |
53 |
|
%define abi %{nil} |
54 |
|
%endif |
55 |
|
|
56 |
%package doc |
%package doc |
57 |
Summary: Documentation for the powerful language Ruby |
Summary: Documentation for the powerful language Ruby |
58 |
Group: Development/Ruby |
Group: Development/Ruby |
149 |
&& find usr/lib/ruby/%{subver} \ |
&& find usr/lib/ruby/%{subver} \ |
150 |
\( -not -type d -printf "/%%p\n" \) \ |
\( -not -type d -printf "/%%p\n" \) \ |
151 |
-or \( -type d -printf "%%%%dir /%%p\n" \) \ |
-or \( -type d -printf "%%%%dir /%%p\n" \) \ |
152 |
) | egrep -v '/(tcl)?tk|(%{my_target_cpu}-%{_target_os}/.*[ha]$)' > %{name}.list |
) | egrep -v '/(tcl)?tk|(%{my_target_cpu}-%{_target_os}%{abi}/.*[ha]$)' > %{name}.list |
153 |
|
|
154 |
# Fix scripts permissions and location |
# Fix scripts permissions and location |
155 |
find %buildroot sample -type f | file -i -f - | grep text | cut -d: -f1 >text.list |
find %buildroot sample -type f | file -i -f - | grep text | cut -d: -f1 >text.list |
196 |
|
|
197 |
%files devel |
%files devel |
198 |
%defattr(-, root, root) |
%defattr(-, root, root) |
199 |
%{_prefix}/lib/%{name}/%{subver}/%{my_target_cpu}-%{_target_os}/*.[ah] |
%{_prefix}/lib/%{name}/%{subver}/%{my_target_cpu}-%{_target_os}%{abi}/*.[ah] |
200 |
%{_libdir}/libruby-static.a |
%{_libdir}/libruby-static.a |
201 |
%{_libdir}/libruby.so |
%{_libdir}/libruby.so |
202 |
|
|
203 |
%files tk |
%files tk |
204 |
%defattr(-, root, root) |
%defattr(-, root, root) |
205 |
%{_prefix}/lib/%{name}/%{subver}/%{my_target_cpu}-%{_target_os}/tcltk* |
%{_prefix}/lib/%{name}/%{subver}/%{my_target_cpu}-%{_target_os}%{abi}/tcltk* |
206 |
%{_prefix}/lib/%{name}/%{subver}/%{my_target_cpu}-%{_target_os}/tk* |
%{_prefix}/lib/%{name}/%{subver}/%{my_target_cpu}-%{_target_os}%{abi}/tk* |
207 |
%{_prefix}/lib/%{name}/%{subver}/tcltk* |
%{_prefix}/lib/%{name}/%{subver}/tcltk* |
208 |
%{_prefix}/lib/%{name}/%{subver}/tk* |
%{_prefix}/lib/%{name}/%{subver}/tk* |
209 |
%{_prefix}/lib/%{name}/%{subver}/test/unit/ui/tk |
%{_prefix}/lib/%{name}/%{subver}/test/unit/ui/tk |