commit 6d228b87af58c0119d848266a9636d57fe5f6cf8178d50c704fc9fed2a7d7ff2 Author: Luke Jones Date: Fri Nov 22 18:46:19 2019 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..6cd96d3 --- /dev/null +++ b/_service @@ -0,0 +1,4 @@ + + + + diff --git a/cargo-c-0.3.1.tar.gz b/cargo-c-0.3.1.tar.gz new file mode 100644 index 0000000..802caca --- /dev/null +++ b/cargo-c-0.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8e662539218728372f6b8fbbbd72ff2092ecb71fb4ffef7e6a3969a0734e58f +size 10818 diff --git a/cargo-c.changes b/cargo-c.changes new file mode 100644 index 0000000..056cd21 --- /dev/null +++ b/cargo-c.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Nov 20 18:36:44 UTC 2019 - Andreas Schneider + +- Initial package version 0.3.1 diff --git a/cargo-c.spec b/cargo-c.spec new file mode 100644 index 0000000..955f65a --- /dev/null +++ b/cargo-c.spec @@ -0,0 +1,69 @@ +# +# spec file for package rust-cargo-c +# +# Copyright (c) 2019 Andreas Schneider . +# +# 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 <