SPECS: Add rust-platforms-3.

Signed-off-by: misaka00251 <liuxin@iscas.ac.cn>
This commit is contained in:
2026-07-21 16:46:14 +08:00
committed by Z572
parent 0def1c9ee6
commit d03ff305d6
2 changed files with 105 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2018"
name = "platforms"
version = "3.12.0"
authors = [
"Tony Arcieri <bascule@gmail.com>",
'Sergey "Shnatsel" Davidoff <shnatsel@gmail.com>',
]
build = false
exclude = [
"README.header.md",
"platform-support.md",
"regenerate-platforms-crate.sh",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Rust platform registry with information about valid Rust platforms (target
triple, target_arch, target_os) sourced from the Rust compiler.
"""
homepage = "https://rustsec.org"
readme = "README.md"
keywords = [
"architectures",
"cpu",
"os",
"targets",
"triples",
]
categories = [
"development-tools",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/rustsec/rustsec"
resolver = "2"
[features]
default = ["std"]
std = []
[lib]
name = "platforms"
path = "src/lib.rs"
[dependencies.serde]
version = "1"
optional = true
@@ -0,0 +1,43 @@
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
#
# SPDX-License-Identifier: MulanPSL-2.0
%global crate_name platforms
%global full_version 3.12.0
%global pkgname platforms-3
Name: rust-platforms-3
Version: 3.12.0
Release: %autorelease
Summary: Rust crate "platforms"
License: Apache-2.0 OR MIT
URL: https://rustsec.org
#!RemoteAsset: sha256:9245c6e7c5a6bcdd7977fdf6d1e1c67f4cc2d0d58c041df0ea5940953033e6ca
Source: https://static.crates.io/crates/%{crate_name}/%{full_version}/download#/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: rustcrates
BuildRequires: rust-rpm-macros
Provides: crate(%{pkgname}) = %{version}
Provides: crate(%{pkgname}/default) = %{version}
Provides: crate(%{pkgname}/std) = %{version}
%description
Source code for takopackized Rust crate "platforms"
%package -n %{name}+serde
Summary: Rust platform registry with information about valid Rust platforms (target triple, target_arch, target_os) sourced from the Rust compiler - feature "serde"
Requires: crate(%{pkgname}) = %{version}
Requires: crate(serde-1/default) >= 1.0.0
Provides: crate(%{pkgname}/serde) = %{version}
%description -n %{name}+serde
This metapackage enables feature "serde" for the Rust platforms crate, by pulling in any additional dependencies needed by that feature.
%files
%{_datadir}/cargo/registry/%{crate_name}-%{version}/
%changelog
%autochangelog