commit c05fe0159553ba953d138076375497bbce72026f Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:32:34 2019 -0400 Package init diff --git a/bison-3.0.5-gnulib-fseterr.patch b/bison-3.0.5-gnulib-fseterr.patch new file mode 100644 index 0000000..cd2a482 --- /dev/null +++ b/bison-3.0.5-gnulib-fseterr.patch @@ -0,0 +1,19 @@ +commit 4af4a4a71827c0bc5e0ec67af23edef4f15cee8e +Author: Paul Eggert +Date: Mon Mar 5 10:56:29 2018 -0800 + + fflush: adjust to glibc 2.28 libio.h removal + (Only part of this commit was backported as needed.) + +diff -Nrup a/lib/fseterr.c b/lib/fseterr.c +--- a/lib/fseterr.c 2018-05-08 06:02:48.000000000 -0400 ++++ b/lib/fseterr.c 2018-08-14 16:06:19.636282264 -0400 +@@ -29,7 +29,7 @@ fseterr (FILE *fp) + /* Most systems provide FILE as a struct and the necessary bitmask in + , because they need it for implementing getc() and putc() as + fast macros. */ +-#if defined _IO_EOF_SEEN || defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 + /* GNU libc, BeOS, Haiku, Linux libc5 */ + fp->_flags |= _IO_ERR_SEEN; + #elif defined __sferror || defined __DragonFly__ || defined __ANDROID__ diff --git a/bison-3.0.5.tar.xz b/bison-3.0.5.tar.xz new file mode 100644 index 0000000..fb018cd Binary files /dev/null and b/bison-3.0.5.tar.xz differ diff --git a/bison.spec b/bison.spec new file mode 100644 index 0000000..3c6381b --- /dev/null +++ b/bison.spec @@ -0,0 +1,98 @@ +Name: bison +Version: 3.0.5 +Release: 3 +Summary: A GNU general-purpose parser generator +License: GPLv3+ +URL: http://www.gnu.org/software/bison/ +Source0: https://ftp.gnu.org/gnu/bison/bison-3.0.5.tar.xz +Patch0: bison-3.0.5-gnulib-fseterr.patch + +BuildRequires: gcc-c++ autoconf automake m4 flex +Requires(post): info +Requires(preun):info +Provides: bundled(gnulib) + +%description +Bison is a general-purpose parser generator that converts an +annotated context-free grammar into a deterministic LR or +generalized LR (GLR) parser employing LALR(1) parser tables. +As an experimental feature, Bison can also generate IELR(1) +or canonical LR(1) parser tables. Once you are proficient with +Bison, you can use it to develop a wide range of language +parsers, from those used in simple desk calculators to complex +programming languages. + +%package_help + +%package devel +Summary: -ly library for development using bison-generated parsers +Requires: %{name} = %{version}-%{release} +Provides: %{name}-static = %{version}-%{release} +%description devel +This package contains libraries used by programs using bison-generated parsers. + +%package lang +Summary: Language files for bison. +Requires: %{name} = %{version}-%{release} +Provides: %{name}-runtime = %{version}-%{release} +%description lang +This package contains language support files and locale. + +%prep +%autosetup -p1 + +%build +%configure +%make_build + +%check +make check + +%install +%make_install +rm -rf %{buildroot}%{_infodir}/dir +gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/bison.info* + +%post help +%install_info %{_infodir}/bison.info.gz + +%preun help +if [ $1 = 0 ];then + %install_info_rm %{_infodir}/bison.info.gz +fi + +%files +%defattr(-,root,root) +%license COPYING +%{_docdir}/%{name}/{AUTHORS,README} +%{_datadir}/aclocal/bison* +%{_datadir}/bison +%{_datadir}/bison/yacc* +%{_bindir}/* +%exclude %{_docdir}/%{name}/COPYING + +%files help +%defattr(-,root,root) +%{_docdir}/bison/{NEWS,THANKS,TODO} +%{_mandir}/man1/* +%{_infodir}/bison* + +%files devel +%defattr(-,root,root) +%{_libdir}/liby.a +%{_docdir}/bison/examples/* + +%files lang +%defattr(-,root,root) +%{_datadir}/locale/*/LC_MESSAGES/bison.mo +%{_datadir}/locale/*/LC_MESSAGES/bison-runtime.mo + +%changelog +* Sun Sep 29 2019 shenyangyang - 3.0.5-3 +- Type:NA +- ID:NA +- SUG:NA +- DESC:move directory of license file + +* Thu Aug 29 2019 openEuler Buildteam - 3.0.5-2 +- Package Init