Name: smallerc
Version: 0.0.git.319.285f866e
Release: 1%{?dist}
Summary: simple and small single-pass C compiler

Group: Development/Languages

License: BSD
URL: https://github.com/alexfru/SmallerC
VCS: git+https://github.com/stsp/SmallerC.git#285f866e1f1b8d015062d4e2400c68d6655bc481:
Source0: SmallerC-285f866e.tar.gz

BuildRequires: gcc
BuildRequires: make
BuildRequires: nasm

Requires:   nasm

%description
Smaller C is a simple and small single-pass C compiler,
currently supporting most of the C language common between C89/ANSI C
and C99 (minus some C89 and plus some C99 features).

%prep
%setup -T -b 0 -q -n SmallerC

%build
make prefix=%{_prefix}

%check
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
%define debug_package %{nil}
%define __strip /bin/true

%install
make DESTDIR=%{buildroot} prefix=%{_prefix} install

%files
%defattr(-,root,root)
%{_bindir}/*
%{_prefix}/smlrc

%changelog