# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate rusty_paseto Name: rust-rusty_paseto Version: 0.7.1 Release: %autorelease Summary: Type-driven, ergonomic alternative to JWT for secure stateless PASETO tokens License: MIT OR Apache-2.0 URL: https://crates.io/crates/rusty_paseto Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * - Remove examples # * - Relax erased-serde to 0.4.4 # * - Relax iso8601 to >=0.4.2 Patch: rusty_paseto-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A type-driven, ergonomic alternative to JWT for secure stateless PASETO tokens.} %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.md %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/Changelog.md %doc %{crate_instdir}/SECURITY.md %doc %{crate_instdir}/readme.md %doc %{crate_instdir}/readme_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}+aes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+aes-devel %{_description} This package contains library source intended for building other packages which use the "aes" feature of the "%{crate}" crate. %files -n %{name}+aes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+batteries_included-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+batteries_included-devel %{_description} This package contains library source intended for building other packages which use the "batteries_included" feature of the "%{crate}" crate. %files -n %{name}+batteries_included-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+blake2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+blake2-devel %{_description} This package contains library source intended for building other packages which use the "blake2" feature of the "%{crate}" crate. %files -n %{name}+blake2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chacha20-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chacha20-devel %{_description} This package contains library source intended for building other packages which use the "chacha20" feature of the "%{crate}" crate. %files -n %{name}+chacha20-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+chacha20poly1305-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+chacha20poly1305-devel %{_description} This package contains library source intended for building other packages which use the "chacha20poly1305" feature of the "%{crate}" crate. %files -n %{name}+chacha20poly1305-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+core-devel %{_description} This package contains library source intended for building other packages which use the "core" feature of the "%{crate}" crate. %files -n %{name}+core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ed25519-dalek-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ed25519-dalek-devel %{_description} This package contains library source intended for building other packages which use the "ed25519-dalek" feature of the "%{crate}" crate. %files -n %{name}+ed25519-dalek-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+erased-serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+erased-serde-devel %{_description} This package contains library source intended for building other packages which use the "erased-serde" feature of the "%{crate}" crate. %files -n %{name}+erased-serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generic-devel %{_description} This package contains library source intended for building other packages which use the "generic" feature of the "%{crate}" crate. %files -n %{name}+generic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hmac-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hmac-devel %{_description} This package contains library source intended for building other packages which use the "hmac" feature of the "%{crate}" crate. %files -n %{name}+hmac-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+local-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+local-devel %{_description} This package contains library source intended for building other packages which use the "local" feature of the "%{crate}" crate. %files -n %{name}+local-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+p384-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+p384-devel %{_description} This package contains library source intended for building other packages which use the "p384" feature of the "%{crate}" crate. %files -n %{name}+p384-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+public-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+public-devel %{_description} This package contains library source intended for building other packages which use the "public" feature of the "%{crate}" crate. %files -n %{name}+public-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde_json-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_json-devel %{_description} This package contains library source intended for building other packages which use the "serde_json" feature of the "%{crate}" crate. %files -n %{name}+serde_json-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sha2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sha2-devel %{_description} This package contains library source intended for building other packages which use the "sha2" feature of the "%{crate}" crate. %files -n %{name}+sha2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v1-devel %{_description} This package contains library source intended for building other packages which use the "v1" feature of the "%{crate}" crate. %files -n %{name}+v1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v1_local-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v1_local-devel %{_description} This package contains library source intended for building other packages which use the "v1_local" feature of the "%{crate}" crate. %files -n %{name}+v1_local-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v1_public-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v1_public-devel %{_description} This package contains library source intended for building other packages which use the "v1_public" feature of the "%{crate}" crate. %files -n %{name}+v1_public-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2-devel %{_description} This package contains library source intended for building other packages which use the "v2" feature of the "%{crate}" crate. %files -n %{name}+v2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_local-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_local-devel %{_description} This package contains library source intended for building other packages which use the "v2_local" feature of the "%{crate}" crate. %files -n %{name}+v2_local-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v2_public-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v2_public-devel %{_description} This package contains library source intended for building other packages which use the "v2_public" feature of the "%{crate}" crate. %files -n %{name}+v2_public-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v3-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v3-devel %{_description} This package contains library source intended for building other packages which use the "v3" feature of the "%{crate}" crate. %files -n %{name}+v3-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v3_local-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v3_local-devel %{_description} This package contains library source intended for building other packages which use the "v3_local" feature of the "%{crate}" crate. %files -n %{name}+v3_local-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v3_public-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v3_public-devel %{_description} This package contains library source intended for building other packages which use the "v3_public" feature of the "%{crate}" crate. %files -n %{name}+v3_public-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v4-devel %{_description} This package contains library source intended for building other packages which use the "v4" feature of the "%{crate}" crate. %files -n %{name}+v4-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_local-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v4_local-devel %{_description} This package contains library source intended for building other packages which use the "v4_local" feature of the "%{crate}" crate. %files -n %{name}+v4_local-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+v4_public-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+v4_public-devel %{_description} This package contains library source intended for building other packages which use the "v4_public" feature of the "%{crate}" crate. %files -n %{name}+v4_public-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Remove examples rm -r examples # Fix line-ending, remove in next version # https://github.com/rrrodzilla/rusty_paseto/pull/41 find . -type f -name '*.rs' -exec sed -i 's/\r$//' {} + %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog