File bolt.spec of Package bolt

# spec file for package bolt
# Copyright (c) 2020 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

%global _hardened_build 1
Name:           bolt
Version:        0.9
Release:        0
Summary:        Thunderbolt 3 device manager
License:        GPL-2.0-or-later
Group:          System/Daemons
BuildRequires:  glib2-devel
BuildRequires:  glibc-devel >= 2.27
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  polkit-devel
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(udev)

Userspace system daemon to enable security levels for Thunderbolt 3
on GNU/Linux.

%package        tools
Summary:        Bolt Tools
Group:          System/Management
Requires:       %{name} = %{version}-%{release}

%description    tools
The %{name}-tools package contains optional tools from the Bolt
software framework.

%setup -q -n bolt-%{version}




mkdir -p %{buildroot}/%{_sbindir}
ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rcbolt

# move polkit rules to doc folder: the wheel group does not have special
# meaning on SUSE based distros
mkdir -p %{buildroot}/%{_docdir}/bolt/
mv %{buildroot}/usr/share/polkit-1/rules.d/org.freedesktop.bolt.rules %{buildroot}/%{_docdir}/bolt/

%service_del_preun bolt.service

%service_add_post bolt.service

%service_del_postun bolt.service

%service_add_pre bolt.service

%license COPYING

%files tools

openSUSE Build Service is sponsored by