# Generated by rust2rpm 13
%bcond_without check
%global crate os_info
Name: rust-%{crate}
Version: 2.0.0
Release: 2%{?dist}
Summary: Detect the operating system type and version
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/os_info
Source: %{crates_source}
# Initial patched metadata
# * Remove Windows/MacOS only deps
Patch0: os_info-fix-metadata.diff
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Detect the operating system type and version.}
%description %{_description}
%if ! %{__cargo_skip_build}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/os_info
%endif
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md CONTRIBUTING.md Changelog.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 "default" feature of "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "serde" feature of "%{crate}" crate.
%files -n %{name}+serde-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# https://github.com/DarkEld3r/os_info/issues/145
rm -vr lib
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Fri Feb 14 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.0.0-2
- Add license into a binary package
- Remove binary files
* Tue Feb 11 06:08:44 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 2.0.0-1
- Update to 2.0.0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Jan 24 17:29:28 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.3.3-1
- Update to 1.3.3
* Mon Jan 20 09:30:41 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.3.2-1
- Update to 1.3.2
* Wed Jan 15 13:10:27 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 1.3.1-1
- Update to 1.3.1
* Wed Jan 15 2020 Josh Stone <jistone@redhat.com> - 1.3.0-1
- Update to 1.3.0
* Sat Dec 21 01:56:19 EET 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 1.2.0-1
- Initial package