vondruch / rpms / ruby

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