# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate pgrx-catalog Name: rust-pgrx-catalog Version: 0.3.1 Release: 2%{?dist} Summary: Out-of-tree version of pgrx catalog safe bindings License: MIT URL: https://crates.io/crates/pgrx-catalog Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: postgresql18-server-devel BuildRequires: postgresql18-private-devel BuildRequires: rustfmt %global _description %{expand: An out-of-tree version of pgrx catalog safe bindings.} %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 # FIXME: no license files detected %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}+pg18-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pg18-devel %{_description} This package contains library source intended for building other packages which use the "pg18" feature of the "%{crate}" crate. %files -n %{name}+pg18-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep mkdir .pgrx echo '[configs]' >> .pgrx/config.toml echo 'pg18 = "/usr/bin/pg_config"' >> .pgrx/config.toml %generate_buildrequires %cargo_generate_buildrequires -f pg18 %build export PGRX_HOME=$(pwd)/.pgrx %cargo_build -f pg18 %install %cargo_install -f pg18 %if %{with check} %check %cargo_test -f pg18 %endif %changelog * Thu Oct 23 2025 Mat Booth - 0.3.1-2 - Rebuild against pgrx 0.16.1 - Add missing BR on rustfmt * Wed Oct 22 2025 Mat Booth - 0.3.1-1 - Initial package