80cb582
# Generated by rust2rpm 26
872de0d
%bcond_without check
493c8df
%global debug_package %{nil}
493c8df
493c8df
%global crate semver
493c8df
e815687
Name:           rust-semver
f360787
Version:        1.0.23
a7102e5
Release:        %autorelease
2d26935
Summary:        Parser and evaluator for Cargo's flavor of Semantic Versioning
493c8df
e815687
License:        MIT OR Apache-2.0
493c8df
URL:            https://crates.io/crates/semver
c6b7210
Source:         %{crates_source}
493c8df
0b8e7bd
BuildRequires:  cargo-rpm-macros >= 24
493c8df
c60d11f
%global _description %{expand:
2d26935
Parser and evaluator for Cargo's flavor of Semantic Versioning.}
ecb153f
ecb153f
%description %{_description}
493c8df
493c8df
%package        devel
493c8df
Summary:        %{summary}
493c8df
BuildArch:      noarch
493c8df
ecb153f
%description    devel %{_description}
ecb153f
c021eb9
This package contains library source intended for building other packages which
c021eb9
use the "%{crate}" crate.
ecb153f
ecb153f
%files          devel
a43db8f
%license %{crate_instdir}/LICENSE-APACHE
a43db8f
%license %{crate_instdir}/LICENSE-MIT
a43db8f
%doc %{crate_instdir}/README.md
a43db8f
%{crate_instdir}/
ecb153f
ecb153f
%package     -n %{name}+default-devel
ecb153f
Summary:        %{summary}
ecb153f
BuildArch:      noarch
ecb153f
ecb153f
%description -n %{name}+default-devel %{_description}
493c8df
c021eb9
This package contains library source intended for building other packages which
c021eb9
use the "default" feature of the "%{crate}" crate.
ecb153f
ecb153f
%files       -n %{name}+default-devel
a43db8f
%ghost %{crate_instdir}/Cargo.toml
ecb153f
2d26935
%package     -n %{name}+serde-devel
872de0d
Summary:        %{summary}
872de0d
BuildArch:      noarch
872de0d
2d26935
%description -n %{name}+serde-devel %{_description}
872de0d
c021eb9
This package contains library source intended for building other packages which
c021eb9
use the "serde" feature of the "%{crate}" crate.
872de0d
2d26935
%files       -n %{name}+serde-devel
a43db8f
%ghost %{crate_instdir}/Cargo.toml
c60d11f
2d26935
%package     -n %{name}+std-devel
ecb153f
Summary:        %{summary}
ecb153f
BuildArch:      noarch
ecb153f
2d26935
%description -n %{name}+std-devel %{_description}
ecb153f
c021eb9
This package contains library source intended for building other packages which
c021eb9
use the "std" feature of the "%{crate}" crate.
ecb153f
2d26935
%files       -n %{name}+std-devel
a43db8f
%ghost %{crate_instdir}/Cargo.toml
493c8df
493c8df
%prep
0b8e7bd
%autosetup -n %{crate}-%{version} -p1
493c8df
%cargo_prep
493c8df
d032bab
%generate_buildrequires
d032bab
%cargo_generate_buildrequires
d032bab
493c8df
%build
493c8df
%cargo_build
493c8df
493c8df
%install
493c8df
%cargo_install
493c8df
493c8df
%if %{with check}
493c8df
%check
493c8df
%cargo_test
493c8df
%endif
493c8df
493c8df
%changelog
a7102e5
%autochangelog