Sophie

Sophie

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

rust-proc-macro-error-1.0.4-2.mga9.src.rpm

# Generated by rust2rpm 21
# missing dependencies
%bcond_with check

%global crate proc-macro-error

Name:           rust-%{crate}
Version:        1.0.4
Release:        %mkrel 2
Summary:        Almost drop-in replacement to panics in proc-macros
Group:          Development/Other

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

ExclusiveArch:  %{rust_arches}
BuildArch:      noarch

BuildRequires:  rust-packaging >= 21
BuildRequires:  crate(proc-macro-error-attr/default) = 1.0.4
BuildRequires:  crate(proc-macro2/default) >= 1.0.0
BuildRequires:  crate(quote/default) >= 1.0.0
BuildRequires:  crate(syn) >= 1.0.0
BuildRequires:  crate(version_check/default) >= 0.9.0
%if %{with check}
BuildRequires:  crate(serde_derive/default) = 1.0.107
BuildRequires:  crate(toml/default) = 0.5.2
BuildRequires:  crate(trybuild/default) >= 1.0.19
BuildRequires:  crate(trybuild/diff) >= 1.0.19
%endif

%global _description %{expand:
Almost drop-in replacement to panics in proc-macros.}

%description %{_description}

%package        devel
Summary:        %{summary}
Group:          Development/Other
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}/CHANGELOG.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/

%package     -n %{name}+default-devel
Summary:        %{summary}
Group:          Development/Other
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

%package     -n %{name}+syn-devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description -n %{name}+syn-devel %{_description}

This package contains library source intended for building other packages which
use the "syn" feature of the "%{crate}" crate.

%files       -n %{name}+syn-devel
%ghost %{crate_instdir}/Cargo.toml

%package     -n %{name}+syn-error-devel
Summary:        %{summary}
Group:          Development/Other
BuildArch:      noarch

%description -n %{name}+syn-error-devel %{_description}

This package contains library source intended for building other packages which
use the "syn-error" feature of the "%{crate}" crate.

%files       -n %{name}+syn-error-devel
%ghost %{crate_instdir}/Cargo.toml

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

%build
%cargo_build

%install
%cargo_install

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



%changelog
* Thu Mar 24 2022 umeabot <umeabot> 1.0.4-2.mga9
+ Revision: 1825147
- Mageia 9 Mass Rebuild

* Sat Mar 05 2022 guillomovitch <guillomovitch> 1.0.4-1.mga9
+ Revision: 1788948
- imported package rust-proc-macro-error


* Sat Mar 05 2022 Guillaume Rousse <guillomovitch@gmail.com> - 1.0.4-1
- Initial package