Initial package (close RHBZ#2317856)

epel10
Benjamin A. Beasley 4 months ago
parent 0efaff07c8
commit 71f5203b43

1
.gitignore vendored

@ -0,0 +1 @@
/typeid-1.0.2.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 \('[Cc]onst',")

@ -0,0 +1,69 @@
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
%global crate typeid
Name: rust-typeid
Version: 1.0.2
Release: %autorelease
Summary: Const TypeId and non-'static TypeId
License: MIT OR Apache-2.0
URL: https://crates.io/crates/typeid
Source: %{crates_source}
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Const TypeId and non-'static TypeId.}
%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-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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
%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 @@
SHA512 (typeid-1.0.2.crate) = a056d99db3bc648ea260157335045dba1df96e70cefe65dbeac80d517cf630cf398f86da692180592e99f27ae14eec1d3f658c0d2d039ae353ce56463f7cee40
Loading…
Cancel
Save