1
0

- Update to version 1.2.0+7:

* Correct incremental build flags (#10)
  * Doc custom build flags (#9)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/cargo-packaging?expand=0&rev=32
This commit is contained in:
William Brown 2025-01-06 23:40:41 +00:00 committed by Git OBS Bridge
commit 194191b599
9 changed files with 239 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

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">559369b2eb75c090118195ea86cc16fc1781ed79</param></service></servicedata>

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

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3cf034bc0be82d6d8976d639e98066bb39be417aec3be08f7911d3d36781fded
size 9104

108
cargo-packaging.changes Normal file
View File

@ -0,0 +1,108 @@
-------------------------------------------------------------------
Mon Jan 06 23:31:24 UTC 2025 - william.brown@suse.com
- Update to version 1.2.0+7:
* Correct incremental build flags (#10)
* Doc custom build flags (#9)
-------------------------------------------------------------------
Fri Jul 19 03:18:37 UTC 2024 - William Brown <william.brown@suse.com>
- Resolve build failure when backported to 15-SP3
-------------------------------------------------------------------
Fri Jul 19 02:01:33 UTC 2024 - William Brown <william.brown@suse.com>
- Depend on provides of rust to allow older compiler version usage
-------------------------------------------------------------------
Fri Apr 5 00:50:37 UTC 2024 - William Brown <william.brown@suse.com>
- 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 <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

66
cargo-packaging.spec Normal file
View File

@ -0,0 +1,66 @@
#
# spec file for package cargo-packaging
#
# Copyright (c) 2025 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+7
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: 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

3
vendor.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4806a80aab9d699342baa127f65fc81bb0977dde58d256783781aed897fd65d4
size 12904044