Initial package (close RHBZ#2310825)

epel10
Benjamin A. Beasley 5 months ago
parent ac456cf601
commit 58d444f4e3

1
.gitignore vendored

@ -0,0 +1 @@
/zerofrom-derive-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,70 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate zerofrom-derive
Name: rust-zerofrom-derive
Version: 0.1.4
Release: %autorelease
Summary: Custom derive for the zerofrom crate
License: Unicode-3.0
URL: https://crates.io/crates/zerofrom-derive
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Custom derive for the zerofrom crate.}
%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
%prep
%autosetup -n %{crate}-%{version} -p1
# Avoid a circular dependency on the zerofrom crate
rm examples/zf_derive.rs
%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,5 @@
[scripts.prep]
pre = [
"# Avoid a circular dependency on the zerofrom crate",
"rm examples/zf_derive.rs",
]

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