%define version 0.5.2 Name: hack Summary: hack wrapper around an editor to handle automatic backups and much more Version: %{version} Release: 0 Copyright: GPL Packager: William Stearns Group: Applications/Editors Source: http://www.stearns.org/hack/hack-%{version}.tar.gz Prereq: /bin/awk /bin/basename /bin/cat /bin/chmod /bin/cp /bin/grep /bin/ln /bin/mkdir /bin/rm /bin/touch /usr/bin/dirname Buildarch: noarch Vendor: "Ross J. Michaels" , Judith Elaine and William Stearns URL: http://www.stearns.org/hack/ BuildRoot: /tmp/hack-broot %description Hack is a wrapper script around your primary editor. It makes multiple backups of, a copy of the original version of, and a symlink to every file you edit. It checks things in and out of RCS and warns you of writable RCS-enabled files. It keeps a list of every file you've edited. It puts up a useful xterm title. Finally, it breaks hardlinks before editing so you only edit the one file you expected to. %changelog * Fri Nov 1 2002 William Stearns - Prereq fixes, rpm from 0.5.2 * Sun Oct 07 2002 William Stearns - First RPM from 0.5.1 source. %prep %setup %install if [ "$RPM_BUILD_ROOT" = "/tmp/hack-broot" ]; then rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/bin #install -d $RPM_BUILD_ROOT/usr/man/man8 #make BINDIR=$RPM_BUILD_ROOT/sbin CONFIG_FILE=$RPM_BUILD_ROOT/etc/goober.conf install cp -p hack $RPM_BUILD_ROOT/bin/hack #cp -p $RPM_SOURCE_DIR/goober.init $RPM_BUILD_ROOT/etc/rc.d/init.d/goober else echo Invalid Build root \'"$RPM_BUILD_ROOT"\' exit 1 fi %clean if [ "$RPM_BUILD_ROOT" = "/tmp/hack-broot" ]; then rm -rf $RPM_BUILD_ROOT else echo Invalid Build root \'"$RPM_BUILD_ROOT"\' exit 1 fi %files %defattr(-,root,root) %attr(755,root,root) /bin/hack #%attr(644,root,root) /usr/man/man8/goober.8 # %doc faq/* README ChangeLog QUICKSTART doc/* # %doc contrib/url-normalizer.pl contrib/rredir.* contrib/user-agents.pl