Accepting request 750313 from home:gladiac
This provides cargo-cbuild and cargo-cinstall for building and installing C libraries of Rust software. Used by https://build.opensuse.org/package/show/home:gladiac/rav1e OBS-URL: https://build.opensuse.org/request/show/750313 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-c?expand=0&rev=1
This commit is contained in:
commit
6d228b87af
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
_service
Normal file
4
_service
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<services>
|
||||||
|
<service name="cargo_vendor" mode="disabled">
|
||||||
|
</service>
|
||||||
|
</services>
|
3
cargo-c-0.3.1.tar.gz
Normal file
3
cargo-c-0.3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a8e662539218728372f6b8fbbbd72ff2092ecb71fb4ffef7e6a3969a0734e58f
|
||||||
|
size 10818
|
4
cargo-c.changes
Normal file
4
cargo-c.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 20 18:36:44 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
|
||||||
|
|
||||||
|
- Initial package version 0.3.1
|
69
cargo-c.spec
Normal file
69
cargo-c.spec
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
#
|
||||||
|
# spec file for package rust-cargo-c
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 Andreas Schneider <asn@cryptomilk.org>.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: cargo-c
|
||||||
|
Version: 0.3.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Helper to build and install c-like libraries from Rust
|
||||||
|
Group: Development/Languages/Rust
|
||||||
|
|
||||||
|
# Upstream license specification: MIT
|
||||||
|
License: MIT
|
||||||
|
URL: https://crates.io/crates/cargo-c
|
||||||
|
#
|
||||||
|
Source0: https://github.com/lu-zero/cargo-c/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.xz
|
||||||
|
#
|
||||||
|
BuildRequires: rust-packaging
|
||||||
|
|
||||||
|
%description
|
||||||
|
The is a cargo applet to build and install C-ABI compatibile dynamic and static
|
||||||
|
libraries from Rust.
|
||||||
|
|
||||||
|
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
|
||||||
|
%autosetup -a1 -p1
|
||||||
|
|
||||||
|
install -d -m 0755 .cargo
|
||||||
|
cat >.cargo/config <<EOF
|
||||||
|
[source.crates-io]
|
||||||
|
registry = 'https://github.com/rust-lang/crates.io-index'
|
||||||
|
replace-with = 'vendored-sources'
|
||||||
|
[source.vendored-sources]
|
||||||
|
directory = './vendor'
|
||||||
|
[install]
|
||||||
|
root = '%{buildroot}%{_prefix}'
|
||||||
|
[term]
|
||||||
|
verbose = true
|
||||||
|
EOF
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cargo_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cargo_install
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/cargo-cinstall
|
||||||
|
%{_bindir}/cargo-cbuild
|
||||||
|
|
||||||
|
%changelog
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:27db8545ba7f31d5c524705d5977f42656abb8ee9ee55b37ded9ea5004d821c5
|
||||||
|
size 6357396
|
Loading…
Reference in New Issue
Block a user