Spec cleanup

This commit is contained in:
Denis Silakov 2013-02-26 11:19:46 +04:00
parent 2236f2462d
commit 1ff40c2eb6

View file

@ -44,19 +44,7 @@ install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages
%clean
rm -rf %{buildroot}
%post
%if %mdkversion < 201000
pear install --nodeps --soft --force --register-only \
%{_datadir}/pear/packages/%{upstream_name}.xml >/dev/null || :
%endif
%preun
%if %mdkversion < 201000
if [ "$1" -eq "0" ]; then
pear uninstall --nodeps --ignore-errors --register-only \
%{pear_name} >/dev/null || :
fi
%endif
%files
%defattr(-,root,root)