File hare-lang.spec of Package hare-lang
#
# spec file for package hare-lang
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define upstream_name hare
Name: hare-lang
Version: 1650792501~cb9b5872
Release: 0
Summary: Hare systems programming language
License: MPL-2.0 and GPL-3.0-only
URL: https://harelang.org/
Source0: %{name}-%{version}.tar.xz
Source1: config.mk
BuildRequires: fdupes
BuildRequires: harec
BuildRequires: scdoc
ExclusiveArch: x86_64
%package -n %{upstream_name}-std
Summary: Hare standard library
License: MPL-2.0
Recommends: %{upstream_name}-build = %{version}
%package -n %{upstream_name}-build
Summary: Hare build driver and doc engine
License: GPL-3.0
Requires: harec
Requires: %{upstream_name}-std = %{version}
%global _description %{expand:
Hare is a systems programming language designed to be simple,
stable, and robust. Hare uses a static type system, manual memory
management, and a minimal runtime. It is well-suited to writing
operating systems, system tools, compilers, networking software, and
other low-level, high performance tasks. }
%description %{_description}
%description -n %{upstream_name}-std %{_description}
%description -n %{upstream_name}-build %{_description}
%prep
%autosetup -p1
cp %{SOURCE1} .
%build
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
%make_install
%fdupes %{buildroot}%{_usrsrc}/%{upstream_name}
%files -n %{upstream_name}-std
%license COPYING
%doc README
%{_usrsrc}/%{upstream_name}
%files -n %{upstream_name}-build
%license cmd/COPYING
%doc README
%{_bindir}/%{upstream_name}
%{_bindir}/%{upstream_name}doc
%{_mandir}/*/%{upstream_name}*
%changelog