Package rust-cargo-c: Specfile
Name: rust-cargo-c Version: 0.9.5 Release: alt1 Summary: Cargo applet to build and install C-ABI compatible dynamic and static libraries License: MIT Group: Development/Other Url: https://github.com/lu-zero/cargo-c Source0: %name-%version.tar Source1: cargo.config Source2: vendor.tar BuildRequires: rust-cargo /proc BuildRequires: libssl-devel %description %summary It produces and installs a correct pkg-config file, a static library and a dynamic library, and a C header to be used by any C (and C-compatible) software. %prep %setup -a2 install -pD %SOURCE1 cargo/config %build export CARGO_HOME=${PWD}/cargo cargo build --release %install mkdir -p %buildroot%_bindir install -pm0755 target/release/cargo-capi %buildroot%_bindir/ install -pm0755 target/release/cargo-cbuild %buildroot%_bindir/ install -pm0755 target/release/cargo-cinstall %buildroot%_bindir/ install -pm0755 target/release/cargo-ctest %buildroot%_bindir/ %files %doc LICENSE README.md %_bindir/cargo-c* %changelog * Fri Nov 26 2021 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.9.5-alt1 - initial |