Use macros where applicable and drop unecessary rm $RPM_BUILD_ROOT

This commit is contained in:
Dan Čermák 2020-06-14 23:02:46 +02:00 committed by Arjun Shankar
parent d95f0a73a9
commit debaa68e48

View File

@ -16,7 +16,7 @@ BuildRequires: autoconf
BuildRequires: flex BuildRequires: flex
BuildRequires: gnupg2 BuildRequires: gnupg2
URL: http://www.gnu.org/software/bison/ URL: http://www.gnu.org/software/%{name}/
BuildRequires: m4 >= 1.4 BuildRequires: m4 >= 1.4
#java-1.7.0-openjdk-devel #java-1.7.0-openjdk-devel
Requires: m4 >= 1.4 Requires: m4 >= 1.4
@ -79,21 +79,20 @@ Bison manual section for more information.
%build %build
%configure %configure
make %make_build
%check %check
make check make check
#make maintainer-check #make maintainer-check
%install %install
rm -rf $RPM_BUILD_ROOT %make_install
%makeinstall
# Remove unpackaged files. # Remove unpackaged files.
rm -f $RPM_BUILD_ROOT/%{_bindir}/yacc rm -f %{buildroot}/%{_bindir}/yacc
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir rm -f %{buildroot}/%{_infodir}/dir
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc* rm -f %{buildroot}/%{_mandir}/man1/yacc*
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/* rm -rf %{buildroot}/%{_docdir}/%{name}/examples/*
%find_lang %{name} %find_lang %{name}
%find_lang %{name}-runtime %find_lang %{name}-runtime
@ -120,7 +119,7 @@ gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
%{_libdir}/liby.a %{_libdir}/liby.a
%changelog %changelog
* Sun Jul 5 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 3.6.4-1 * Fri Jul 10 2020 Dan Čermák <dan.cermak@cgc-instruments.com> - 3.6.4-1
- Update to bison 3.6.4 (#1792738, #1847608) - Update to bison 3.6.4 (#1792738, #1847608)
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2 * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2