Group :: Desenvolvimento/Outros
RPM: rust-cargo-c
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: rust-cargo-c
Version: 0.9.24
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: crates.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
%ifdef bootstrap
cargo vendor
tar cf %SOURCE1 vendor
%else
tar xf %SOURCE1
%endif
%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
…
Todas as alterações você pod ver aqui
Version: 0.9.24
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: crates.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
%ifdef bootstrap
cargo vendor
tar cf %SOURCE1 vendor
%else
tar xf %SOURCE1
%endif
%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
…
Todas as alterações você pod ver aqui