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