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