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