## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 22 %bcond_without check %global debug_package %{nil} %global crate lopdf Name: rust-lopdf Version: 0.27.0 Release: %autorelease Summary: Rust library for PDF document manipulation License: MIT URL: https://crates.io/crates/lopdf Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Rust library for PDF document manipulation.} %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}/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}+chrono-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chrono-devel %{_description} This package contains library source intended for building other packages which use the "chrono" feature of the "%{crate}" crate. %files -n %{name}+chrono-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chrono_time-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chrono_time-devel %{_description} This package contains library source intended for building other packages which use the "chrono_time" feature of the "%{crate}" crate. %files -n %{name}+chrono_time-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+embed_image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+embed_image-devel %{_description} This package contains library source intended for building other packages which use the "embed_image" feature of the "%{crate}" crate. %files -n %{name}+embed_image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-devel %{_description} This package contains library source intended for building other packages which use the "image" feature of the "%{crate}" crate. %files -n %{name}+image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nom-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nom-devel %{_description} This package contains library source intended for building other packages which use the "nom" feature of the "%{crate}" crate. %files -n %{name}+nom-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+nom_parser-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+nom_parser-devel %{_description} This package contains library source intended for building other packages which use the "nom_parser" feature of the "%{crate}" crate. %files -n %{name}+nom_parser-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pom-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pom-devel %{_description} This package contains library source intended for building other packages which use the "pom" feature of the "%{crate}" crate. %files -n %{name}+pom-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pom_parser-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pom_parser-devel %{_description} This package contains library source intended for building other packages which use the "pom_parser" feature of the "%{crate}" crate. %files -n %{name}+pom_parser-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-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 %cargo_test %endif %changelog * Sat Oct 15 2022 Kalev Lember 0.27.0-1 - Initial Fedora packaging