Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 655659edf3f792fc2847f875da55cb9e > files > 1

rust-rustversion-1.0.11-1.mga9.src.rpm

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

%global crate rustversion

Name:           rust-%{crate}
Version:        1.0.11
Release:        %mkrel 1
Summary:        Conditional compilation according to rustc compiler version
Group:          Development/Other

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

BuildRequires:  rust-packaging
BuildRequires:  crate(trybuild/default) >= 1.0.49
BuildRequires:  crate(trybuild/diff) >= 1.0.49

%global _description %{expand:
Conditional compilation according to rustc compiler version.}

%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
%doc README.md
%{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
* Thu Dec 22 2022 guillomovitch <guillomovitch> 1.0.11-1.mga9
+ Revision: 1925820
- new version 1.0.11

* Thu Oct 20 2022 guillomovitch <guillomovitch> 1.0.9-1.mga9
+ Revision: 1898027
- new version 1.0.9

* Mon Mar 21 2022 umeabot <umeabot> 1.0.6-2.mga9
+ Revision: 1816375
- Mageia 9 Mass Rebuild

* Thu Feb 24 2022 guillomovitch <guillomovitch> 1.0.6-1.mga9
+ Revision: 1783991
- imported package rust-rustversion