Blame SOURCES/macros.ruby

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