pvalena / rpms / ruby

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