| |
@@ -1,24 +1,28 @@
|
| |
- # Generated by rust2rpm
|
| |
- %bcond_with check
|
| |
+ # Generated by rust2rpm 13
|
| |
+ %bcond_without check
|
| |
%global debug_package %{nil}
|
| |
|
| |
%global crate safe-transmute
|
| |
|
| |
Name: rust-%{crate}
|
| |
- Version: 0.10.1
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 0.11.0
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Safeguarded transmute() for Rust
|
| |
|
| |
+ # Upstream license specification: MIT
|
| |
License: MIT
|
| |
URL: https://crates.io/crates/safe-transmute
|
| |
Source: %{crates_source}
|
| |
|
| |
ExclusiveArch: %{rust_arches}
|
| |
+ %if %{__cargo_skip_build}
|
| |
+ BuildArch: noarch
|
| |
+ %endif
|
| |
|
| |
BuildRequires: rust-packaging
|
| |
|
| |
- %global _description \
|
| |
- A safeguarded transmute() for Rust.
|
| |
+ %global _description %{expand:
|
| |
+ Safeguarded transmute() for Rust.}
|
| |
|
| |
%description %{_description}
|
| |
|
| |
@@ -34,7 +38,7 @@
|
| |
%files devel
|
| |
%license LICENSE
|
| |
%doc README.md
|
| |
- %{cargo_registry}/%{crate}-%{version}/
|
| |
+ %{cargo_registry}/%{crate}-%{version_no_tilde}/
|
| |
|
| |
%package -n %{name}+default-devel
|
| |
Summary: %{summary}
|
| |
@@ -46,7 +50,19 @@
|
| |
which use "default" feature of "%{crate}" crate.
|
| |
|
| |
%files -n %{name}+default-devel
|
| |
- %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
| |
+ %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
| |
+
|
| |
+ %package -n %{name}+alloc-devel
|
| |
+ Summary: %{summary}
|
| |
+ BuildArch: noarch
|
| |
+
|
| |
+ %description -n %{name}+alloc-devel %{_description}
|
| |
+
|
| |
+ This package contains library source intended for building other packages
|
| |
+ which use "alloc" feature of "%{crate}" crate.
|
| |
+
|
| |
+ %files -n %{name}+alloc-devel
|
| |
+ %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
| |
|
| |
%package -n %{name}+std-devel
|
| |
Summary: %{summary}
|
| |
@@ -58,12 +74,15 @@
|
| |
which use "std" feature of "%{crate}" crate.
|
| |
|
| |
%files -n %{name}+std-devel
|
| |
- %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
|
| |
+ %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
| |
|
| |
%prep
|
| |
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
| |
%cargo_prep
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %cargo_generate_buildrequires
|
| |
+
|
| |
%build
|
| |
%cargo_build
|
| |
|
| |
@@ -76,6 +95,9 @@
|
| |
%endif
|
| |
|
| |
%changelog
|
| |
+ * Tue Sep 29 2020 Fabio Valentini <decathorpe@gmail.com> - 0.11.0-1
|
| |
+ - Update to version 0.11.0.
|
| |
+
|
| |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.1-4
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
|
| |
No package in fedora depends on this crate so the semver bump is fine.