From becac56c559c259e578a8ed2bad2ccd4bb31ed2d Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 1 Mar 2007 18:19:49 +0000 Subject: [PATCH] Cleanup. --- byacc.spec | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/byacc.spec b/byacc.spec index f38b167..02145d9 100644 --- a/byacc.spec +++ b/byacc.spec @@ -7,7 +7,7 @@ Release: 1%{?dist} License: Public Domain Group: Development/Tools URL: http://dickey.his.com/byacc/byacc.html -Source: ftp://invisible-island.net/byacc/byacc-20050813.tgz +Source: ftp://invisible-island.net/byacc/byacc-%{byaccdate}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description @@ -22,13 +22,15 @@ this package. %build %configure --disable-dependency-tracking -make +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install -ln -s yacc $RPM_BUILD_ROOT/usr/bin/byacc +ln -s yacc $RPM_BUILD_ROOT/%{_bindir}/byacc ln -s yacc.1 $RPM_BUILD_ROOT/%{_mandir}/man1/byacc.1 +install -d $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ +install -m 644 ACKNOWLEDGEMENTS CHANGES README NEW_FEATURES $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}/ %check echo ====================TESTING========================= @@ -39,9 +41,10 @@ echo ====================TESTING END===================== rm -rf $RPM_BUILD_ROOT %files +%doc ACKNOWLEDGEMENTS CHANGES README NEW_FEATURES %defattr(-,root,root) -/usr/bin/yacc -/usr/bin/byacc +%{_bindir}/yacc +%{_bindir}/byacc %{_mandir}/man1/yacc.1* %{_mandir}/man1/byacc.1*