File tqftpserv.spec of Package tqftpserv

#
# spec file for package tqftpserv
#
# Copyright (c) 2022 SUSE LLC
#
# 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:           tqftpserv
Version:        0.1
Release:        0
Summary:        Trivial File Transfer Protocol server over AF_QIPCRTR
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        BSD-3-Clause
URL:            https://github.com/andersson/tqftpserv
Source:         %{name}-%{version}.tar.xz
BuildRequires:  qrtr-devel
BuildRequires:  libqrtr1

%description
Trivial File Transfer Protocol server over AF_QIPCRTR

%prep
%setup -q

%build
%make_build prefix=%{_prefix} bindir=%{_bindir} servicedir=%{_unitdir}

%install
%make_install prefix=%{_prefix} bindir=%{_bindir} servicedir=%{_unitdir}

%pre
%service_add_pre %{name}.service

%post
%service_add_post %{name}.service

%preun
%service_del_preun %{name}.service

%postun
%service_del_postun %{name}.service

%files
%{_bindir}/*
%{_unitdir}/*

%changelog

openSUSE Build Service is sponsored by