## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 24 %bcond_without check %global debug_package %{nil} %global crate gvdb Name: rust-gvdb Version: 0.5.1 Release: %autorelease Summary: Read and write GLib GVariant database files License: MIT URL: https://crates.io/crates/gvdb Source: %{crates_source} # Add missing LICENSE.md file from upstream Source1: https://raw.githubusercontent.com/felinira/gvdb-rs/main/LICENSE.md # Manually created patch for downstream crate metadata changes # * Exclude test-data directory that has unclear licensing Patch: gvdb-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Read and write GLib GVariant database files.} %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}/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}+glib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+glib-devel %{_description} This package contains library source intended for building other packages which use the "glib" feature of the "%{crate}" crate. %files -n %{name}+glib-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gresource-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gresource-devel %{_description} This package contains library source intended for building other packages which use the "gresource" feature of the "%{crate}" crate. %files -n %{name}+gresource-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mmap-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mmap-devel %{_description} This package contains library source intended for building other packages which use the "mmap" feature of the "%{crate}" crate. %files -n %{name}+mmap-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %ifnarch s390x %check %cargo_test %endif %endif %changelog * Mon Aug 21 2023 Kalev Lember - 0.5.1-3 - Exclude test-data directory that has unclear licensing (rhbz#2230729) * Sun Aug 20 2023 Kalev Lember - 0.5.1-2 - Disable tests on s390x * Wed Aug 09 2023 Kalev Lember - 0.5.1-1 - Update to 0.5.1 * Tue May 16 2023 Kalev Lember - 0.4.1-1 - Initial Fedora packaging