diff options
author | TizenOpenSource <tizenopensrc@samsung.com> | 2023-01-10 13:22:05 +0900 |
---|---|---|
committer | TizenOpenSource <tizenopensrc@samsung.com> | 2023-01-10 13:22:05 +0900 |
commit | 2b3859be1e692288c061230f4f3200f121fc6ed8 (patch) | |
tree | a8db487ee25e94e5864120e5fde21a826009953c | |
parent | bf67510cc94a6c905a4caf94f952ef20014b0810 (diff) | |
download | byacc-tizen_8.0.tar.gz byacc-tizen_8.0.tar.bz2 byacc-tizen_8.0.zip |
Bump to 20221229tizen_8.0_m2_releaseaccepted/tizen/unified/20230120.182024accepted/tizen/8.0/unified/20231005.094654tizen_8.0sandbox/byacc_20221229sandbox/backup/byacc_20221229_20231207accepted/tizen_8.0_unified
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
-rw-r--r-- | packaging/byacc.manifest | 5 | ||||
-rw-r--r-- | packaging/byacc.spec | 40 |
2 files changed, 45 insertions, 0 deletions
diff --git a/packaging/byacc.manifest b/packaging/byacc.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/byacc.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/byacc.spec b/packaging/byacc.spec new file mode 100644 index 0000000..de779c9 --- /dev/null +++ b/packaging/byacc.spec @@ -0,0 +1,40 @@ +Name: byacc +Version: 20221229 +Release: 1 +Summary: LALR(1) parser generator +Group: Development/Languages/C and C++ +License: SUSE-Public-Domain +Url: http://invisible-island.net/byacc/byacc.html +Source: %{name}-%{version}.tar.gz +Source1001: byacc.manifest + +%description +Berkeley Yacc is a LALR(1) parser generator. It has been made as compatible as +possible with AT&T Yacc and it accepts any input specification that conforms to +the AT&T Yacc documentation. In contrast to bison, it is written to avoid +dependencies upon a particular compiler. + +%prep +%setup +cp %{SOURCE1001} . + +%build +export CFLAGS+=" -fPIC" +export LDFLAGS+=" -pie" +# without --with-warnings several functions will not be marked with gcc's +# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall +%configure --with-warnings +make %{?_smp_mflags} + +%install +%make_install +mv %{buildroot}%{_bindir}/yacc %{buildroot}%{_bindir}/byacc + +%remove_docs + +%files +%manifest %{name}.manifest +%defattr(-,root,root,-) +%{_bindir}/byacc + +%changelog |