Name: make_uninstall Summary: make_uninstall - monitor and undo make install Copyright: GPL Group: Development/Tools/Building Version: 2.1.0 Release: 0.mv.1.SuSE9.0 BuildArch: i386 Packager: Martin Väth Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}.unrpm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: installwatch.so Prefix: %{_prefix} %description This script is used to monitor a command like 'make install', so a record of the install can be created, which will allow you to completely remove the package from your system later or to create a package. Also a backup of overwritten files is made. Instead of the 'make install' step do 'mku', and choose 'Monitor' from the menu. You can see a listing for each installed package in /var/log/uninstall/packages/package_name. %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %setup0 -c test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . %patch0 -p0 %build cd "$RPM_BUILD_DIR"/%{name}-%{version} strip undeb unrpm %install cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' install -d '%{buildroot}%{prefix}/bin' install -p -m 755 mku undeb '%{buildroot}%{prefix}/bin' install -p -m 755 unrpm '%{buildroot}%{prefix}/bin/mkuunrpm' %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %doc make_uninstall.readme %{prefix}/bin/mku %{prefix}/bin/undeb %{prefix}/bin/mkuunrpm %changelog * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Wed Oct 29 2003 Martin Väth - built from scratch