Call /sbin/ldconfig on postinstall.
-c "LLDP daemon" -d %lldpd_chroot %lldpd_user 2> /dev/null \
|| exit 1 ; fi
-c "LLDP daemon" -d %lldpd_chroot %lldpd_user 2> /dev/null \
|| exit 1 ; fi
%if 0%{?suse_version}
# Service management for SuSE
%post
%if 0%{?suse_version}
# Service management for SuSE
%post
%{fillup_and_insserv lldpd}
%postun
%{fillup_and_insserv lldpd}
%postun
%restart_on_update lldpd
%insserv_cleanup
%preun
%restart_on_update lldpd
%insserv_cleanup
%preun
# Service management for Redhat/Centos
%post
# Service management for Redhat/Centos
%post
/sbin/chkconfig --add lldpd
%postun
/sbin/chkconfig --add lldpd
%postun
if [ "$1" -ge "1" ]; then
/sbin/service lldpd condrestart >/dev/null 2>&1 || :
fi
if [ "$1" -ge "1" ]; then
/sbin/service lldpd condrestart >/dev/null 2>&1 || :
fi
%{_sbindir}/lldpd
%{_sbindir}/lldpctl
%{_sbindir}/lldpcli
%{_sbindir}/lldpd
%{_sbindir}/lldpctl
%{_sbindir}/lldpcli
+%{_libdir}/liblldpctl.so.*
%doc %{_mandir}/man8/lldp*
%dir %attr(750,root,root) %lldpd_chroot
%config %attr(755,root,root) %{_initrddir}/lldpd
%doc %{_mandir}/man8/lldp*
%dir %attr(750,root,root) %lldpd_chroot
%config %attr(755,root,root) %{_initrddir}/lldpd
%files devel
%defattr(-,root,root)
%files devel
%defattr(-,root,root)
+%{_libdir}/liblldpctl.so
+%{_libdir}/liblldpctl.a
+%{_libdir}/liblldpctl.la
%{_libdir}/pkgconfig/lldpctl.pc
%{_includedir}/lldpctl.h
%{_includedir}/lldp-const.h
%{_libdir}/pkgconfig/lldpctl.pc
%{_includedir}/lldpctl.h
%{_includedir}/lldp-const.h