commit e99443e3e2fdd468f60e6961ffbc26c30b66e7f5 Author: Neil Hanlon Date: Thu Dec 29 23:43:02 2022 -0500 initial commit diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..019eea2 --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1,14 @@ +rpmbuild_src = $(shell rpmbuild --eval '%{_sourcedir}') +.PHONY: prepare srpm rpm + +prepare: + dnf -y install rpmdevtools rpm-build + cp *.patch $(rpmbuild_src) || true + spectool -g -R $(spec) + + +srpm: prepare + rpmbuild -bs --define "_srcrpmdir $(outdir)" $(spec) + +rpm: prepare + rpmbuild -bb --define "_rpmdir $(outdir)" $(spec) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f01921 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.tar.gz +rpmbuild diff --git a/blisp.spec b/blisp.spec new file mode 100644 index 0000000..1faa5f1 --- /dev/null +++ b/blisp.spec @@ -0,0 +1,35 @@ +Name: blisp +Version: 0.0.1 +Release: 0%{?dist} +Summary: Bouffalo Labs ISP tool/library for flashing Bouffalo RISC-V MCUs +URL: https://github.com/pine64/blisp +License: MIT + + +Source0: https://git.shrug.pw/api/packages/neil/generic/%{name}/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc cmake make + +%global _description %{expand: +Bouffalo Labs ISP tool & library +Open source tool and library for flashing Bouffalo RISC-V MCUs. +} + +%description %_description + +%prep +%autosetup +%cmake -DBLISP_BUILD_CLI=ON + +%build +%cmake_build + +%install +%cmake_install + +%files +%doc README.md + +%changelog +* Thu Dec 29 2022 Neil Hanlon - 0.0.1-0 +- initial specfile