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-bytecheck/SPECS/rust-bytecheck.spec

173 lines
4.9 KiB

## START: Set by rpmautospec
## (rpmautospec version 0.3.5)
## RPMAUTOSPEC: autorelease, autochangelog
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
release_number = 3;
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
## END: Set by rpmautospec
# Generated by rust2rpm 24
%bcond_without check
%global debug_package %{nil}
%global crate bytecheck
Name: rust-bytecheck
Version: 0.6.11
Release: %autorelease
Summary: Derive macro for bytecheck
License: MIT
URL: https://crates.io/crates/bytecheck
Source: %{crates_source}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Derive macro for bytecheck.}
%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
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/crates-io.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}+simdutf8-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+simdutf8-devel %{_description}
This package contains library source intended for building other packages which
use the "simdutf8" feature of the "%{crate}" crate.
%files -n %{name}+simdutf8-devel
%ghost %{crate_instdir}/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 the "std" feature of the "%{crate}" crate.
%files -n %{name}+std-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+uuid-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+uuid-devel %{_description}
This package contains library source intended for building other packages which
use the "uuid" feature of the "%{crate}" crate.
%files -n %{name}+uuid-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+verbose-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+verbose-devel %{_description}
This package contains library source intended for building other packages which
use the "verbose" feature of the "%{crate}" crate.
%files -n %{name}+verbose-devel
%ghost %{crate_instdir}/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
# * skip tests that fail with Rust 1.71:
# https://github.com/rkyv/bytecheck/issues/32
%cargo_test -- -- --skip "src/lib.rs"
%endif
%changelog
* Mon Nov 20 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.6.11-3
- Rebuilt for MSVSphere 9.2
* Tue Sep 26 2023 Fabio Valentini <decathorpe@gmail.com> - 0.6.11-3
- Skip tests that fail with Rust 1.71
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Mon May 22 2023 Fabio Valentini <decathorpe@gmail.com> - 0.6.11-1
- Update to version 0.6.11
* Tue Feb 28 2023 Fabio Valentini <decathorpe@gmail.com> - 0.6.10-1
- Update to version 0.6.10
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Jul 27 2022 Fabio Valentini <decathorpe@gmail.com> - 0.6.9-1
- Update to version 0.6.9; Fixes RHBZ#2110246
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 06 2022 Fabio Valentini <decathorpe@gmail.com> - 0.6.8-1
- Update to version 0.6.8; Fixes RHBZ#2081203
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Fri Dec 10 2021 Rémi Lauzier <remilauzier@protonmail.com> - 0.6.7-1
- Update to version 0.6.7; Fixes RHBZ#2028945
* Sun Nov 28 2021 Rémi Lauzier <remilauzier@protonmail.com> - 0.6.6-1
- Update to version 0.6.6; Fixes RHBZ#2026710
* Sun Aug 15 2021 Rémi Lauzier <remilauzier@protonmail.com> - 0.6.5-1
- Update to version 0.6.5; Fixes RHBZ#1990955
* Thu Aug 05 2021 Rémi Lauzier <remilauzier@protonmail.com> - 0.6.4-2
- Deactivate test on s390x
* Thu Aug 05 2021 Rémi Lauzier <remilauzier@protonmail.com> - 0.6.4-1
- Initial import; Fixes RHBZ#1980620