## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 28 %bcond check 1 %global crate pyo3-introspection Name: rust-pyo3-introspection Version: 0.29.0 Release: %autorelease Summary: Introspect dynamic libraries built with PyO3 License: MIT OR Apache-2.0 URL: https://crates.io/crates/pyo3-introspection Source: %{crates_source} # * Man page hand-written for Fedora in groff_man(7) format based on main.rs Source10: pyo3-introspection.1 BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Introspect dynamic libraries built with PyO3 to get metadata about the exported Python types.} %description %{_description} %package -n %{crate} Summary: %{summary} # MIT # MIT OR Apache-2.0 # Unlicense OR MIT License: %{shrink: (MIT OR Apache-2.0) AND MIT AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %{_bindir}/pyo3-introspection %{_mandir}/man1/pyo3-introspection.1* %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-APACHE %license %{crate_instdir}/LICENSE-MIT %{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 %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE10}' %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Wed Jul 08 2026 Benjamin A. Beasley - 0.29.0-2 - Add a very simple man page * Wed Jul 08 2026 Benjamin A. Beasley - 0.29.0-1 - Initial package (close RHBZ#2498040) ## END: Generated by rpmautospec