# rust-kurbu5-kdb-derive.spec.in — Fedora RPM packaging for the kurbu5-kdb-derive Rust crate # # Source package: rust-kurbu5-kdb-derive # Source: crates.io release tarball (%%{crates_source}) # # Binary packages produced: # rust-kurbu5-kdb-derive-devel Rust proc-macro crate sources in the system Cargo registry # rust-kurbu5-kdb-derive-doc Changelog and README documentation # # Vendor tarball preparation (requires network, run once per release): # curl -LO https://static.crates.io/crates/kurbu5-kdb-derive/kurbu5-kdb-derive-%%{version}.crate # tar xf kurbu5-kdb-derive-%%{version}.crate # cd kurbu5-kdb-derive-%%{version} # cargo generate-lockfile # cargo vendor vendor > vendor-config.toml # tar czf rust-kurbu5-kdb-derive-%%{version}-vendor.tar.gz vendor/ vendor-config.toml Cargo.lock # # Build ordering: this package has no runtime dependency on any other kurbu5 # crate and can be built in Stage 1 (parallel with rust-kurbu5-sys and # rust-kurbu5-derive). rust-kurbu5-kdb-rs depends on it via the derive # feature. %global debug_package %{nil} %global crate kurbu5-kdb-derive %global snapdate 202604141848 %global snapcommit b7d20e6 Name: rust-%{crate} Version: 0.1.1 Release: 1%{?dist} Summary: Proc-macro derive for kurbu5-kdb-rs KDB driver plugins License: BSD-2-Clause URL: https://crates.io/crates/%{crate} Source0: %{crates_source} Source1: %{name}-%{version}-vendor.tar.gz BuildRequires: cargo-rpm-macros >= 25 %description Procedural derive macro for MIT Kerberos KDB (database) driver plugins implemented using the kurbu5-kdb-rs crate. Provides #[derive(KdbModule)] so that plugin authors can annotate their structs rather than implementing the KDB driver trait manually. This is a proc-macro crate: it carries no runtime dependencies and does not link against any system libraries. %package -n rust-%{crate}-devel Summary: Rust crate sources for kurbu5-kdb-derive (KDB driver derive macro) BuildArch: noarch Provides: crate(kurbu5-kdb-derive) = %{version} Provides: crate(kurbu5-kdb-derive/default) = %{version} # kurbu5-kdb-derive is a proc-macro crate: it carries no runtime dependencies. %description -n rust-%{crate}-devel Rust proc-macro crate sources for kurbu5-kdb-derive, installed into the system Cargo registry so that other Rust packages can use it as a build-time dependency. Provides the derive macro for MIT Kerberos KDB driver plugins written with the kurbu5-kdb-rs safe API. %package -n rust-%{crate}-doc Summary: Documentation for the kurbu5-kdb-derive Rust crate BuildArch: noarch %description -n rust-%{crate}-doc Changelog and README documentation for the kurbu5-kdb-derive proc-macro Rust crate. %prep %autosetup -n %{crate}-%{version} tar xf %{SOURCE1} %cargo_prep -v vendor %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %check # Run only library unit tests. Integration tests that use kurbu5-kdb-rs # as a dev-dependency are skipped to avoid a circular bootstrap dependency. %cargo_test -- --lib %files %license LICENSE %files -n rust-%{crate}-devel %license LICENSE %{cargo_registry}/%{crate}-%{version}/ %files -n rust-%{crate}-doc %license LICENSE %doc CHANGELOG.md README.md %changelog * Tue Apr 14 2026 Alexander Bokovoy - 0.1.1-1 - Update to version 0.1.1 * Tue Apr 14 2026 Alexander Bokovoy - 0.1.0-1 - Initial package for kurbu5-kdb-derive 0.1.0