Use macros where applicable and drop unecessary rm $RPM_BUILD_ROOT
This commit is contained in:
parent
d95f0a73a9
commit
debaa68e48
17
bison.spec
17
bison.spec
@ -16,7 +16,7 @@ BuildRequires: autoconf
|
||||
BuildRequires: flex
|
||||
BuildRequires: gnupg2
|
||||
|
||||
URL: http://www.gnu.org/software/bison/
|
||||
URL: http://www.gnu.org/software/%{name}/
|
||||
BuildRequires: m4 >= 1.4
|
||||
#java-1.7.0-openjdk-devel
|
||||
Requires: m4 >= 1.4
|
||||
@ -79,21 +79,20 @@ Bison manual section for more information.
|
||||
|
||||
%build
|
||||
%configure
|
||||
make
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make check
|
||||
#make maintainer-check
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%makeinstall
|
||||
%make_install
|
||||
|
||||
# Remove unpackaged files.
|
||||
rm -f $RPM_BUILD_ROOT/%{_bindir}/yacc
|
||||
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc*
|
||||
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples/*
|
||||
rm -f %{buildroot}/%{_bindir}/yacc
|
||||
rm -f %{buildroot}/%{_infodir}/dir
|
||||
rm -f %{buildroot}/%{_mandir}/man1/yacc*
|
||||
rm -rf %{buildroot}/%{_docdir}/%{name}/examples/*
|
||||
|
||||
%find_lang %{name}
|
||||
%find_lang %{name}-runtime
|
||||
@ -120,7 +119,7 @@ gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
|
||||
%{_libdir}/liby.a
|
||||
|
||||
%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)
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-2
|
||||
|
Loading…
Reference in New Issue
Block a user