Initial package (close RHBZ#2310860)

epel10
Benjamin A. Beasley 5 months ago
parent 0f5683a216
commit af4f136e68

1
.gitignore vendored

@ -0,0 +1 @@
/zerofrom-0.1.4.crate

@ -0,0 +1,2 @@
# Feature metapackages are not supposed to have documentation!
addFilter(r"\+[-_\w]+-devel.noarch: W: no-documentation")

@ -0,0 +1,92 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate zerofrom
Name: rust-zerofrom
Version: 0.1.4
Release: %autorelease
Summary: ZeroFrom trait for constructing
License: Unicode-3.0
URL: https://crates.io/crates/zerofrom
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
ZeroFrom trait for constructing.}
%description %{_description}
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%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 the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/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 the "alloc" feature of the "%{crate}" crate.
%files -n %{name}+alloc-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+derive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+derive-devel %{_description}
This package contains library source intended for building other packages which
use the "derive" feature of the "%{crate}" crate.
%files -n %{name}+derive-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog

@ -0,0 +1,6 @@
[package]
# The rust2rpm-generated summary would be "Trait for constructing" because
# rust2rpm attempts to remove the crate name from the beginning of the summary.
# In this case, the result doesnt make much sense, so we restore the original
# summary text.
summary = "ZeroFrom trait for constructing"

@ -0,0 +1 @@
SHA512 (zerofrom-0.1.4.crate) = 11f37a67108185a8090cda71338b02492fabd15e6cfe018833a165cd869ed65338e12d7c5680ffb0b763fc3acbdff6fe4df30457653dfe4d79ecc864b69d780f
Loading…
Cancel
Save