Summary: LXPanel is a lightweight X11 desktop panel
Name: lxpanel
Version: 0.8.2
-Release: 1
+Release: 2
License: GPL v2
Group: X11/Applications
Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
BuildRequires: pkgconfig
BuildRequires: tar >= 1:1.22
BuildRequires: xz
+Requires(post,postun): /sbin/ldconfig
Requires: lxmenu-data
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/ld.so.conf.d
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if "%{_lib}" == "lib64"
+echo "%{_libdir}/lxpanel" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/lxpanel64.conf
+%else
+echo "%{_libdir}/lxpanel" >$RPM_BUILD_ROOT/etc/ld.so.conf.d/lxpanel.conf
+%endif
+
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{frp,ur_PK,tt_RU}
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README
+%if "%{_lib}" == "lib64"
+/etc/ld.so.conf.d/lxpanel64.conf
+%else
+/etc/ld.so.conf.d/lxpanel.conf
+%endif
%attr(755,root,root) %{_bindir}/lxpanel
%attr(755,root,root) %{_bindir}/lxpanelctl
%dir %{_libdir}/lxpanel