Make building work on platforms without separate _libdir

OBS-URL: https://build.opensuse.org/package/show/Education/dictd?expand=0&rev=10
This commit is contained in:
Matej Cepl 2019-01-26 18:45:33 +00:00 committed by Git OBS Bridge
parent 4bd10e9b1a
commit decdb6a956

View File

@ -101,8 +101,10 @@ install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/dictd.service
ln -s /usr/sbin/service %{buildroot}%{_sbindir}/rcdictd
# Makefile doesn't work correctly with libdir
mkdir -p %{buildroot}%{_libdir}/
mv -v %{buildroot}%{_libexecdir}/dictdplugin* %{buildroot}%{_libdir}/
if [ "x%{_libdir}" != "x%{_libexecdir}" ] ; then
mkdir -p %{buildroot}%{_libdir}/
mv -v %{buildroot}%{_libexecdir}/dictdplugin* %{buildroot}%{_libdir}/
fi
rm -fv %{buildroot}%{_libdir}/*.{la,a}