File rmtfs.spec of Package rmtfs

#
# spec file for package qrtr
#
# 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:           rmtfs
Version:        0.2
Release:        0
Summary:        Userspace reference for modem/rmtfs in the Linux kernel
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License:        BSD-3-Clause
URL:            https://github.com/andersson/rmtfs
Source0:        %{name}-%{version}.tar.xz
Source1:        65-rmtfs.rules
BuildRequires:  libqrtr1
BuildRequires:  qrtr-devel
BuildRequires:  pkgconfig(libudev)
%description
Userspace reference for modem/rmtfs in the Linux kernel

%prep
%setup -q

%build
%make_build prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} includedir=%{_includedir} servicedir=%{_unitdir}

%install
%make_install prefix=%{_prefix} bindir=%{_bindir} libdir=%{_libdir} includedir=%{_includedir} servicedir=%{_unitdir}
%{__install} -Dm0644 -t %{buildroot}%{_udevrulesdir} %{SOURCE1}

%pre
%service_add_pre rmtfs.service

%post
%service_add_post rmtfs.service

%preun
%service_del_preun rmtfs.service

%postun
%service_del_postun rmtfs.service

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


%changelog

openSUSE Build Service is sponsored by