mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit 4567f014e6)
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "rust-wild-linker.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
# Generated by rust2rpm 27
|
||||
%bcond check 0
|
||||
|
||||
%global crate wild-linker
|
||||
|
||||
Name: rust-wild-linker
|
||||
Version: 0.5.0
|
||||
Release: 1%?dist
|
||||
Summary: Very fast linker for Linux
|
||||
|
||||
License: MIT OR Apache-2.0
|
||||
URL: https://crates.io/crates/wild-linker
|
||||
Source: %{crates_source}
|
||||
Source1: https://github.com/davidlattimore/wild/archive/refs/tags/%version.tar.gz
|
||||
|
||||
BuildRequires: cargo-rpm-macros >= 24
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
%global _description %{expand:
|
||||
A very fast linker for Linux.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
License: (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (CC0-1.0 OR Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (CC0-1.0 OR MIT-0 OR Apache-2.0) AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR NCSA) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND Zlib AND (Zlib OR Apache-2.0 OR MIT)
|
||||
# LICENSE.dependencies contains a full license breakdown
|
||||
Provides: wild = %evr
|
||||
|
||||
%description -n %{crate} %{_description}
|
||||
|
||||
%files -n %{crate}
|
||||
%license LICENSE-APACHE LICENSE-MIT
|
||||
%license LICENSE.dependencies
|
||||
%doc README.md
|
||||
%{_bindir}/wild
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep_online
|
||||
tar xf %{S:1}
|
||||
cp wild-%version/LICENSE-* .
|
||||
|
||||
%build
|
||||
%{cargo_license_summary_online}
|
||||
%{cargo_license_online} > LICENSE.dependencies
|
||||
|
||||
%install
|
||||
%cargo_install
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
%cargo_test
|
||||
%endif
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(crates("wild-linker"));
|
||||
Reference in New Issue
Block a user