commit 6523957e9f718943780cbbc6b2887db7d8e23ee0067112589ad14d03560c9a2f Author: William Brown Date: Fri Jul 19 02:16:57 2024 +0000 - Depend on provides of rust to allow older compiler version usage OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-packaging?expand=0&rev=29 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..9789bfe --- /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..c7c5092 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/Firstyear/cargo-packaging.git + 158d4099bf111d05bd8a0967ce4976570b6716da \ No newline at end of file diff --git a/cargo-packaging-1.2.0+5.tar.xz b/cargo-packaging-1.2.0+5.tar.xz new file mode 100644 index 0000000..c917d7f --- /dev/null +++ b/cargo-packaging-1.2.0+5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:436b429596210a62125724d07f29b3f89ae511ce6adc684ac5af5996f09f9b60 +size 9060 diff --git a/cargo-packaging.changes b/cargo-packaging.changes new file mode 100644 index 0000000..fab9406 --- /dev/null +++ b/cargo-packaging.changes @@ -0,0 +1,96 @@ +------------------------------------------------------------------- +Fri Jul 19 02:01:33 UTC 2024 - William Brown + +- Depend on provides of rust to allow older compiler version usage + +------------------------------------------------------------------- +Fri Apr 5 00:50:37 UTC 2024 - William Brown + +- Remove cargo_config that is now part of vendor.tar + +------------------------------------------------------------------- +Thu Apr 04 00:31:58 UTC 2024 - william.brown@suse.com + +- bsc#1222175 - prevent stripping debug info +- Update to version 1.2.0+5: + * Prevent stripping debuginfo in release by default (#7) + +------------------------------------------------------------------- +Mon Aug 14 04:47:50 UTC 2023 - william.brown@suse.com + +- Update to version 1.2.0+4: + * macros.cargo: Drop bashisms (#4) + +------------------------------------------------------------------- +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..6531cca --- /dev/null +++ b/cargo-packaging.spec @@ -0,0 +1,66 @@ +# +# spec file for package cargo-packaging +# +# Copyright (c) 2024 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+5 +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 +Requires: cargo-auditable +Requires: rust+cargo +Requires: zstd +BuildRequires: rust+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 + +%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/vendor.tar.xz b/vendor.tar.xz new file mode 100644 index 0000000..c51300a --- /dev/null +++ b/vendor.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd5a9f53c42ca81658216af705ec17792de2b6aac2ad90ea9e0ef7fae01e95dc +size 7399280