Initial import (#1927248)

epel10
Jan Staněk 4 years ago
parent 5ed5cbbd84
commit dabfee9a44
No known key found for this signature in database
GPG Key ID: 2972F2037B243B6D

1
.gitignore vendored

@ -0,0 +1 @@
/scratch-1.0.0.crate

@ -0,0 +1,83 @@
# Generated by rust2rpm 16
%bcond_without check
%global debug_package %{nil}
%global crate scratch
Name: rust-%{crate}
Version: 1.0.0
Release: 3%{?dist}
Summary: Shared compile-time directory
# Upstream license specification: MIT OR Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/scratch
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Compile-time temporary directory shared by multiple crates and erased by `cargo
clean`.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%doc README.md
%license LICENSE-APACHE
%license LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages
which use "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires -a
%build
%cargo_build -a
%install
%cargo_install -a
%if %{with check}
%check
%cargo_test -a
%endif
%changelog
* Mon Feb 15 2021 Jan Staněk <jstanek@redhat.com> - 1.0.0-3
- Shorten summary field
* Wed Feb 10 2021 Jan Staněk <jstanek@redhat.com> - 1.0.0-2
- Mark license files
* Mon Feb 01 13:02:33 CET 2021 Jan Staněk <jstanek@redhat.com> - 1.0.0-1
- Initial package

@ -0,0 +1 @@
SHA512 (scratch-1.0.0.crate) = e2cdacb1af24b765ebd87ec8e2d87cacbd4f7ea154d90010735cfbaf166f2f6ecd0f42b8b5a7bc2db518cf7e2f304a2a6d5cc67da0e1d6f08d6dfd427646a747
Loading…
Cancel
Save