From 01ced15b6b56148a9025d91e363f2025e7fc5a2b Mon Sep 17 00:00:00 2001 From: kloczek Date: Tue, 3 Oct 2000 06:16:42 +0000 Subject: [PATCH] - release 18: make spec %%{debug} ready and yse rpm new automation suit. Changed files: byacc.spec -> 1.20 --- byacc.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/byacc.spec b/byacc.spec index 26f636b..e3aaf50 100644 --- a/byacc.spec +++ b/byacc.spec @@ -5,9 +5,10 @@ Summary(pl): Generator analizatora sk Summary(tr): Ayrýþtýrýcý üreteci Name: byacc Version: 1.9 -Release: 17 +Release: 18 License: public domain Group: Development/Tools +Group(de): Entwicklung/Werkzeuge Group(fr): Development/Outils Group(pl): Programowanie/Narzêdzia Source0: ftp://ftp.cs.berkeley.edu/ucb/4bsd/%{name}.%{version}.tar.Z @@ -49,7 +50,9 @@ s chmod -R u+Xw . %build -%{__make} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" +%{__make} \ + CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}" \ + LDFLAGS="%{?debug:-s}" %install rm -rf $RPM_BUILD_ROOT @@ -61,8 +64,6 @@ install yacc.1 $RPM_BUILD_ROOT%{_mandir}/man1 ln -sf yacc $RPM_BUILD_ROOT%{_bindir}/byacc echo ".so yacc.1" > $RPM_BUILD_ROOT%{_mandir}/man1/byacc.1 -gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* - %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0