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}