Cleanup spec
(cherry picked from commit 1e859e87c2dadf1fb95931a95e06fba3d5e6dffa)
This commit is contained in:
parent
a4999cead3
commit
7d9c714721
52
bison.spec
52
bison.spec
@ -1,16 +1,15 @@
|
|||||||
Name: bison
|
Name: bison
|
||||||
Version: 3.8.2
|
Version: 3.8.2
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: A GNU general-purpose parser generator
|
Summary: A GNU general-purpose parser generator
|
||||||
License: GPLv3+
|
License: GPL-3.0-or-later AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-2.0-or-later AND GPL-2.0-or-later WITH Autoconf-exception-generic AND LGPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND FSFULLR AND GFDL-1.3-or-later AND X11
|
||||||
URL: http://www.gnu.org/software/bison/
|
URL: https://www.gnu.org/software/bison/
|
||||||
Source0: https://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
|
Source0: https://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
|
||||||
|
|
||||||
Patch1: backport-tests-make-it-easier-to-spot-failures.patch
|
Patch1: backport-tests-make-it-easier-to-spot-failures.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++ autoconf automake m4 flex
|
BuildRequires: gcc-c++ autoconf automake m4 flex
|
||||||
Requires(post): info
|
Requires: m4 >= 1.4
|
||||||
Requires(preun):info
|
|
||||||
Provides: bundled(gnulib)
|
Provides: bundled(gnulib)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -29,6 +28,7 @@ programming languages.
|
|||||||
Summary: -ly library for development using bison-generated parsers
|
Summary: -ly library for development using bison-generated parsers
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: %{name}-static = %{version}-%{release}
|
Provides: %{name}-static = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains libraries used by programs using bison-generated parsers.
|
This package contains libraries used by programs using bison-generated parsers.
|
||||||
|
|
||||||
@ -36,6 +36,8 @@ This package contains libraries used by programs using bison-generated parsers.
|
|||||||
Summary: Language files for bison.
|
Summary: Language files for bison.
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: %{name}-runtime = %{version}-%{release}
|
Provides: %{name}-runtime = %{version}-%{release}
|
||||||
|
Obsoletes: bison-runtime < %{version}-%{release}
|
||||||
|
|
||||||
%description lang
|
%description lang
|
||||||
This package contains language support files and locale.
|
This package contains language support files and locale.
|
||||||
|
|
||||||
@ -51,46 +53,38 @@ This package contains language support files and locale.
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
rm -rf %{buildroot}%{_infodir}/dir
|
|
||||||
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info*
|
|
||||||
|
|
||||||
%post help
|
# Remove unpackaged files.
|
||||||
%install_info %{_infodir}/bison.info.gz
|
rm -f %{buildroot}/%{_bindir}/yacc
|
||||||
|
rm -f %{buildroot}/%{_infodir}/dir
|
||||||
|
rm -f %{buildroot}/%{_mandir}/man1/yacc*
|
||||||
|
rm -f %{buildroot}/%{_docdir}/%{name}/{AUTHORS,COPYING,NEWS,README,THANKS,TODO}
|
||||||
|
|
||||||
%preun help
|
%find_lang %{name}
|
||||||
if [ $1 = 0 ];then
|
%find_lang %{name}-runtime
|
||||||
%install_info_rm %{_infodir}/bison.info.gz
|
%find_lang %{name}-gnulib
|
||||||
fi
|
|
||||||
|
|
||||||
%files
|
%files -f %{name}.lang -f %{name}-gnulib.lang
|
||||||
%defattr(-,root,root)
|
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{_docdir}/%{name}/{AUTHORS,README}
|
%{_datadir}/aclocal/bison*.m4
|
||||||
%{_datadir}/aclocal/bison*
|
|
||||||
%{_datadir}/bison
|
%{_datadir}/bison
|
||||||
%{_bindir}/bison
|
%{_bindir}/bison
|
||||||
%exclude %{_bindir}/yacc
|
|
||||||
%exclude %{_docdir}/%{name}/COPYING
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||||
%exclude %{_mandir}/man1/yacc.1.gz
|
|
||||||
%{_docdir}/bison/{NEWS,THANKS,TODO}
|
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_infodir}/bison*
|
%{_infodir}/bison*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/liby.a
|
%{_libdir}/liby.a
|
||||||
%{_docdir}/bison/examples/*
|
%{_docdir}/bison/examples
|
||||||
|
|
||||||
%files lang
|
%files lang -f %{name}-runtime.lang
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/bison.mo
|
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/bison-runtime.mo
|
|
||||||
%{_datadir}/locale/*/LC_MESSAGES/bison-gnulib.mo
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 09 2024 Funda Wang <fundawang@yeah.net> - 3.8.2-3
|
||||||
|
- Cleanup spec
|
||||||
|
|
||||||
* Sat Oct 22 2022 yixiangzhike <yixiangzhike007@163.com> - 3.8.2-2
|
* Sat Oct 22 2022 yixiangzhike <yixiangzhike007@163.com> - 3.8.2-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user