# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate jiff Name: rust-jiff Version: 0.1.8 Release: %autorelease Summary: Date-time library that encourages you to jump into the pit of success License: Unlicense OR MIT URL: https://crates.io/crates/jiff Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: jiff-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * Allow chrono-tz 0.8.x; this is just for doctests anyway. # https://bugzilla.redhat.com/show_bug.cgi?id=2273630 # * Drop dev-dependency hifitime: not packaged, and only for doctests Patch: jiff-fix-metadata.diff # * Downstream-only: Omit doctests that require hifitime. It is not worth # packaging it solely for a couple of tiny examples. Patch10: 0001-Downstream-only-Omit-doctests-that-require-hifitime.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tomcli %global _description %{expand: A date-time library that encourages you to jump into the pit of success. This library is heavily inspired by the Temporal project.} %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}/COPYING %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/UNLICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/COMPARE.md %doc %{crate_instdir}/DESIGN.md %doc %{crate_instdir}/PLATFORM.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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-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}+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}+tz-system-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tz-system-devel %{_description} This package contains library source intended for building other packages which use the "tz-system" feature of the "%{crate}" crate. %files -n %{name}+tz-system-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tzdb-bundle-platform-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tzdb-bundle-platform-devel %{_description} This package contains library source intended for building other packages which use the "tzdb-bundle-platform" feature of the "%{crate}" crate. %files -n %{name}+tzdb-bundle-platform-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tzdb-zoneinfo-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tzdb-zoneinfo-devel %{_description} This package contains library source intended for building other packages which use the "tzdb-zoneinfo" feature of the "%{crate}" crate. %files -n %{name}+tzdb-zoneinfo-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Exclude test and debug scripts that would BuildRequire sh or bash tomcli set Cargo.toml append package.exclude test test-wasm 'scripts/*' %generate_buildrequires %cargo_generate_buildrequires -f serde %build %cargo_build -f serde %install %cargo_install -f serde %if %{with check} %check %cargo_test -f serde %endif %changelog %autochangelog