rm -f ${RPM_BUILD_ROOT}%{prefix}/bin/testqp
# ****************************** post *********************************
+%post core
+if [ $1 = 1 ]; then
+ if [ -d %{_sysconfdir}/ld.so.conf.d ]; then
+ echo "%{prefix}/lib" > %{_sysconfdir}/ld.so.conf.d/sope%{sope_major_version}%{sope_minor_version}.conf
+ elif [ ! "`grep '%{prefix}/lib' %{_sysconfdir}/ld.so.conf`" ]; then
+ echo "%{prefix}/lib" >> %{_sysconfdir}/ld.so.conf
+ fi
+ /sbin/ldconfig
+fi
# ****************************** postun *********************************
+%postun core
+if [ $1 = 0 ]; then
+ if [ -e %{_sysconfdir}/ld.so.conf.d/sope%{sope_major_version}%{sope_minor_version}.conf ]; then
+ rm -f %{_sysconfdir}/ld.so.conf.d/sope%{sope_major_version}%{sope_minor_version}.conf
+ fi
+ /sbin/ldconfig
+fi
# ****************************** clean ********************************
%clean