File rs-tftpd.spec of Package rs-tftpd

#
# spec file for package rs-tftpd
#
# 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:           rs-tftpd
Version:        0.5.0
Release:        0
Summary:        Multithreaded TFTP server
License:        MIT
Group:          Productivity/Networking/Ftp/Clients
URL:            https://github.com/altugbakan/rs-tftpd
#Git-Clone:     https://github.com/altugbakan/rs-tftpd.git
Source:         %{name}-%{version}.tar.gz
BuildRequires:  cargo-packaging

%description
Multithreaded TFTP Server and Client implemented in Rust.

%prep
%autosetup

%build
%{cargo_build} --features client

%install
%{cargo_install} --features client

%check
%{cargo_test}

%files
%license LICENSE.md
%doc README.md SECURITY.md
%{_bindir}/tftpc
%{_bindir}/tftpd

%changelog
openSUSE Build Service is sponsored by