File hare.spec of Package hare

# Public Domain

%global gitlongcommit 06797ee67a09f341f4bc6991d2717c00614838bf
%global gitcommit %(c=%{gitlongcommit}; echo ${c:0:8})

Name:       hare
Summary:    Hare systems programming language
License:    MPL-2.0

Version:    0+git%{gitcommit}
Release:    0%{?dist}

URL:        https://git.sr.ht/~sircmpwn/hare
Source0:    %{url}/archive/%{gitlongcommit}.tar.gz
Patch0:     00-config.patch

BuildRequires:  make
BuildRequires:  qbe harec scdoc

Requires: qbe
Requires: binutils

# qbe
ExclusiveArch:  x86_64 aarch64

%description
Hare is a systems programming language.

%prep
%setup -q -n %{name}-%{gitlongcommit}
%patch 0

%build
cp config.example.mk config.mk
%make_build

%check
make check

%install
%make_install

%files
%license COPYING
%doc README.md
%doc /usr/share/man/man1/hare.1.gz
%doc /usr/share/man/man1/haredoc.1.gz
%{_bindir}/hare
%{_bindir}/haredoc
%dir /usr/src/hare
%dir /usr/src/hare/stdlib
/usr/src/hare/stdlib/*
openSUSE Build Service is sponsored by