Accepting request 1034398 from devel:languages:rust
Relies on cargo-auditable, this adds the ability to extract metadata into rpm provides from elf metadata of vendored deps - Update to version 1.1.0 * Improve support for bundle metadata in rpm provides OBS-URL: https://build.opensuse.org/request/show/1034398 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cargo-packaging?expand=0&rev=7
This commit is contained in:
commit
bf119e33de
10
_service
10
_service
@ -1,7 +1,7 @@
|
||||
<services>
|
||||
<service mode="disabled" name="obs_scm">
|
||||
<param name="url">https://github.com/Firstyear/cargo-packaging.git</param>
|
||||
<param name="versionformat">@PARENT_TAG@~git@TAG_OFFSET@.%h</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>
|
||||
@ -16,5 +16,13 @@
|
||||
<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
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/Firstyear/cargo-packaging.git</param>
|
||||
<param name="changesrevision">9701922ebd9a35ce598d7da5408e7fe67b30c62e</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5bf49a814a4e4989f3c4055f481555dff3792859000f660376fe9528890afab0
|
||||
size 724
|
3
cargo-packaging-1.1.0+0.tar.xz
Normal file
3
cargo-packaging-1.1.0+0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3d98a45bb01d384e812768f793ffc30b40f86b9ab222462b2f7086495a374277
|
||||
size 9020
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
@ -17,32 +17,53 @@
|
||||
|
||||
|
||||
Name: cargo-packaging
|
||||
Version: 1.0.0~git8.6919af0
|
||||
Version: 1.1.0+0
|
||||
Release: 0
|
||||
BuildArch: noarch
|
||||
Summary: Some macros to assist with cargo and rust packaging
|
||||
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 to assist with cargo and rust packaging, written in a manner
|
||||
that follows rust's best practices.
|
||||
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
|
||||
%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
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
3
vendor.tar.xz
Normal file
3
vendor.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f34cf204e357eb37bb7a28d308063d29e85aaa7d247750d180b1f5ecf35c30b1
|
||||
size 6490776
|
Loading…
Reference in New Issue
Block a user