From dc7dd9ed129d93a468a922590cba24b7e8550a1b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Jul 30 2018 08:26:18 +0000 Subject: BR: gcc Signed-off-by: Igor Gnatenko --- diff --git a/byacc.spec b/byacc.spec index 9ee90b9..85c6655 100644 --- a/byacc.spec +++ b/byacc.spec @@ -9,6 +9,8 @@ Group: Development/Tools URL: http://invisible-island.net/byacc/byacc.html Source: ftp://invisible-island.net/byacc/byacc-%{byaccdate}.tgz +BuildRequires: gcc + %description This package provides a parser generator utility that reads a grammar specification from a file and generates an LR(1) parser for it. The @@ -29,13 +31,12 @@ find . -type f -name \*.c -print0 | %build %configure --disable-dependency-tracking -make %{?_smp_mflags} +%make_build %install -rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install -ln -s yacc $RPM_BUILD_ROOT/%{_bindir}/byacc -ln -s yacc.1 $RPM_BUILD_ROOT/%{_mandir}/man1/byacc.1 +%make_install +ln -s yacc %{buildroot}%{_bindir}/byacc +ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1 %check echo ====================TESTING========================= @@ -44,7 +45,6 @@ echo ====================TESTING END===================== %files %doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NOTES NO_WARRANTY README -%defattr(-,root,root,-) %{_bindir}/yacc %{_bindir}/byacc %{_mandir}/man1/yacc.1*