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