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