Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-07-30 10:26:18 +02:00
parent b9434cd0ba
commit dc7dd9ed12
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -9,6 +9,8 @@ Group: Development/Tools
URL: http://invisible-island.net/byacc/byacc.html URL: http://invisible-island.net/byacc/byacc.html
Source: ftp://invisible-island.net/byacc/byacc-%{byaccdate}.tgz Source: ftp://invisible-island.net/byacc/byacc-%{byaccdate}.tgz
BuildRequires: gcc
%description %description
This package provides a parser generator utility that reads a grammar This package provides a parser generator utility that reads a grammar
specification from a file and generates an LR(1) parser for it. The specification from a file and generates an LR(1) parser for it. The
@ -29,13 +31,12 @@ find . -type f -name \*.c -print0 |
%build %build
%configure --disable-dependency-tracking %configure --disable-dependency-tracking
make %{?_smp_mflags} %make_build
%install %install
rm -rf $RPM_BUILD_ROOT %make_install
make DESTDIR=$RPM_BUILD_ROOT install ln -s yacc %{buildroot}%{_bindir}/byacc
ln -s yacc $RPM_BUILD_ROOT/%{_bindir}/byacc ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1
ln -s yacc.1 $RPM_BUILD_ROOT/%{_mandir}/man1/byacc.1
%check %check
echo ====================TESTING========================= echo ====================TESTING=========================
@ -44,7 +45,6 @@ echo ====================TESTING END=====================
%files %files
%doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NOTES NO_WARRANTY README %doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NOTES NO_WARRANTY README
%defattr(-,root,root,-)
%{_bindir}/yacc %{_bindir}/yacc
%{_bindir}/byacc %{_bindir}/byacc
%{_mandir}/man1/yacc.1* %{_mandir}/man1/yacc.1*