Update to version 0.2.2; Fixes RHBZ#2125983

epel9 imports/e9/rust-alloc-stdlib-0.2.2-1.el9
Fabio Valentini 2 years ago
parent 3ac1d4f991
commit 508f30a9cf
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -1 +1,2 @@
/alloc-stdlib-0.2.1.crate /alloc-stdlib-0.2.1.crate
/alloc-stdlib-0.2.2.crate

@ -0,0 +1,12 @@
Copyright (c) 2016 Dropbox, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

@ -1,3 +0,0 @@
# rust-alloc-stdlib
The rust-alloc-stdlib package

@ -0,0 +1,12 @@
--- alloc-stdlib-0.2.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ alloc-stdlib-0.2.2/Cargo.toml 2023-04-14T16:29:59.774576+00:00
@@ -28,9 +28,6 @@
license = "BSD-3-Clause"
repository = "https://github.com/dropbox/rust-alloc-no-stdlib"
-[[bin]]
-name = "example"
-
[dependencies.alloc-no-stdlib]
version = "2.0.4"

@ -1,32 +1,27 @@
# Generated by rust2rpm 12 # Generated by rust2rpm 24
%bcond_without check %bcond_without check
%global debug_package %{nil} %global debug_package %{nil}
# The binary is useless
%global __cargo_is_bin() false
%global crate alloc-stdlib %global crate alloc-stdlib
Name: rust-%{crate} Name: rust-alloc-stdlib
Version: 0.2.1 Version: 0.2.2
Release: %autorelease Release: %autorelease
Summary: Dynamic allocator example that may be used with the stdlib Summary: Dynamic allocator example that may be used with the stdlib
# Upstream license specification: BSD-3-Clause # https://github.com/dropbox/rust-alloc-no-stdlib/issues/9
# * https://github.com/dropbox/rust-alloc-no-stdlib/issues/9 License: BSD-3-Clause
License: BSD
URL: https://crates.io/crates/alloc-stdlib URL: https://crates.io/crates/alloc-stdlib
Source: %{crates_source} Source0: %{crates_source}
Source1: https://github.com/dropbox/rust-alloc-no-stdlib/raw/3b341cc/LICENSE
ExclusiveArch: %{rust_arches} # Manually created patch for downstream crate metadata changes
%if %{__cargo_skip_build} # * prevent example executable from being installed and shipped
BuildArch: noarch Patch: alloc-stdlib-fix-metadata.diff
%endif
BuildRequires: rust-packaging BuildRequires: rust-packaging >= 21
%global _description %{expand: %global _description %{expand:
Dynamic allocator example that may be used with the stdlib.} A dynamic allocator example that may be used with the stdlib.}
%description %{_description} %description %{_description}
@ -36,12 +31,13 @@ BuildArch: noarch
%description devel %{_description} %description devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "%{crate}" crate. use the "%{crate}" crate.
%files devel %files devel
%doc README.md %license %{crate_instdir}/LICENSE
%{cargo_registry}/%{crate}-%{version_no_tilde}/ %doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel %package -n %{name}+default-devel
Summary: %{summary} Summary: %{summary}
@ -49,11 +45,11 @@ BuildArch: noarch
%description -n %{name}+default-devel %{_description} %description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "default" feature of "%{crate}" crate. use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel %files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unsafe-devel %package -n %{name}+unsafe-devel
Summary: %{summary} Summary: %{summary}
@ -61,17 +57,18 @@ BuildArch: noarch
%description -n %{name}+unsafe-devel %{_description} %description -n %{name}+unsafe-devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages which
which use "unsafe" feature of "%{crate}" crate. use the "unsafe" feature of the "%{crate}" crate.
%files -n %{name}+unsafe-devel %files -n %{name}+unsafe-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
# https://github.com/dropbox/rust-alloc-no-stdlib/pull/8 # https://github.com/dropbox/rust-alloc-no-stdlib/pull/8
find -type f -name '*.rs' -executable -exec chmod -x '{}' + find -type f -name '*.rs' -executable -exec chmod -x '{}' +
%cargo_prep %cargo_prep
cp -pav %{SOURCE1} .
%generate_buildrequires %generate_buildrequires
%cargo_generate_buildrequires %cargo_generate_buildrequires

@ -1 +1 @@
SHA512 (alloc-stdlib-0.2.1.crate) = 282f1d34d40b994dfb008abba45c99c1bb7dd30a1bd7e168f4fda7297bec5edbfe28358eb3447d89d02cfada0a6035ef69388c7c533b00c31dbd4a1e873a483a SHA512 (alloc-stdlib-0.2.2.crate) = 9c4169052ad460af2be6f2a128056661b2f26da0122877f13fcd4f4f3e2e9537783cb2b2bec47af43569629639aa8ad507ab010833982e5d942f5b26cfd46c14

Loading…
Cancel
Save