Initial package (close RHBZ#2314105)

epel10 imports/epel10/rust-munge-0.4.1-1.el10
Benjamin A. Beasley 4 months ago
parent 56673c80ef
commit 56d8dc3e5d

1
.gitignore vendored

@ -0,0 +1 @@
/munge-0.4.1.crate

@ -0,0 +1,4 @@
# Feature metapackages are not supposed to have documentation!
addFilter(r"\+[-_\w]+-devel.noarch: W: no-documentation")
# Not a real spelling error
addFilter(r"spelling-error \('[Dd]estructuring',")

@ -0,0 +1,73 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate munge
Name: rust-munge
Version: 0.4.1
Release: %autorelease
Summary: Macro for custom destructuring
License: MIT
URL: https://crates.io/crates/munge
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: dos2unix
%global _description %{expand:
Macro for custom destructuring.}
%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
%doc %{crate_instdir}/example.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
# The crate has a mixture of newline styles.
# https://github.com/djkoloski/munge/pull/5
find . -type f | xargs -r -t dos2unix --keepdate
%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,11 @@
[requires]
build = [
"dos2unix",
]
[scripts.prep]
pre = [
"# The crate has a mixture of newline styles.",
"# https://github.com/djkoloski/munge/pull/5",
"find . -type f | xargs -r -t dos2unix --keepdate",
]

@ -0,0 +1 @@
SHA512 (munge-0.4.1.crate) = 861f95d05d14812f553f942e2ba4cd1231d5671212d658c3fa7f7eed3515b82ddf4e2501028680af81576fb2bbc1831e0f8a63fecfa9c4624669c297e2536f04
Loading…
Cancel
Save