From decdb6a956ae807bf467061ef42954a212eadacd7052d646863fdfa0cdf65da0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 26 Jan 2019 18:45:33 +0000 Subject: [PATCH] Make building work on platforms without separate _libdir OBS-URL: https://build.opensuse.org/package/show/Education/dictd?expand=0&rev=10 --- dictd.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dictd.spec b/dictd.spec index 24a6ccc..c039d5e 100644 --- a/dictd.spec +++ b/dictd.spec @@ -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}