package created using the webbuild interface [release 0.9.14-1mamba;Sat Nov 26 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 21:08:00 +01:00
parent e67de47c1c
commit a28626da99
4 changed files with 1501 additions and 0 deletions

1439
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,4 @@
# cargo-c
A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries.

3
cargo-c-autoupdate Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
VERSION=$1
curl https://github.com/lu-zero/cargo-c/releases/download/v${VERSION}/Cargo.lock -o Cargo-${VERSION}.lock

57
cargo-c.spec Normal file
View File

@ -0,0 +1,57 @@
Name: cargo-c
Version: 0.9.14
Release: 1mamba
Summary: A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/lu-zero/cargo-c/
Source: https://github.com/lu-zero/cargo-c.git/v%{version}/cargo-c-%{version}.tar.bz2
Source1: https://github.com/lu-zero/cargo-c/releases/download/v%{version}/Cargo.lock
Source2: cargo-c-autoupdate
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libgit2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
%description
A cargo subcommand to build and install C-ABI compatibile dynamic and static libraries.
%debug_package
%prep
%setup -q
# Cargo.lock
cp %{SOURCE1} .
cargo fetch --locked --manifest-path="Cargo.toml"
%build
export CFLAGS+=' -ffat-lto-objects'
export RUSTUP_TOOLCHAIN='stable'
export CARGO_TARGET_DIR="target"
cargo build --release --frozen --all-features --manifest-path="Cargo.toml"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
find target/release -maxdepth 1 -type f -executable -exec install -D -m755 -t %{buildroot}%{_bindir} {} +
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/cargo-capi
%{_bindir}/cargo-cbuild
%{_bindir}/cargo-cinstall
%{_bindir}/cargo-ctest
%doc LICENSE
%changelog
* Sat Nov 26 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.14-1mamba
- package created using the webbuild interface