Initial package (close RHBZ#2314104)

epel10
Benjamin A. Beasley 4 months ago
parent c92f857292
commit db044990c4

1
.gitignore vendored

@ -0,0 +1 @@
/munge_macro-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,71 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate munge_macro
Name: rust-munge_macro
Version: 0.4.1
Release: %autorelease
Summary: Macro for custom destructuring
License: MIT
URL: https://crates.io/crates/munge_macro
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
%{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.
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,10 @@
[requires]
build = [
"dos2unix",
]
[scripts.prep]
pre = [
"# The crate has a mixture of newline styles.",
"find . -type f | xargs -r -t dos2unix --keepdate",
]

@ -0,0 +1 @@
SHA512 (munge_macro-0.4.1.crate) = 6a9347e25df5589528abe42bf65768d4c6efefaccc45924193679762a8ddfc1b310ae8d458193587e1b4a84ccb28e92f1ab4d526c5853463dfbe319f41724e1c
Loading…
Cancel
Save