]> TLD Linux GIT Repositories - packages/lxpanel.git/commitdiff
- add required ldconfig stuff
authorMarcin Krol <hawk@tld-linux.org>
Wed, 20 Apr 2016 10:24:25 +0000 (10:24 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Wed, 20 Apr 2016 10:24:25 +0000 (10:24 +0000)
lxpanel.spec

index bddbf8fb342307b2177443ec9e834b98497a31f1..09f2c1b3b7b470f31d9d67f11c607633a19ed6df 100644 (file)
@@ -4,7 +4,7 @@
 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
@@ -26,6 +26,7 @@ BuildRequires:        menu-cache-devel
 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)
 
@@ -60,9 +61,16 @@ Pliki nagłówkowe biblioteki lxpanel.
 
 %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}
@@ -70,9 +78,20 @@ rm -rf $RPM_BUILD_ROOT
 %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