- Use %_smp_mflags - Clean up spec - Copyright: -> License: - rebuilt - rebuilt - rebuilt - rebuilt - Rebuild - automated rebuild - automated rebuild - automated rebuild - Bump release + rebuild. - security patch for tmpfile creation from Olaf Kirch <okir@lst.de> - Update to the version in FreeBSD CVS - it's actively maintained, unlike the 1993 4BSD version we used to have - automatic rebuild OBS-URL: https://build.opensuse.org/package/show/server:monitoring/byacc?expand=0&rev=1
44 lines
1.1 KiB
RPMSpec
44 lines
1.1 KiB
RPMSpec
# norootforbuild
|
|
|
|
Name: byacc
|
|
Version: 1.9
|
|
Release: 1.0
|
|
License: Public Domain
|
|
Group: Development/Languages/C and C++
|
|
# The source is taken from FreeBSD's CVS as of Thu Sep 28 2000
|
|
Source: byacc-1.9.tar.bz2
|
|
Patch0: bsdyacc-linux.patch
|
|
Patch1: byacc-1.9-security.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
#Conflicts: bison
|
|
Summary: A Public Domain Yacc Parser Generator
|
|
|
|
%description
|
|
Byacc (Berkeley Yacc) is a public domain LALR parser generator which
|
|
is used by many programs during their build process.
|
|
|
|
If you are going to do development on your system, you will want to install
|
|
this package.
|
|
|
|
%prep
|
|
%setup -q -n yacc
|
|
%patch0 -p1 -b .lnx
|
|
%patch1 -p1 -b .security
|
|
|
|
%build
|
|
%__make CFLAGS="%{optflags}" LINKER=%{__cc} %{?_smp_mflags}
|
|
|
|
%install
|
|
install -Dm 0755 yacc %{buildroot}/usr/bin/byacc
|
|
install -Dm 0644 yacc.1 %{buildroot}%{_mandir}/man1/byacc.1
|
|
|
|
%clean
|
|
%__rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ACKNOWLEDGEMENTS NEW_FEATURES NOTES README
|
|
%{_bindir}/byacc
|
|
%{_mandir}/man1/byacc.1*
|
|
|