File migrate-wicked-git.spec of Package migrate-wicked-git

#
# spec file for package dora
#
# Copyright (c) 2023 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/
#

%bcond_without check

Name:           migrate-wicked-git
Version:        0.1.git.1732802609.a2140d8
Release:        0
Summary:        Migration tool from wicked to NetworkManager
License:        GPL-2.0-or-later
URL:            https://github.com/jcronenberg/agama
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  cargo-packaging
BuildRequires:  pkgconfig(openssl)
BuildRequires:  clang-devel
BuildRequires:  pam-devel
BuildRequires:  git
ExclusiveArch:  %{rust_arches}

%description
Migration tool from wicked to NetworkManager

Generated continuously from git source

%prep
%autosetup -a1

%build
%{cargo_build}

%install
install -Dm755 "target/release/migrate-wicked" "%{buildroot}%{_bindir}/migrate-wicked"
 
%if %{with check}
%check
%{cargo_test}
%endif

%files
%doc README.md
%license LICENSE
%{_bindir}/migrate-wicked

%changelog

openSUSE Build Service is sponsored by