|
@@ -1,17 +1,18 @@
|
|
|
-%define byaccdate 20070509
|
|
|
+%define byaccdate 20200330
|
|
|
|
|
|
Summary: A public domain Yacc parser generator.
|
|
|
Summary(ja): パブリックドメイン yacc 構文解析器生成プログラム
|
|
|
Name: byacc
|
|
|
Version: 1.9
|
|
|
-Release: 27%{?_dist_release}
|
|
|
-License: public domain
|
|
|
+Release: 28%{?_dist_release}
|
|
|
Group: Development/Tools
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+
|
|
|
+License: public domain
|
|
|
# The source is taken from FreeBSD's CVS as of Thu Sep 28 2000
|
|
|
-URL: http://invisible-island.net/byacc/byacc.html
|
|
|
+URL: https://invisible-island.net/byacc/byacc.html
|
|
|
Source: ftp://invisible-island.net/byacc/byacc-%{byaccdate}.tgz
|
|
|
-Patch: bsdyacc-linux.patch
|
|
|
-Patch1: byacc-1.9-security.patch
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
%description
|
|
@@ -31,28 +32,33 @@ byacc (Berkeley Yacc) はパブリックドメインの LALR 構文解析器生
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n byacc-%{byaccdate}
|
|
|
-#%patch -p1 -b .lnx
|
|
|
-#%patch1 -p1 -b .security
|
|
|
+
|
|
|
+# Revert default stack size back to 10000
|
|
|
+# https://bugzilla.redhat.com/show_bug.cgi?id=743343
|
|
|
+find . -type f -name \*.c -print0 |
|
|
|
+ xargs -0 sed -i 's/YYSTACKSIZE 500/YYSTACKSIZE 10000/g'
|
|
|
|
|
|
|
|
|
%build
|
|
|
-#chmod u+w `find .`
|
|
|
-#make CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
|
|
|
%configure --disable-dependency-tracking
|
|
|
%{__make}
|
|
|
|
|
|
+
|
|
|
+%check
|
|
|
+echo ====================TESTING=========================
|
|
|
+make check
|
|
|
+echo ====================TESTING END=====================
|
|
|
+
|
|
|
+
|
|
|
%install
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
-#mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
|
|
|
-#install -c -m 755 -s yacc $RPM_BUILD_ROOT%{_bindir}/yacc
|
|
|
-#install -c -m 644 yacc.1 $RPM_BUILD_ROOT%{_mandir}/man1/yacc.1
|
|
|
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
|
|
|
-ln -sf yacc $RPM_BUILD_ROOT%{_bindir}/byacc
|
|
|
-ln -sf yacc.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/byacc.1.gz
|
|
|
+rm -rf %{buildroot}
|
|
|
+%make_install
|
|
|
+ln -s yacc %{buildroot}%{_bindir}/byacc
|
|
|
+ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1
|
|
|
|
|
|
|
|
|
%clean
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
%files
|
|
@@ -64,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Jul 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9-28
|
|
|
+- updated tarball from CVS.
|
|
|
+
|
|
|
* Sun Aug 24 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.9-27
|
|
|
- rebuild with VineSeed environment
|
|
|
|