From 013b6729cda61ac9990b0f95186ac1d7f7a7be3e Mon Sep 17 00:00:00 2001 From: Vít Ondruch Date: Feb 06 2015 18:37:34 +0000 Subject: Use ruby_vendorarchdir provided by ruby-devel. (#923649) --- diff --git a/libselinux.spec b/libselinux.spec index 52fd09d..30cedd4 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -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 - 2.3-6