-
Notifications
You must be signed in to change notification settings - Fork 6
/
rust-pretty-git-prompt.spec
64 lines (49 loc) · 1.35 KB
/
rust-pretty-git-prompt.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Generated by rust2rpm
%bcond_without check
%global crate pretty-git-prompt
Name: rust-%{crate}
Version: 0.2.2
Release: %autorelease
Summary: Your current git repository information inside a beautiful shell prompt
License: MIT
URL: https://crates.io/crates/pretty-git-prompt
Source0: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 23
%description
%{summary}.
%package -n %{crate}
Summary: %{summary}
# MIT
# MIT AND GPL-2.0-only WITH GCC-exception-2.0 AND BSD-3-Clause
# MIT OR Apache-2.0
# MIT OR Apache-2.0 OR Zlib
# Zlib OR Apache-2.0 OR MIT
License: MIT AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib)
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate}
%{summary}.
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%cargo_license_summary
%{cargo_license} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
# https://github.com/tomastomecek/pretty-git-prompt/issues/35
%cargo_test || :
%endif
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%doc files
%{_bindir}/pretty-git-prompt
%changelog
%autochangelog