Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > a8c93dcdc652c17d8f8574937ab9b7be > files > 2

rust-hex-literal-impl-0.2.3-1.mga9.src.rpm

# Generated by rust2rpm 20
%bcond_without check
%global debug_package %{nil}

%global crate hex-literal-impl

Name:           rust-%{crate}
Version:        0.2.3
Release:        %mkrel 1
Summary:        Internal implementation of the hex-literal crate
Group:          Development/Other

# Upstream license specification: MIT OR Apache-2.0
License:        MIT or ASL 2.0
URL:            https://crates.io/crates/hex-literal-impl
Source:         %{crates_source}

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging
BuildRequires:  crate(proc-macro-hack/default) >= 0.5.7

%global _description %{expand:
Internal implementation of the hex-literal 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 LICENSE-APACHE LICENSE-MIT
%{cargo_registry}/%{crate}-%{version_no_tilde}/

%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 %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif


%changelog
* Mon Oct 24 2022 guillomovitch <guillomovitch> 0.2.3-1.mga9
+ Revision: 1899105
- imported package rust-hex-literal-impl