Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 772cb969215e760f5e3609e92ba70f86 > files > 3

rust-cpp_demangle-0.4.0-1.mga9.src.rpm

# Generated by rust2rpm 20
%bcond_with check

%global debug_package %{nil}

%global crate cpp_demangle

Name:           rust-%{crate}
Version:        0.4.0
Release:        %mkrel 1
Summary:        Crate for demangling C++ symbols
Group:          Development/Other

# Upstream license specification: Apache-2.0/MIT
License:        ASL 2.0 or MIT
URL:            https://crates.io/crates/cpp_demangle
Source:         %{crates_source}
# Initial patched metadata
# * drop unused support for the AFL fuzzer
Patch0:         cpp_demangle-fix-metadata.diff

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging >= 21

%global _description %{expand:
Crate for demangling C++ symbols.}

%description %{_description}

%package        devel
Summary:        %{summary}
BuildArch:      noarch
Requires:       rust-clap2-devel
Requires:       rust-clap2+default-devel

%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}/CONTRIBUTING.md
%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

%package     -n %{name}+alloc-devel
Summary:        %{summary}
BuildArch:      noarch

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

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

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

%package     -n %{name}+logging-devel
Summary:        %{summary}
BuildArch:      noarch

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

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

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

%package     -n %{name}+run_libiberty_tests-devel
Summary:        %{summary}
BuildArch:      noarch

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

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

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

%package     -n %{name}+std-devel
Summary:        %{summary}
BuildArch:      noarch

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

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

%files       -n %{name}+std-devel
%ghost %{crate_instdir}/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
* Sat Feb 11 2023 wally <wally> 0.4.0-1.mga9
+ Revision: 1940583
- new version 0.4.0

* Sat Feb 11 2023 guillomovitch <guillomovitch> 0.3.5-1.mga9
+ Revision: 1940204
- imported package rust-cpp_demangle