commit 0fe13076887c670e791b871420981289849b0e5b Author: Adrian Schröter Date: Mon Oct 14 14:01:56 2024 +0200 Sync from SUSE:ALP:Source:Standard:1.0 cargo-packaging revision 86b265e19cfcc00688c70f9f3a5b782b diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/_service b/_service new file mode 100644 index 0000000..a133b7a --- /dev/null +++ b/_service @@ -0,0 +1,28 @@ + + + https://github.com/Firstyear/cargo-packaging.git + @PARENT_TAG@+@TAG_OFFSET@ + git + main + v* + v(\d+\.\d+\.\d+) + \1 + enable + william.brown@suse.com + + + + *.tar + xz + + + + cargo-packaging + xz + true + + + cargo-packaging + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..4788542 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/Firstyear/cargo-packaging.git + 423b9973eabe8c34ba161144d04312439a006b80 \ No newline at end of file diff --git a/cargo-packaging-1.2.0+3.tar.xz b/cargo-packaging-1.2.0+3.tar.xz new file mode 100644 index 0000000..d85b2c6 --- /dev/null +++ b/cargo-packaging-1.2.0+3.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41757415fc137f1631c0221c49b6aa35ad57623fea629e60f0afaa9fe231d5a7 +size 9052 diff --git a/cargo-packaging.changes b/cargo-packaging.changes new file mode 100644 index 0000000..ce4ea70 --- /dev/null +++ b/cargo-packaging.changes @@ -0,0 +1,73 @@ +------------------------------------------------------------------- +Mon Jun 19 23:37:09 UTC 2023 - william.brown@suse.com + +- Update to version 1.2.0+3: + * rename variable for bitwarden + +------------------------------------------------------------------- +Tue Jun 13 00:09:47 UTC 2023 - william.brown@suse.com + +- bsc#1212226 - add rust-packaging compat +- Update to version 1.2.0+2: + * Default flags + * Add buildflags + +------------------------------------------------------------------- +Fri Mar 3 00:48:59 UTC 2023 - William Brown + +- Update vendored dependencies +- Add supporting sources for cargo metadata extraction +* cargo-packaging-1.2.0+0.tar.xz +* cargo_config +* vendor.tar.xz + +------------------------------------------------------------------- +Sat Feb 18 02:02:31 UTC 2023 - william.brown@suse.com + +- Update to version 1.2.0+0: + * marcos.cargo: add path parameter in cargo_install (#3) + +------------------------------------------------------------------- +Thu Nov 03 22:47:05 UTC 2022 - william.brown@suse.com + +- Update to version 1.1.0 + * Improve support for bundle metadata in rpm provides + +------------------------------------------------------------------- +Mon May 23 02:15:30 UTC 2022 - william.brown@suse.com + +- Update to version 1.0.0~git8.6919af0: + * Disable incremental builds as they don't work with sccache and don't help in obs + +------------------------------------------------------------------- +Thu Apr 21 22:31:11 UTC 2022 - William Brown + +- Add depends on zstd to allow zst compression in rust projects + +------------------------------------------------------------------- +Fri Mar 18 01:35:59 UTC 2022 - william.brown@suse.com + +- Update to version 1.0.0~git7.63c3500: + * Improve macros when libgit is a dependency + +------------------------------------------------------------------- +Wed Oct 06 00:06:42 UTC 2021 - william.brown@suse.com + +- Update to version 1.0.0~git6.d878e38: + * Remove incorrect macro definition + +------------------------------------------------------------------- +Tue Sep 28 06:12:00 UTC 2021 - william.brown@suse.com + +- Update to version 1.0.0~git5.05b6425: + * Add rust arches macro and update t1 arches + +------------------------------------------------------------------- +Wed Sep 22 00:53:22 UTC 2021 - William Brown + +- Update spec based on reviewer feedback + +------------------------------------------------------------------- +Tue Sep 21 02:11:48 UTC 2021 - William Brown + +- Initial commit of cargo-packaging diff --git a/cargo-packaging.spec b/cargo-packaging.spec new file mode 100644 index 0000000..3ab7cbc --- /dev/null +++ b/cargo-packaging.spec @@ -0,0 +1,69 @@ +# +# spec file for package cargo-packaging +# +# Copyright (c) 2023 SUSE LLC +# +# 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-packaging +Version: 1.2.0+3 +Release: 0 +Summary: Macros and tools to assist with cargo and rust packaging +License: MPL-2.0 +Group: Development/Languages/Rust +URL: https://github.com/Firstyear/cargo-packaging +Source0: %{name}-%{version}.tar.xz +Source1: vendor.tar.xz +Source2: cargo_config +Requires: cargo +Requires: cargo-auditable +Requires: zstd +BuildRequires: cargo +BuildRequires: zstd + +Conflicts: rust-packaging + +%description +A set of macros and tools to assist with cargo and rust packaging, written in a manner +that follows upstream rust's best practices. + +%prep +%autosetup -a1 +mkdir .cargo +cp %{SOURCE2} .cargo/config + +%build +cargo build --offline --release + +%install +install -D -p -m 0644 -t %{buildroot}%{_fileattrsdir} %{_builddir}/%{name}-%{version}/rust.attr +install -D -p -m 0644 -t %{buildroot}%{_rpmconfigdir}/macros.d %{_builddir}/%{name}-%{version}/macros.cargo + +install -D -p -m 0755 -t %{buildroot}%{_rpmconfigdir} %{_builddir}/%{name}-%{version}/target/release/rust-rpm-prov + +install -D -p -m 0755 -t %{buildroot}%{_sysconfdir}/zsh_completion.d %{_builddir}/%{name}-%{version}/target/release/build/completions/_rust-rpm-prov +install -D -p -m 0755 -t %{buildroot}%{_sysconfdir}/bash_completion.d %{_builddir}/%{name}-%{version}/target/release/build/completions/rust-rpm-prov.bash + +%files + +%{_fileattrsdir}/rust.attr +%{_rpmconfigdir}/macros.d/macros.cargo +%{_rpmconfigdir}/rust-rpm-prov + +%dir %{_sysconfdir}/zsh_completion.d +%dir %{_sysconfdir}/bash_completion.d +%{_sysconfdir}/zsh_completion.d/* +%{_sysconfdir}/bash_completion.d/* + +%changelog diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..a476f35 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..a9afa63 --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4efb668aca1e946a73d086135a9ea0caa1d955c4399f65d5dbdb95eb70c8384c +size 6661716