Name: MiniMate Summary: Companion admin application for Minivend Group: Applications/Internet Version: 4.0.0.1m Copyright: GNU General Public License Release: 1 URL: http://www.linuxia.net/minimate Packager: Mike Heins Source: http://larry.minivend.com/minimate/MiniMate-4.0.0.1m.tar.gz Requires: minivend >= 4.02 Provides: MiniMate Obsoletes: MiniMate BuildRoot: /var/tmp/minimate # From the manual %description MiniMate is the companion administration program for Minivend. It is one of the most powerful multi-platform database administration programs available. %prep %setup %build RBR=$RPM_BUILD_ROOT if test -z "$RBR" -o "$RBR" = "/" then echo "RPM_BUILD_ROOT has stupid value" exit 1 fi rm -rf $RBR mkdir -p $RBR/usr/local/minivend/lib/MiniMate cp -ra * $RBR/usr/local/minivend/lib/MiniMate chown -R root.root $RBR/usr/local/minivend/lib/MiniMate perl -pi -e 's:/usr/local/bin/perl:/usr/bin/perl:' $RBR/usr/local/minivend/lib/MiniMate/mv_upload %install %files /usr/local/minivend/lib/MiniMate %post for i in SQL::Statement Safe::Hole do status=`perl -e "require $i and print 1;" 2>/dev/null` if test "x$status" = x1 then echo > /dev/null else echo "MiniMate will require Perl's $i module to work correctly" fi done # Restart in the same way that minivend will be started normally. /etc/rc.d/init.d/minivend restart # Allow minivend to start and print a message before we exit sleep 2