From e99443e3e2fdd468f60e6961ffbc26c30b66e7f5 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Thu, 29 Dec 2022 23:43:02 -0500 Subject: [PATCH] initial commit --- .copr/Makefile | 14 ++++++++++++++ .gitignore | 2 ++ blisp.spec | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .copr/Makefile create mode 100644 .gitignore create mode 100644 blisp.spec 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