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