%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
-%triggerpostun -- poldek < 0.30-0.20080225.00.1
-if ! grep -q '^%%includedir repos.d' %{_sysconfdir}/%{name}/poldek.conf; then
- %{__sed} -i -e '/^%%include source.conf/{
- a
- a# /etc/poldek/repos.d/*.conf
- a%%includedir repos.d
- }' %{_sysconfdir}/%{name}/poldek.conf
-fi
-
-%{__sed} -i -e '/%%include %%{_distro}-source.conf/d' %{_sysconfdir}/%{name}/poldek.conf
-%{__sed} -i -e '/%%include %%{_distro}-multilib-source.conf/d' %{_sysconfdir}/%{name}/poldek.conf
-
-if [ -f %{_sysconfdir}/%{name}/tld-source.conf.rpmsave ]; then
- %{__mv} -f %{_sysconfdir}/%{name}/repos.d/tld.conf{,.rpmnew}
- %{__mv} -v %{_sysconfdir}/%{name}/tld-source.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/tld.conf
-fi
-
-%ifarch %{x8664}
-if [ -f %{_sysconfdir}/%{name}/tld-multilib-source.conf.rpmsave ]; then
- %{__mv} -f %{_sysconfdir}/%{name}/repos.d/tld-multilib.conf{,.rpmnew}
- %{__mv} -v %{_sysconfdir}/%{name}/tld-multilib-source.conf.rpmsave %{_sysconfdir}/%{name}/repos.d/tld-multilib.conf
-fi
-%endif
-
-%triggerpostun -- %{name} < 0.30.1-8
-if [ $1 -le 1 ]; then
- # revert change on --downgrade
- %{__sed} -i -re 's,^pm command = %{pkglibexecdir}/pm-command.sh,#&,' %{_sysconfdir}/%{name}/%{name}.conf
-else
- # setup pm command
- %{__sed} -i -re 's,#?(pm command =).*,\1 %{pkglibexecdir}/pm-command.sh,' %{_sysconfdir}/%{name}/%{name}.conf
-fi
-
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc ChangeLog README* NEWS configs