7d30526
# Generated by rust2rpm 25
ca044f6
%bcond_without check
ca044f6
%global debug_package %{nil}
ca044f6
ca044f6
%global crate os_str_bytes
ca044f6
6e05e98
Name:           rust-os_str_bytes
7d30526
Version:        6.6.1
14515b3
Release:        %autorelease
6e05e98
Summary:        Convert between byte sequences and platform-native strings
ca044f6
6e05e98
License:        MIT OR Apache-2.0
ca044f6
URL:            https://crates.io/crates/os_str_bytes
ca044f6
Source:         %{crates_source}
ca044f6
7d30526
BuildRequires:  cargo-rpm-macros >= 24
ca044f6
ca044f6
%global _description %{expand:
6e05e98
Convert between byte sequences and platform-native strings.}
ca044f6
ca044f6
%description %{_description}
ca044f6
ca044f6
%package        devel
ca044f6
Summary:        %{summary}
ca044f6
BuildArch:      noarch
ca044f6
ca044f6
%description    devel %{_description}
ca044f6
f4dc7aa
This package contains library source intended for building other packages which
f4dc7aa
use the "%{crate}" crate.
ca044f6
ca044f6
%files          devel
58579a9
%license %{crate_instdir}/COPYRIGHT
58579a9
%license %{crate_instdir}/LICENSE-APACHE
58579a9
%license %{crate_instdir}/LICENSE-MIT
58579a9
%doc %{crate_instdir}/README.md
58579a9
%{crate_instdir}/
ca044f6
ca044f6
%package     -n %{name}+default-devel
ca044f6
Summary:        %{summary}
ca044f6
BuildArch:      noarch
ca044f6
ca044f6
%description -n %{name}+default-devel %{_description}
ca044f6
f4dc7aa
This package contains library source intended for building other packages which
f4dc7aa
use the "default" feature of the "%{crate}" crate.
ca044f6
ca044f6
%files       -n %{name}+default-devel
58579a9
%ghost %{crate_instdir}/Cargo.toml
ca044f6
9c0058e
%package     -n %{name}+checked_conversions-devel
9c0058e
Summary:        %{summary}
9c0058e
BuildArch:      noarch
9c0058e
9c0058e
%description -n %{name}+checked_conversions-devel %{_description}
9c0058e
9c0058e
This package contains library source intended for building other packages which
9c0058e
use the "checked_conversions" feature of the "%{crate}" crate.
9c0058e
9c0058e
%files       -n %{name}+checked_conversions-devel
9c0058e
%ghost %{crate_instdir}/Cargo.toml
9c0058e
7d30526
%package     -n %{name}+conversions-devel
7d30526
Summary:        %{summary}
7d30526
BuildArch:      noarch
7d30526
7d30526
%description -n %{name}+conversions-devel %{_description}
7d30526
7d30526
This package contains library source intended for building other packages which
7d30526
use the "conversions" feature of the "%{crate}" crate.
7d30526
7d30526
%files       -n %{name}+conversions-devel
7d30526
%ghost %{crate_instdir}/Cargo.toml
7d30526
1e2d72b
%package     -n %{name}+memchr-devel
1e2d72b
Summary:        %{summary}
1e2d72b
BuildArch:      noarch
1e2d72b
1e2d72b
%description -n %{name}+memchr-devel %{_description}
1e2d72b
f4dc7aa
This package contains library source intended for building other packages which
f4dc7aa
use the "memchr" feature of the "%{crate}" crate.
1e2d72b
1e2d72b
%files       -n %{name}+memchr-devel
58579a9
%ghost %{crate_instdir}/Cargo.toml
1e2d72b
6e05e98
%package     -n %{name}+print_bytes-devel
6e05e98
Summary:        %{summary}
6e05e98
BuildArch:      noarch
6e05e98
6e05e98
%description -n %{name}+print_bytes-devel %{_description}
6e05e98
6e05e98
This package contains library source intended for building other packages which
6e05e98
use the "print_bytes" feature of the "%{crate}" crate.
6e05e98
6e05e98
%files       -n %{name}+print_bytes-devel
6e05e98
%ghost %{crate_instdir}/Cargo.toml
6e05e98
1e2d72b
%package     -n %{name}+raw_os_str-devel
1e2d72b
Summary:        %{summary}
1e2d72b
BuildArch:      noarch
1e2d72b
1e2d72b
%description -n %{name}+raw_os_str-devel %{_description}
1e2d72b
f4dc7aa
This package contains library source intended for building other packages which
f4dc7aa
use the "raw_os_str" feature of the "%{crate}" crate.
1e2d72b
1e2d72b
%files       -n %{name}+raw_os_str-devel
58579a9
%ghost %{crate_instdir}/Cargo.toml
1e2d72b
ca044f6
%prep
7d30526
%autosetup -n %{crate}-%{version} -p1
ca044f6
%cargo_prep
ca044f6
ca044f6
%generate_buildrequires
ca044f6
%cargo_generate_buildrequires
ca044f6
ca044f6
%build
ca044f6
%cargo_build
ca044f6
ca044f6
%install
ca044f6
%cargo_install
ca044f6
ca044f6
%if %{with check}
ca044f6
%check
ca044f6
%cargo_test
ca044f6
%endif
ca044f6
ca044f6
%changelog
14515b3
%autochangelog