Last active 1754125897

MS Edit specfile for Fedora

Revision c46f94efc2464960d4686cf64d8d8849cae2f939

msedit.spec Raw
1# Partially generated by rust2rpm 27
2%bcond check 1
3
4# prevent library files from being installed
5%global cargo_install_lib 0
6
7Name: msedit
8Version: 1.2.0
9Release: %autorelease
10Summary: A simple editor for simple needs.
11SourceLicense: MIT
12# MIT OR Apache-2.0: libc v0.2.172
13# MIT: edit v1.2.0
14License: MIT AND (MIT OR Apache-2.0)
15
16URL: https://github.com/microsoft/edit
17Source: https://github.com/microsoft/edit/archive/v%{version}/edit-%{version}.tar.gz
18Patch: edit-fix-metadata.diff
19
20BuildRequires: cargo-rpm-macros >= 26
21Requires: libicu-devel
22
23%global _description %{expand:
24%{summary}
25
26A text editor that pays homage to the classic MS-DOS Editor, but with a modern
27interface and input controls similar to VS Code. The goal is to provide an
28accessible editor that even users largely unfamiliar with terminals can easily
29use.
30}
31
32%description %{_description}
33
34%prep
35%autosetup -n edit-%{version} -p1
36%cargo_prep
37
38%generate_buildrequires
39%cargo_generate_buildrequires
40
41%build
42%cargo_build
43%{cargo_license_summary}
44%{cargo_license} > LICENSE.dependencies
45
46%install
47%cargo_install
48# de-conflict with vim
49mv %{buildroot}%{_bindir}/edit %{buildroot}%{_bindir}/%{name}
50
51%if %{with check}
52%check
53%cargo_test
54%endif
55
56%files
57%license LICENSE
58%license LICENSE.dependencies
59%doc CODE_OF_CONDUCT.md
60%doc CONTRIBUTING.md
61%doc README.md
62%doc SECURITY.md
63%{_bindir}/%{name}
64
65%changelog