## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 26 %bcond_without check %global crate add-determinism Name: rust-add-determinism Version: 0.2.0 Release: %autorelease Summary: RPM buildroot helper to strip nondeterministic bits in files License: GPL-3.0-or-later URL: https://crates.io/crates/add-determinism Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: RPM buildroot helper to strip nondeterministic bits in files.} %description %{_description} %package -n %{crate} Summary: %{summary} License: GPL-3.0-or-later AND (Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) Recommends: python3dist(marshalparser) %description -n %{crate} %{_description} WARNING: This package is in early stages of development. DO NOT USE. %files -n %{crate} %license LICENSE.GPL3 %license LICENSE.dependencies %doc README.md %{_bindir}/add-determinism %{rpmmacrodir}/macros.build-reproducibility %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.GPL3 %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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo 'python3dist(marshalparser)' %build %cargo_build %{cargo_license_summary} %{cargo_license} >LICENSE.dependencies %install %cargo_install install -m0644 -Dt %{buildroot}%{rpmmacrodir} rpm/macros.build-reproducibility %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Wed Apr 03 2024 Zbigniew Jędrzejewski-Szmek - 0.2.0-1 - Version 0.2.0 * Thu Mar 28 2024 Zbigniew Jędrzejewski-Szmek - 0.1.0.20240325git3d2444a-2 - Install /usr/lib/rpm/macros/macros.build-reproducibility * Mon Mar 25 2024 Zbigniew Jędrzejewski-Szmek - 0.1.0.20240325git3d2444a-1 - Version 0.1.0.20240325git5004746 * Sun Mar 24 2024 Zbigniew Jędrzejewski-Szmek - 0.1.0-2 - Spell out the full license for the binary package * Sat Mar 23 2024 Zbigniew Jędrzejewski-Szmek - 0.1.0-1 - Initial packaging ## END: Generated by rpmautospec