From 943898ca113203098c64c95a1447b1838caf3f71 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Apr 25 2022 20:10:39 +0000 Subject: Initial spec --- diff --git a/hare.spec b/hare.spec new file mode 100644 index 0000000..212c8f0 --- /dev/null +++ b/hare.spec @@ -0,0 +1,62 @@ +%global debug_package %{nil} +%global commit 85f25df58716735cd9da678128e310a33c6a010f +%global short_commit %(echo %{commit} | cut -c1-9) + +Name: hare +Version: 0 +Release: 1+%{short_commit}%{?dist} +Summary: The Hare programming language + +License: MPLv2.0 +URL: https://harelang.org/ +Source0: https://git.sr.ht/~sircmpwn/hare/archive/%{commit}.tar.gz + +BuildRequires: harec +BuildRequires: qbe +BuildRequires: sed +BuildRequires: make +BuildRequires: scdoc + +%description +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. + +%package doc +Summary: reference documentation for the hare standard library + +%description doc +reference documentation for the hare standard library + + +%prep +%autosetup -n hare-%{commit} + +%build +sed 's|PREFIX = /usr|PREFIX = %{_prefix}|g' config.example.mk > config.mk +%make_build + +%install +%make_install + +%check +%make_build check + +%files +%license COPYING +%{_bindir}/hare +%{_usrsrc}/hare +%{_mandir}/man1/hare.1.* + +%files doc +%{_bindir}/haredoc +%{_mandir}/man1/haredoc.1.* + +%changelog +* Mon Apr 25 2022 Jan Drögehoff - 0-1+85f25df58 +- Initial spec + + diff --git a/harec.spec b/harec.spec new file mode 100644 index 0000000..0ba135d --- /dev/null +++ b/harec.spec @@ -0,0 +1,55 @@ +%global commit c1caaf00bea2415724b969633cca2e3b2b51a4e6 +%global short_commit %(echo %{commit} | cut -c1-9) + +Name: harec +Version: 0 +Release: 1+%{short_commit}%{?dist} +Summary: hare bootstrap compiler + +License: GPLv3 +URL: https://harelang.org/ +Source0: https://git.sr.ht/~sircmpwn/harec/archive/%{commit}.tar.gz + +BuildRequires: gcc +BuildRequires: qbe +BuildRequires: make + +%description +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. + +%prep +%autosetup -n harec-%{commit} + + +%build +%{?set_build_flags} +./configure --bindir="%{_bindir}" \ + --libdir="%{_libdir}" \ + --mandir="%{_mandir}" \ + --prefix="%{_prefix}" \ + --sharedir="%{_datadir}" \ + --sysconfdir="%{_sysconfdir}" +%make_build + + +%install +%make_install + + +%check + + +%files +%license COPYING +%{_bindir}/harec + +%changelog +* Mon Apr 25 2022 Jan Drögehoff - 0-1+c1caaf00b +- Initial spec + +