File tnfsd.spec of Package tnfsd
#
# spec file for package tnfsd
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: tnfsd
Version: 0~git20250206
Release: 0
Summary: Trivial Network File System for 8 bit systems
License: MIT
URL: https://github.com/spectrumero/tnfsd
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc
%description
Trivial Network File System for 8 bit systems.
%prep
%autosetup -p1
rm bin/*
%build
%make_build -C src OS=LINUX
# TODO
# handle .service file
# service file ./tnfsd.service
%install
install -D -m0755 bin/tnfsd %{buildroot}%{_sbindir}/tnfsd
%files
%license LICENSE.md
%doc README.md tnfs-protocol.md
%{_sbindir}/tnfsd
%changelog