[12310] | 1 | %bcond_without check |
---|
| 2 | |
---|
[521] | 3 | Summary: A GNU general-purpose parser generator. |
---|
| 4 | Summary(ja): GNU 汎用構文解析器生成プログラム |
---|
| 5 | Name: bison |
---|
[12310] | 6 | Version: 3.4.2 |
---|
[2388] | 7 | Release: 1%{?_dist_release} |
---|
[521] | 8 | License: GPL |
---|
| 9 | Group: Development/Tools |
---|
[12310] | 10 | Source: https://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz |
---|
| 11 | URL: https://www.gnu.org/software/bison/ |
---|
[521] | 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[12310] | 14 | |
---|
| 15 | BuildRequires: flex |
---|
| 16 | |
---|
[521] | 17 | Requires: m4 >= 1.4 |
---|
| 18 | Requires(post): install-info |
---|
| 19 | Requires(preun): install-info |
---|
| 20 | |
---|
| 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Bison is a general purpose parser generator which converts a grammar |
---|
| 26 | description for an LALR(1) context-free grammar into a C program to parse |
---|
| 27 | that grammar. Bison can be used to develop a wide range of language |
---|
| 28 | parsers, from ones used in simple desk calculators to complex programming |
---|
| 29 | languages. Bison is upwardly compatible with Yacc, so any correctly |
---|
| 30 | written Yacc grammar should work with Bison without any changes. If |
---|
| 31 | you know Yacc, you shouldn't have any trouble using Bison. You do need |
---|
| 32 | to be very proficient in C programming to be able to use Bison). Bison |
---|
| 33 | is only needed on systems that are used for development. |
---|
| 34 | |
---|
| 35 | If your system will be used for C development, you should install Bison |
---|
| 36 | since it is used to build many C programs. |
---|
| 37 | |
---|
| 38 | #' |
---|
| 39 | %description -l ja |
---|
| 40 | bison は汎用構文解析器を生成するプログラムで,LALR(1) 文脈自由文法で |
---|
| 41 | 書かれた文法記述を元に,その記述を解析する C プログラムを生成します. |
---|
| 42 | bison は簡単な電卓から複雑なプログラミング言語まで,幅広い種類の |
---|
| 43 | 言語解析器を開発するのに使うことが出来ます. |
---|
| 44 | bison は yacc の上位互換ですので,yacc で書かれた文法を修正すること |
---|
| 45 | なしに解析することが出来ます.yacc を知っているのであれば,bison を |
---|
| 46 | 使って困ることは何もないでしょう.bison を使うには C プログラミングの |
---|
| 47 | 豊富な知識が必要となります.bison は開発を行うシステム以外では特に |
---|
| 48 | 必要にならないでしょう. |
---|
| 49 | |
---|
| 50 | C 言語による開発を行う場合は,多くの C プログラムの作成に使われるので |
---|
| 51 | bison をインストールして下さい. |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %prep |
---|
| 55 | %setup -q |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %build |
---|
| 59 | %configure |
---|
[12310] | 60 | make %{_smp_mflags} |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %if %{with check} |
---|
| 64 | %check |
---|
[521] | 65 | make check |
---|
[12310] | 66 | %endif |
---|
[521] | 67 | |
---|
| 68 | |
---|
| 69 | %install |
---|
| 70 | rm -rf $RPM_BUILD_ROOT |
---|
| 71 | %makeinstall |
---|
| 72 | |
---|
| 73 | # Remove unpackaged files. |
---|
| 74 | rm -f $RPM_BUILD_ROOT/%{_bindir}/yacc |
---|
| 75 | rm -f $RPM_BUILD_ROOT/%{_infodir}/dir |
---|
| 76 | rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/yacc* |
---|
| 77 | |
---|
[12310] | 78 | rm -f pkgdoc |
---|
| 79 | cp -af %{buildroot}%{_docdir}/%{name} ./pkgdoc |
---|
| 80 | rm -rf %{buildroot}%{_docdir}/%{name} |
---|
| 81 | rm -f pkgdoc/COPYING |
---|
| 82 | |
---|
[521] | 83 | %find_lang %{name} |
---|
[12310] | 84 | %find_lang %{name}-gnulib |
---|
[521] | 85 | |
---|
[12310] | 86 | cat %{name}-gnulib.lang >> %{name}.lang |
---|
[521] | 87 | |
---|
| 88 | %clean |
---|
| 89 | rm -rf $RPM_BUILD_ROOT |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %post |
---|
| 93 | /sbin/install-info %{_infodir}/bison.info.gz %{_infodir}/dir \ |
---|
| 94 | --entry="* bison: (bison). The GNU parser generator." |
---|
| 95 | |
---|
| 96 | %preun |
---|
| 97 | if [ $1 = 0 ]; then |
---|
| 98 | /sbin/install-info --delete %{_infodir}/bison.info.gz %{_infodir}/dir \ |
---|
| 99 | --entry="* bison: (bison). The GNU parser generator." |
---|
| 100 | fi |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %files -f %{name}.lang |
---|
| 104 | %defattr(-,root,root) |
---|
[12310] | 105 | %license COPYING |
---|
| 106 | %doc pkgdoc/* |
---|
[521] | 107 | %{_bindir}/bison |
---|
| 108 | %{_libdir}/liby.a |
---|
| 109 | %{_datadir}/bison |
---|
| 110 | %{_datadir}/aclocal/*.m4 |
---|
| 111 | %{_datadir}/locale/*/LC_MESSAGES/%{name}-runtime.mo |
---|
| 112 | %{_mandir}/*/bison* |
---|
| 113 | %{_infodir}/bison.info* |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %changelog |
---|
[12310] | 117 | * Tue Nov 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.4.2-1 |
---|
| 118 | - new upstream release. |
---|
| 119 | |
---|
[8067] | 120 | * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.7.1-1 |
---|
| 121 | - update to 2.7.1 |
---|
| 122 | |
---|
[5733] | 123 | * Tue Feb 21 2012 NAKAMURA Kenta <kenta@vinelinux.org> 2.5-1 |
---|
| 124 | - new upstream release |
---|
| 125 | |
---|
[2388] | 126 | * Sat Dec 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.3-1 |
---|
| 127 | - new upstream release |
---|
| 128 | - delete Patch1 |
---|
| 129 | |
---|
[521] | 130 | * Wed Feb 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-2 |
---|
| 131 | - rebuilt with new toolchain |
---|
| 132 | |
---|
| 133 | * Tue Feb 3 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4.1-1 |
---|
| 134 | - new upstream release |
---|
| 135 | - import Patch1 from Fedora |
---|
| 136 | |
---|
| 137 | * Sat Nov 8 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4-1 |
---|
| 138 | - new upstream release |
---|
| 139 | - spec in UTF-8 |
---|
| 140 | |
---|
| 141 | * Sun Apr 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.3-1 |
---|
| 142 | - rebuild with new toolchain. |
---|
| 143 | - apply new versioning policy. |
---|
| 144 | |
---|
| 145 | * Sat Nov 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3-0vl1 |
---|
| 146 | - new upstream release |
---|
| 147 | |
---|
| 148 | * Tue Mar 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1-0vl1 |
---|
| 149 | - new upstream release |
---|
| 150 | |
---|
[8067] | 151 | * Wed Jun 09 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-6vl1 |
---|
[521] | 152 | - new upstream release |
---|
| 153 | - dropped Patch1 |
---|
| 154 | - added %doc files |
---|
| 155 | - updated URL |
---|
| 156 | |
---|
| 157 | * Sun Feb 08 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.875-6vl1 |
---|
| 158 | - add Patch1 from fedora |
---|
| 159 | - add Requires: m4 |
---|
| 160 | * Thu Oct 30 2003 Roland McGrath <roland@redhat.com> 1.875-6 |
---|
| 161 | - add dependency on m4 (bug #108655) |
---|
| 162 | * Wed Sep 24 2003 Roland McGrath <roland@redhat.com> 1.875-5 |
---|
| 163 | - remove problematic __attribute__ use for label (bug #105034) |
---|
| 164 | |
---|
| 165 | * Sun Jul 6 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.875-3vl1 |
---|
| 166 | - based on Rawhide 1.875-3 |
---|
| 167 | - s/Copyright/License/ |
---|
| 168 | |
---|
| 169 | * Tue Dec 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.75-2vl1 |
---|
| 170 | - new upstream release |
---|
| 171 | - merged with rawhide release |
---|
| 172 | * Thu Nov 21 2002 Tim Waugh <twaugh@redhat.com> 1.75-2 |
---|
| 173 | - Run 'make check'. |
---|
| 174 | - Apply patch from bison-patches to fix bash compilation. |
---|
| 175 | * Thu Oct 17 2002 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
| 176 | - update to 1.75 |
---|
| 177 | |
---|
| 178 | * Fri May 31 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> |
---|
| 179 | - 1.35-2vl1: synced with rawhide |
---|
| 180 | |
---|
| 181 | * Thu Dec 28 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 182 | - 1.28-5vl1 |
---|
| 183 | - rebuilt with new %%{_mandir} definition |
---|
| 184 | - added Japanese summary and description |
---|
| 185 | |
---|
| 186 | * Sun Nov 19 2000 Satoshi MACHINO <machino@vinelinux.org> 1.28-5vl1 |
---|
| 187 | - build on Vine Linux with gcc-2.95.3 |
---|
| 188 | |
---|
| 189 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
| 190 | - automatic rebuild |
---|
| 191 | |
---|
| 192 | * Sun Jun 18 2000 Than Ngo <than@redhat.de> |
---|
| 193 | - rebuilt in the new build environment |
---|
| 194 | - FHS packaging |
---|
| 195 | |
---|
| 196 | * Sat May 27 2000 Ngo Than <than@redhat.de> |
---|
| 197 | - rebuild for 7.0 |
---|
| 198 | - put man pages and info files to correct place |
---|
| 199 | |
---|
| 200 | * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com> |
---|
| 201 | - rebuild to gzip man page. |
---|
| 202 | |
---|
| 203 | * Fri Jul 16 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 204 | - update to 1.28. |
---|
| 205 | |
---|
| 206 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 207 | - auto rebuild in the new build environment (release 3) |
---|
| 208 | |
---|
| 209 | * Mon Mar 8 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 210 | - configure with datadir=/usr/lib (#1386). |
---|
| 211 | |
---|
| 212 | * Mon Feb 22 1999 Jeff Johnson <jbj@redhat.com> |
---|
| 213 | - updated text in spec file. |
---|
| 214 | - update to 1.27 |
---|
| 215 | |
---|
| 216 | * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 217 | - build for glibc 2.1 |
---|
| 218 | |
---|
| 219 | * Fri Apr 24 1998 Prospector System <bugs@redhat.com> |
---|
| 220 | - translations modified for de, fr, tr |
---|
| 221 | |
---|
| 222 | * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com> |
---|
| 223 | - built for Manhattan |
---|
| 224 | - added build root |
---|
| 225 | |
---|
| 226 | * Wed Oct 15 1997 Donnie Barnes <djb@redhat.com> |
---|
| 227 | - various spec file cleanups |
---|
| 228 | |
---|
| 229 | * Mon Jun 02 1997 Erik Troan <ewt@redhat.com> |
---|
| 230 | - built against glibc |
---|
| 231 | |
---|