File rust-uuid-1.spec of Package rust-uuid-1

# rust-uuid.spec
# Generated by rust2rpm 21
%bcond_without check
%global debug_package %{nil}

%global crate uuid

Name:           rust-%{crate}-1
Version:        1.0.0
Release:        1%{?dist}
Summary:        Library to generate and parse UUIDs

# Upstream license specification: Apache-2.0 OR MIT
License:        ASL 2.0 or MIT
URL:            https://crates.io/crates/uuid
Source:         https://crates.io/api/v1/crates/%crate/%version/download#/%crate-%version.crate

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging >= 21
%if %{with check}
BuildRequires:  (crate(bincode/default) >= 1.0.0 with crate(bincode/default) < 2.0.0~)
BuildRequires:  (crate(rustversion/default) >= 1.0.0 with crate(rustversion/default) < 2.0.0~)
BuildRequires:  (crate(serde_derive/default) >= 1.0.79 with crate(serde_derive/default) < 2.0.0~)
BuildRequires:  (crate(serde_json/default) >= 1.0.0 with crate(serde_json/default) < 2.0.0~)
BuildRequires:  (crate(serde_test/default) >= 1.0.56 with crate(serde_test/default) < 2.0.0~)
BuildRequires:  (crate(trybuild/default) >= 1.0.52 with crate(trybuild/default) < 2.0.0~)
BuildRequires:  (crate(wasm-bindgen-test/default) >= 0.3.0 with crate(wasm-bindgen-test/default) < 0.4.0~)
BuildRequires:  (crate(wasm-bindgen/default) >= 0.2.0 with crate(wasm-bindgen/default) < 0.3.0~)
BuildRequires:  (crate(winapi/combaseapi) >= 0.3.0 with crate(winapi/combaseapi) < 0.4.0~)
BuildRequires:  (crate(winapi/default) >= 0.3.0 with crate(winapi/default) < 0.4.0~)
BuildRequires:  (crate(winapi/impl-default) >= 0.3.0 with crate(winapi/impl-default) < 0.4.0~)
%endif

%global _description %{expand:
Library to generate and parse UUIDs.}

%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}/COPYRIGHT
%license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CODE_OF_CONDUCT.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}+arbitrary-devel
Summary:        %{summary}
BuildArch:      noarch

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

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

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

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

%description -n %{name}+fast-rng-devel %{_description}

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

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

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

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

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

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

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

%description -n %{name}+macro-diagnostics-devel %{_description}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

%description -n %{name}+private_md-5-devel %{_description}

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

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

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

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

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

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

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

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

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

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

%package     -n %{name}+private_uuid-macro-internal-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+private_uuid-macro-internal-devel %{_description}

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

%files       -n %{name}+private_uuid-macro-internal-devel
%ghost %{crate_instdir}/Cargo.toml

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

%files       -n %{name}+slog-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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

%files       -n %{name}+zerocopy-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