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