## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 27 %bcond check 1 %global debug_package %{nil} %global crate der-parser Name: rust-der-parser Version: 10.0.0 Release: %autorelease Summary: Parser/encoder for ASN.1 BER/DER data License: MIT OR Apache-2.0 URL: https://crates.io/crates/der-parser Source: %{crates_source} # * Downstream-only: Drop deny(warnings) from doctests Patch10: 0001-Drop-deny-warnings-from-doctests.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Parser/encoder for ASN.1 BER/DER data.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/UPGRADING.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}+as_bitvec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+as_bitvec-devel %{_description} This package contains library source intended for building other packages which use the "as_bitvec" feature of the "%{crate}" crate. %files -n %{name}+as_bitvec-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bigint-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bigint-devel %{_description} This package contains library source intended for building other packages which use the "bigint" feature of the "%{crate}" crate. %files -n %{name}+bigint-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bitvec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bitvec-devel %{_description} This package contains library source intended for building other packages which use the "bitvec" feature of the "%{crate}" crate. %files -n %{name}+bitvec-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cookie-factory-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cookie-factory-devel %{_description} This package contains library source intended for building other packages which use the "cookie-factory" feature of the "%{crate}" crate. %files -n %{name}+cookie-factory-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+num-bigint-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+num-bigint-devel %{_description} This package contains library source intended for building other packages which use the "num-bigint" feature of the "%{crate}" crate. %files -n %{name}+num-bigint-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serialize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serialize-devel %{_description} This package contains library source intended for building other packages which use the "serialize" feature of the "%{crate}" crate. %files -n %{name}+serialize-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}+unstable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 find . -type f -name .gitignore -print -delete %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Nov 15 2025 Benjamin A. Beasley - 10.0.0-1 - Update to version 10.0.0; Fixes RHBZ#2339096 * Mon Aug 18 2025 Fabio Valentini - 9.0.0-4 - Drop deny(warnings) from doctests * Fri Jul 25 2025 Fedora Release Engineering - 9.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 9.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Tue Jan 07 2025 Davide Cavalca - 9.0.0-1 - Initial import; Fixes: RHBZ#2312638 ## END: Generated by rpmautospec