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.
149 lines
3.9 KiB
149 lines
3.9 KiB
# Generated by rust2rpm 17
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate byte-unit
|
|
|
|
Name: rust-%{crate}
|
|
Version: 4.0.12
|
|
Release: 1%{?dist}
|
|
Summary: Library for interaction with units of bytes
|
|
|
|
# Upstream license specification: MIT
|
|
License: MIT
|
|
URL: https://crates.io/crates/byte-unit
|
|
Source: %{crates_source}
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
%if %{__cargo_skip_build}
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%global _description %{expand:
|
|
Library for interaction with units of bytes.}
|
|
|
|
%description %{_description}
|
|
|
|
%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
|
|
%{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
|
|
|
|
%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 "std" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+std-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%package -n %{name}+u128-devel
|
|
Summary: %{summary}
|
|
BuildArch: noarch
|
|
|
|
%description -n %{name}+u128-devel %{_description}
|
|
|
|
This package contains library source intended for building other packages
|
|
which use "u128" feature of "%{crate}" crate.
|
|
|
|
%files -n %{name}+u128-devel
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
* Mon May 10 2021 Fabio Valentini <decathorpe@gmail.com> - 4.0.12-1
|
|
- Update to version 4.0.12.
|
|
- Fixes RHBZ#1958711
|
|
|
|
* Wed Apr 21 2021 Fabio Valentini <decathorpe@gmail.com> - 4.0.11-1
|
|
- Update to version 4.0.11.
|
|
- Fixes RHBZ#1952016
|
|
|
|
* Thu Mar 25 2021 Fabio Valentini <decathorpe@gmail.com> - 4.0.10-1
|
|
- Update to version 4.0.10.
|
|
- Fixes RHBZ#1937539
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Mon Nov 30 2020 Fabio Valentini <decathorpe@gmail.com> - 4.0.9-1
|
|
- Update to version 4.0.9.
|
|
- Fixes RHBZ#1851602
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Tue May 26 2020 Josh Stone <jistone@redhat.com> - 3.1.3-1
|
|
- Update to 3.1.3
|
|
|
|
* Mon May 25 13:38:25 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 3.1.2-1
|
|
- Update to 3.1.2
|
|
|
|
* Mon May 18 2020 Josh Stone <jistone@redhat.com> - 3.1.1-1
|
|
- Update to 3.1.1
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Mon Sep 16 11:06:41 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.0.3-1
|
|
- Update to 3.0.3
|
|
|
|
* Sun Sep 08 18:06:58 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.0.1-1
|
|
- Initial package
|