diff --git a/avahi.spec b/avahi.spec index 7b28a3e..9b19d89 100644 --- a/avahi.spec +++ b/avahi.spec @@ -186,6 +186,11 @@ rm -rf $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/* # Make /etc/avahi/etc/localtime owned by avahi: mkdir -p $RPM_BUILD_ROOT/etc/avahi/etc touch $RPM_BUILD_ROOT/etc/avahi/etc/localtime +# +# Fix avahi-sharp default installation into /usr/lib64 on x86_64: +if [ ! -e $RPM_BUILD_ROOT/%{_prefix}/lib/mono ] && [ -e $RPM_BUILD_ROOT/%{_libdir}/mono ]; then + mv -f $RPM_BUILD_ROOT/%{_libdir}/mono $RPM_BUILD_ROOT/%{_prefix}/lib; +fi :; %clean @@ -310,12 +315,12 @@ fi %defattr(0644, root, root, 0755) %{_prefix}/lib/mono/avahi-sharp %{_prefix}/lib/mono/gac/avahi-sharp -%{_prefix}/lib/pkgconfig/avahi-sharp.pc +%{_libdir}/lib/pkgconfig/avahi-sharp.pc %endif %changelog * Thu Mar 16 2006 Jason Vas Dias - 0.6.9-6 -- Fix bug 185692: install avahi-sharp into %{prefix}/lib, not %{_libdir} +- Fix bug 185692: install avahi-sharp into %{_prefix}/lib, not %{_libdir} * Thu Mar 09 2006 Jason Vas Dias - 0.6.9-4 - fix scriptlet error introduced by last fix: