-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add: sheldon * pkgconfig(openssl) Signed-off-by: madomado <[email protected]> --------- Signed-off-by: madomado <[email protected]> (cherry picked from commit daee1f6) Co-authored-by: madomado <[email protected]>
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "sheldon.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Generated by rust2rpm 27 | ||
%bcond check 0 | ||
|
||
%global crate sheldon | ||
|
||
Name: rust-sheldon | ||
Version: 0.8.0 | ||
Release: 1%?dist | ||
Summary: Fast, configurable, shell plugin manager | ||
|
||
License: MIT OR Apache-2.0 | ||
URL: https://sheldon.cli.rs | ||
Source: %{crates_source} | ||
|
||
BuildRequires: cargo-rpm-macros >= 24 | ||
BuildRequires: anda-srpm-macros | ||
BuildRequires: pkgconfig(openssl) | ||
|
||
%global _description %{expand: | ||
Fast, configurable, shell plugin manager.} | ||
|
||
%description %{_description} | ||
|
||
%package -n %{crate} | ||
Summary: %{summary} | ||
License: (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) | ||
|
||
%description -n %{crate} %{_description} | ||
|
||
%files -n %{crate} | ||
%license LICENSE-APACHE | ||
%license LICENSE-MIT | ||
%license LICENSE.dependencies | ||
%doc README.md | ||
%{_bindir}/sheldon | ||
|
||
%prep | ||
%autosetup -n %{crate}-%{version} -p1 | ||
%cargo_prep_online | ||
|
||
%build | ||
%{cargo_license_summary_online} | ||
%{cargo_license_online} > LICENSE.dependencies | ||
|
||
%install | ||
%cargo_install | ||
|
||
%if %{with check} | ||
%check | ||
%cargo_test | ||
%endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rpm.version(crates("sheldon")); |