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