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