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