Sync from SUSE:SLFO:Main cargo-packaging revision 86b265e19cfcc00688c70f9f3a5b782b

This commit is contained in:
Adrian Schröter 2024-05-03 11:31:05 +02:00
commit 93fc9923f7
8 changed files with 208 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

28
_service Normal file
View File

@ -0,0 +1,28 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/Firstyear/cargo-packaging.git</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="scm">git</param>
<param name="revision">main</param>
<param name="match-tag">v*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">william.brown@suse.com</param>
</service>
<service mode="disabled" name="tar" />
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">cargo-packaging</param>
<param name="compression">xz</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">cargo-packaging</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Firstyear/cargo-packaging.git</param>
<param name="changesrevision">423b9973eabe8c34ba161144d04312439a006b80</param></service></servicedata>

BIN
cargo-packaging-1.2.0+3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

73
cargo-packaging.changes Normal file
View File

@ -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 <william.brown@suse.com>
- 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 <william.brown@suse.com>
- 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 <william.brown@suse.com>
- Update spec based on reviewer feedback
-------------------------------------------------------------------
Tue Sep 21 02:11:48 UTC 2021 - William Brown <william.brown@suse.com>
- Initial commit of cargo-packaging

69
cargo-packaging.spec Normal file
View File

@ -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

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

BIN
vendor.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.