Name: libflux Version: 0.199.0 Release: 2%{?dist} Summary: Rust implementation of a Flux parser SourceLicense: WTFPL License: %{shrink: (MIT OR Apache-2.0) AND Unicode-3.0 AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-3-Clause AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) AND Zlib } URL: https://github.com/influxdata/flux Source: %{url}/archive/v%{version}.tar.gz#/influxdata-flux-v%{version}.tar.gz Source1: %{name}-vendor-v%{version}.tar.xz Patch0: https://github.com/dwrobel/influxdata-flux/commit/23d85903342281a80537da800909fb272dd8b37e.patch#/libflux_add_suport_for_building_using_cargo.patch BuildRequires: /usr/bin/git BuildRequires: cargo-rpm-macros > 24 BuildRequires: cargo-c > 0.9.21 %description Rust implementation of a Influxdata Flux parser. %package devel Summary: Development files for %{name}. Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel %{summary}. Provides ANSI C interface. %prep %autosetup -p2 -S git -n flux-%{version}/libflux -a1 %cargo_prep -v vendor %generate_buildrequires cp -a ../LICENSE . %build %cargo_vendor_manifest %cargo_cbuild %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_cinstall # cargo cinstall -profile rpm causes the following: # Copying /home/dw/projects/rpmbuild/BUILD/libflux-0.199.0-build/flux-0.199.0/libflux/flux/../include/influxdata/flux.h to /home/dw/projects/rpmbuild/BUILD/libflux-0.199.0-build/BUILDROOT/usr/include/influxdata/flux.h # Copying /home/dw/projects/rpmbuild/BUILD/libflux-0.199.0-build/flux-0.199.0/libflux/target/x86_64-unknown-linux-gnu/rpm/flux.h to /home/dw/projects/rpmbuild/BUILD/libflux-0.199.0-build/BUILDROOT/usr/include/influxdata/flux.h # so let's overwite it again install -p -m 0644 -D include/influxdata/flux.h %{buildroot}%{_includedir}/influxdata/flux.h rm -f %{buildroot}%{_libdir}/%{name}.a %check %cargo_test %files %license LICENSE LICENSE.dependencies %doc README.md %{_libdir}/*.so.* %files devel %{_includedir}/influxdata/flux.h %{_libdir}/%{name}.so %{_libdir}/pkgconfig/flux.pc %changelog * Wed Sep 02 2026 Damian Wrobel - 0.199.0-2 - Rebuilt for F45 * Tue Mar 17 2026 Damian Wrobel - 0.199.0-1 - Initial rpm packaging