Use ruby_vendorarchdir provided by ruby-devel. (#923649)

This commit is contained in:
Vít Ondruch 2013-03-20 10:31:48 +01:00 committed by Petr Lautrbach
parent e4fb3f8a7a
commit 013b6729cd
1 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@
%endif
%define ruby_inc %(pkg-config --cflags ruby)
%define ruby_sitearch %(ruby -rrbconfig -e "puts RbConfig::CONFIG['vendorarchdir']")
%define libsepolver 2.1.9-1
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
@ -157,7 +156,7 @@ InstallPythonWrapper %{__python}
InstallPythonWrapper %{__python3}
%endif # with_python3
make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}%{_libdir}" BINDIR="%{buildroot}%{_bindir}" SBINDIR="%{buildroot}%{_sbindir}" RUBYINSTALL=%{buildroot}%{ruby_sitearch} install install-rubywrap
make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}%{_libdir}" BINDIR="%{buildroot}%{_bindir}" SBINDIR="%{buildroot}%{_sbindir}" RUBYINSTALL=%{buildroot}%{ruby_vendorarchdir} install install-rubywrap
# Nuke the files we don't want to distribute
rm -f %{buildroot}%{_sbindir}/compute_*
@ -240,7 +239,7 @@ rm -rf %{buildroot}
%files ruby
%defattr(-,root,root,-)
%{ruby_sitearch}/selinux.so
%{ruby_vendorarchdir}/selinux.so
%changelog
* Mon Jan 19 2015 Vít Ondruch <vondruch@redhat.com> - 2.3-6