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