%n bzip %v 0.21 %c * %l * %b * %d * %f * %t bzip-0.21.tgz %w Misc %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N bzip-0.21/Makefile bzip-MCC/Makefile --- bzip-0.21/Makefile Fri Sep 27 16:47:38 1996 +++ bzip-MCC/Makefile Sun Oct 13 23:48:41 1996 @@ -3,8 +3,12 @@ CC = gcc -CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -fno-strength-reduce -Wall -Winline -Wshadow -W +CFLAGS = -O6 -fomit-frame-pointer -funroll-loops -Wall -Winline +LDFLAGS = -Wl,-warn-common +prefix=/usr +bindir=$(prefix)/bin +mandir=$(prefix)/man/man1 -bzip: bzip.c - $(CC) $(CFLAGS) -o bzip bzip.c +bzip: bzip.o + $(CC) $(LDFLAGS) -o bzip bzip.c bunzip: bzip @@ -12,8 +16,11 @@ install: bzip bunzip - cp -dfp bzip bunzip /usr/local/bin/ + install -s -m 555 bzip $(bindir) + ln -f $(bindir)/bzip $(bindir)/bunzip + install -m 444 bzip.1 $(mandir) + gzip -9f $(mandir)/bzip.1 clean: - rm -f bzip bunzip + rm -f bzip bunzip core *.o dist: ENDPATCH make * make install prefix=/usr/local %%