diff --git a/bison-3.0.5-gnulib-fseterr.patch b/bison-3.0.5-gnulib-fseterr.patch
deleted file mode 100644
index cd2a482896dcf334b8bb2903d0bdbe757136cc7d..0000000000000000000000000000000000000000
--- a/bison-3.0.5-gnulib-fseterr.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-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
deleted file mode 100644
index fb018cd909a276079054f3cc61449fd584a966fd..0000000000000000000000000000000000000000
Binary files a/bison-3.0.5.tar.xz and /dev/null differ
diff --git a/bison-3.5.tar.xz b/bison-3.5.tar.xz
new file mode 100644
index 0000000000000000000000000000000000000000..5332f6942d616e088410acdbab5067b900dde514
Binary files /dev/null and b/bison-3.5.tar.xz differ
diff --git a/bison.spec b/bison.spec
index a880db4c5bd4a4b9a0cd0ee5ed12298061ad454d..23202b96a717d797d6064f0998816c8278785e45 100644
--- a/bison.spec
+++ b/bison.spec
@@ -1,11 +1,10 @@
Name: bison
-Version: 3.0.5
-Release: 4
+Version: 3.5
+Release: 1
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
+Source0: https://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
BuildRequires: gcc-c++ autoconf automake m4 flex
Requires(post): info
@@ -67,7 +66,6 @@ fi
%{_docdir}/%{name}/{AUTHORS,README}
%{_datadir}/aclocal/bison*
%{_datadir}/bison
-%{_datadir}/bison/yacc*
%{_bindir}/bison
%exclude %{_bindir}/yacc
%exclude %{_docdir}/%{name}/COPYING
@@ -87,8 +85,15 @@ fi
%defattr(-,root,root)
%{_datadir}/locale/*/LC_MESSAGES/bison.mo
%{_datadir}/locale/*/LC_MESSAGES/bison-runtime.mo
+%{_datadir}/locale/*/LC_MESSAGES/bison-gnulib.mo
%changelog
+* Tue Jan 7 2020 openEuler Buildteam 3.5-1
+- Type:enhancement
+- ID:NA
+- SUG:NA
+- DESC:update version to 3.5
+
* Wed Oct 16 2019 shenyangyang - 3.0.5-4
- Type:enhancement
- ID:NA