# $Id: test.spec,v 1.2 2004/08/20 21:17:31 jmates Exp $ Summary: For testing things with RPM Name: test Version: 1 Release: sial2 License: Public Domain Group: Applications/System URL: http://sial.org/ BuildRequires: mktemp BuildArchitectures: noarch buildroot: %{_tmppath}/build-%{name}-%{version} %description RPM to test things with RPM, such as sectional scripts and the like. %install mkdir -p %{buildroot}/tmp mktemp %{buildroot}/tmp/%{name}-XXXXXXXX %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %pre echo "pre args $@" %post echo "post args $@" if [ "$1" = 1 ]; then echo "first time %{name} being installed" fi %preun echo "preun args $@" %postun echo "postun args $@" if [ "$1" = 0 ]; then echo "last %{name} being removed" fi %files /tmp/*