0fce6c
%ruby_libdir %{_datadir}/%{name}
0fce6c
%ruby_libarchdir %{_libdir}/%{name}
0fce6c
0fce6c
# This is the local lib/arch and should not be used for packaging.
0fce6c
%ruby_sitedir site_ruby
0fce6c
%ruby_sitelibdir %{_prefix}/local/share/%{name}/%{ruby_sitedir}
0fce6c
%ruby_sitearchdir %{_prefix}/local/%{_lib}/%{name}/%{ruby_sitedir}
0fce6c
0fce6c
# This is the general location for libs/archs compatible with all
0fce6c
# or most of the Ruby versions available in the Fedora repositories.
0fce6c
%ruby_vendordir vendor_ruby
0fce6c
%ruby_vendorlibdir %{ruby_libdir}/%{ruby_vendordir}
0fce6c
%ruby_vendorarchdir %{ruby_libarchdir}/%{ruby_vendordir}
0fce6c
0fce6c
# For ruby packages we want to filter out any provides caused by private
0fce6c
# libs in %%{ruby_vendorarchdir}/%%{ruby_sitearchdir}.
0fce6c
#
0fce6c
# Note that this must be invoked in the spec file, preferably as
0fce6c
# "%{?ruby_default_filter}", before any %description block.
0fce6c
%ruby_default_filter %{expand: \
0fce6c
%global __provides_exclude_from %{?__provides_exclude_from:%{__provides_exclude_from}|}^(%{ruby_vendorarchdir}|%{ruby_sitearchdir})/.*\\\\.so$ \
0fce6c
}