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