File msedit.spec of Package msedit
#
# spec file for package .spec
#
# Copyright (c) 2025 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: msedit.spec
Version: 1.2.0
Release: 1%{?dist}
Summary: Microsoft terminal-based text editor
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: MIT
URL: https://github.com/microsoft/edit
Source: %{name}-%{version}.tar.gz
BuildRequires: rust cargo
%description
Terminal-based text editor by Microsoft.
%prep
%autosetup -p1
%build
export RUSTC_BOOTSTRAP=1
cargo build --offline --config .cargo/release.toml --release
%install
mkdir -p %{buildroot}/usr/bin
install -m 0755 target/release/msedit %{buildroot}/usr/bin/msedit
%check
%make_build check
%files
/usr/bin/msedit
%license COPYING
%doc ChangeLog README
%changelog
* Mon Jul 07 2025 Yan Horobtsov <yacha@orangefox.tech> - 1.2.0-1
- Initial packaging