Add basic support for uninstall scripts.
RPM_INSTALL_PREFIX{n} is not yet supported and upgrading a package
where an uninstall script changes may need more work to ensure the
old script doesn't get included in the merged set (when it is too
late to remove). I haven't yet tested whether this is a real problem.
8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19 mkdir -p %{buildroot}%{_sysconfdir}
20 mkdir -p %{buildroot}/{%{_bindir},%{_libdir},%{_includedir}}
21 mkdir -p %{buildroot}/media
27 function mkdir_missing(dir)
28 if posix.stat(dir) == nil then
32 mkdir_missing("/media/cdrom")
35 %defattr(0755,root,root)