commit e1ab28eef2cf2181bb50c5d7c01eaef0dd00daab4c07c47a93b4b22a8de529fd Author: Luke Jones Date: Wed Nov 14 01:23:39 2018 +0000 Accepting request 648806 from home:luke_nukem - Initial packaging OBS-URL: https://build.opensuse.org/request/show/648806 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust-cbindgen?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/cbindgen-0.6.7.tar.gz b/cbindgen-0.6.7.tar.gz new file mode 100644 index 0000000..5ca3347 --- /dev/null +++ b/cbindgen-0.6.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ceafbe2c6d8f7d473db39fb8458081fee2d15b7699ebd114396d5247fb029532 +size 89831 diff --git a/rust-cbindgen.changes b/rust-cbindgen.changes new file mode 100644 index 0000000..60ca127 --- /dev/null +++ b/rust-cbindgen.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Nov 14 00:34:16 UTC 2018 - Luke Jones + +- Initial packaging diff --git a/rust-cbindgen.spec b/rust-cbindgen.spec new file mode 100644 index 0000000..cb73c7b --- /dev/null +++ b/rust-cbindgen.spec @@ -0,0 +1,75 @@ +# +# spec file for package rust-cbindgen +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +# Use hardening ldflags. +%global crate_name cbindgen +%global rustflags -Clink-arg=-Wl,-z,relro,-z,now +Name: rust-%{crate_name} +Version: 0.6.7 +Release: 0 +Summary: A tool for generating C bindings from Rust code +License: MPL-2.0 +Group: Development/Languages/Rust +Url: https://crates.io/crates/cbindgen +Source0: %{crate_name}-%{version}.tar.gz +Source1: vendor.tar.xz +BuildRequires: cargo >= 1.30.0 +BuildRequires: rust >= 1.30.0 +BuildRequires: rust-std-static >= 1.30.0 + +%description +A tool for generating C bindings from Rust code. + +%prep +%setup -q -T -b 0 -n %{crate_name}-%{version} +%setup -q -D -T -a 1 -n %{crate_name}-%{version} +mkdir cargo-home +cat >cargo-home/config <