## 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 asn1-rs Name: rust-asn1-rs Version: 0.7.1 Release: %autorelease Summary: Parser/encoder for ASN.1 BER/DER data License: MIT OR Apache-2.0 URL: https://crates.io/crates/asn1-rs 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 %{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}+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}+bits-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bits-devel %{_description} This package contains library source intended for building other packages which use the "bits" feature of the "%{crate}" crate. %files -n %{name}+bits-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}+colored-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+colored-devel %{_description} This package contains library source intended for building other packages which use the "colored" feature of the "%{crate}" crate. %files -n %{name}+colored-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}+datetime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+datetime-devel %{_description} This package contains library source intended for building other packages which use the "datetime" feature of the "%{crate}" crate. %files -n %{name}+datetime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debug-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debug-devel %{_description} This package contains library source intended for building other packages which use the "debug" feature of the "%{crate}" crate. %files -n %{name}+debug-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}+time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+time-devel %{_description} This package contains library source intended for building other packages which use the "time" feature of the "%{crate}" crate. %files -n %{name}+time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trace-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trace-devel %{_description} This package contains library source intended for building other packages which use the "trace" feature of the "%{crate}" crate. %files -n %{name}+trace-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 -f bigint,bits,datetime,serialize %build %cargo_build -f bigint,bits,datetime,serialize %install %cargo_install -f bigint,bits,datetime,serialize %if %{with check} %check %ifarch %{ix86} %cargo_test -f bigint,bits,datetime,serialize -- -- --skip from_ber_length_invalid %else %cargo_test -f bigint,bits,datetime,serialize %endif %endif %changelog ## START: Generated by rpmautospec * Sat Nov 15 2025 Benjamin A. Beasley - 0.7.1-1 - Update to version 0.7.1; Fixes RHBZ#2338457 * Mon Aug 18 2025 Fabio Valentini - 0.6.2-5 - Drop deny(warnings) from doctests * Fri Jul 25 2025 Fedora Release Engineering - 0.6.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Sun Dec 08 2024 Davide Cavalca - 0.6.2-2 - Skip broken test on i686 * Sun Dec 08 2024 Davide Cavalca - 0.6.2-1 - Initial import; Fixes: RHBZ#2312637 ## END: Generated by rpmautospec