[packages/omnia-mcutool] new
atler
atler at pld-linux.org
Fri Oct 17 23:55:55 CEST 2025
commit 92826cd0021c79ec651969b6ad655171aa5bfa5e
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Oct 17 23:55:16 2025 +0200
new
omnia-mcutool.spec | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
---
diff --git a/omnia-mcutool.spec b/omnia-mcutool.spec
new file mode 100644
index 0000000..a7eb3fc
--- /dev/null
+++ b/omnia-mcutool.spec
@@ -0,0 +1,39 @@
+Summary: Utility for Turris Omnia's MCU
+Name: omnia-mcutool
+Version: 0.2
+Release: 1
+License: GPL v2+
+Group: Applications/System
+Source0: https://gitlab.nic.cz/turris/omnia-mcutool/-/archive/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: b96e31f884b9e22eaa6cea040a618eb2
+URL: https://gitlab.nic.cz/turris/omnia-mcutool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Utility for flashing Turris Omnia's MCU firmware and otherwise
+interact with the MCU on the board.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}" \
+ CPPFLAGS="%{rpmcppflags} -DMCUTOOL_VERSION='\"%{version}\"'" \
+ LDFLAGS="%{rpmldflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sbindir}
+
+cp -p omnia-mcutool $RPM_BUILD_ROOT%{_sbindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_sbindir}/omnia-mcutool
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/omnia-mcutool.git/commitdiff/92826cd0021c79ec651969b6ad655171aa5bfa5e
More information about the pld-cvs-commit
mailing list