You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-bpaf/rust-bpaf.spec

224 lines
6.2 KiB

# Generated by rust2rpm 26
# * Tests fail to build
%bcond_with check
%global debug_package %{nil}
%global crate bpaf
Name: rust-bpaf
Version: 0.9.13
Release: %autorelease
Summary: Simple Command Line Argument Parser with parser combinators
License: MIT OR Apache-2.0
URL: https://crates.io/crates/bpaf
Source: %{crates_source}
# * https://github.com/pacak/bpaf/pull/388
Source2: https://github.com/pacak/bpaf/raw/dd8e2772b7f6e17ffbcdcfdda1e55776615e25e0/LICENSE-APACHE
# * https://github.com/pacak/bpaf/pull/388
Source3: https://github.com/pacak/bpaf/raw/dd8e2772b7f6e17ffbcdcfdda1e55776615e25e0/LICENSE-MIT
# Manually created patch for downstream crate metadata changes
# * Drop examples as they fail to build
# * Include license files
Patch: bpaf-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
A simple Command Line Argument Parser with parser combinators.}
%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}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT
%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}+autocomplete-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+autocomplete-devel %{_description}
This package contains library source intended for building other packages which
use the "autocomplete" feature of the "%{crate}" crate.
%files -n %{name}+autocomplete-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+batteries-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+batteries-devel %{_description}
This package contains library source intended for building other packages which
use the "batteries" feature of the "%{crate}" crate.
%files -n %{name}+batteries-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+bpaf_derive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bpaf_derive-devel %{_description}
This package contains library source intended for building other packages which
use the "bpaf_derive" feature of the "%{crate}" crate.
%files -n %{name}+bpaf_derive-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+bright-color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+bright-color-devel %{_description}
This package contains library source intended for building other packages which
use the "bright-color" feature of the "%{crate}" crate.
%files -n %{name}+bright-color-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+color-devel %{_description}
This package contains library source intended for building other packages which
use the "color" feature of the "%{crate}" crate.
%files -n %{name}+color-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+derive-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+derive-devel %{_description}
This package contains library source intended for building other packages which
use the "derive" feature of the "%{crate}" crate.
%files -n %{name}+derive-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+docgen-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+docgen-devel %{_description}
This package contains library source intended for building other packages which
use the "docgen" feature of the "%{crate}" crate.
%files -n %{name}+docgen-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+dull-color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dull-color-devel %{_description}
This package contains library source intended for building other packages which
use the "dull-color" feature of the "%{crate}" crate.
%files -n %{name}+dull-color-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+extradocs-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+extradocs-devel %{_description}
This package contains library source intended for building other packages which
use the "extradocs" feature of the "%{crate}" crate.
%files -n %{name}+extradocs-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+owo-colors-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+owo-colors-devel %{_description}
This package contains library source intended for building other packages which
use the "owo-colors" feature of the "%{crate}" crate.
%files -n %{name}+owo-colors-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+supports-color-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+supports-color-devel %{_description}
This package contains library source intended for building other packages which
use the "supports-color" feature of the "%{crate}" crate.
%files -n %{name}+supports-color-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+unstable-docs-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+unstable-docs-devel %{_description}
This package contains library source intended for building other packages which
use the "unstable-docs" feature of the "%{crate}" crate.
%files -n %{name}+unstable-docs-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
cp -p %SOURCE2 %SOURCE3 .
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog