Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
196be174ff
!12 升级rust-packaging版本至21
From: @duyiwei7w 
Reviewed-by: @jingxiaolu 
Signed-off-by: @jingxiaolu
2022-11-09 09:23:46 +00:00
duyiwei
459358ef2a upgrade version to 21 2022-11-08 09:42:55 +08:00
openeuler-ci-bot
09140f1b81
!7 openEuler-22.03-LTS-Next Packages upgrade
Merge pull request !7 from xu_ping/openEuler-22.03-LTS-Next
2022-01-29 02:56:01 +00:00
cherry530
26305e818c remove unuse files 2022-01-25 16:35:03 +08:00
openeuler-ci-bot
1af619b6eb !5 fix install fail issue because nothing provides rust-srpm-macros = 15
From: @tong_1001
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-03-18 14:50:55 +08:00
sxt1001
4ebd055764 fix install fail issue because nothing provides rust-srpm-macros = 15 2021-03-18 10:34:49 +08:00
openeuler-ci-bot
1f98e035bc !4 Upgrade to version 15
From: @tong_1001
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2021-02-02 21:25:42 +08:00
sxt1001
13966b3cb7 Upgrade to version 15 2021-02-02 20:16:02 +08:00
openeuler-ci-bot
a532b10c84 !3 add yaml file
Merge pull request !3 from sigui/master
2020-05-19 15:28:29 +08:00
si-gui
61450c7c9a add yaml file 2020-05-12 18:06:32 +08:00
5 changed files with 23 additions and 7 deletions

View File

@ -12,7 +12,7 @@ Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/data/macros.cargo b/data/macros.cargo
index 1182850..5066587 100644
index 9bafc86..d13b7fa 100644
--- a/data/macros.cargo
+++ b/data/macros.cargo
@@ -89,7 +89,8 @@ if %__cargo_is_lib; then \
@ -22,9 +22,9 @@ index 1182850..5066587 100644
- %{__awk} -i inplace -v INPLACE_SUFFIX=.deps '/^\\\[((.+\\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\\[/{f=0}; !f' Cargo.toml \
+ mv Cargo.toml{,.deps} \
+ awk '/^\\\[((.+\\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\\[/{f=0}; !f' Cargo.toml.deps > Cargo.toml \
%{__cargo} package -l | xargs -d '\\\n' %{__cp} --parents -a -t $REG_DIR \
%{__cargo} package -l | grep -w -E -v 'Cargo.(lock|toml.orig)' | xargs -d '\\\n' %{__cp} --parents -a -t $REG_DIR \
%{__mv} Cargo.toml{.deps,} \
%{__cp} -a Cargo.toml $REG_DIR/Cargo.toml \
--
2.22.0
1.8.3.1

View File

@ -3,12 +3,12 @@
%global debug_package %{nil}
Name: rust-packaging
Version: 10
Version: 21
Release: 1
Summary: RPM macros for building Rust packages on various architectures
License: MIT
URL: https://pagure.io/fedora-rust/rust2rpm
Source: https://releases.pagure.org/fedora-rust/rust2rpm/rust2rpm-%{version}.tar.xz
Source: https://pagure.io/fedora-rust/rust2rpm/archive/v%{version}/rust2rpm-v%{version}.tar.gz
Patch0001: 0001-macros-Do-not-use-awk-s-inplace-feature.patch
@ -18,7 +18,7 @@ BuildRequires: python3-pytest cargo python3-semantic_version
# gawk is needed for stripping dev-deps in macro
Requires: gawk python3-rust2rpm = %{version}-%{release}
Requires: rust-srpm-macros = %{version} rust cargo
Requires: rust-srpm-macros rust cargo
%description
The package provides macros for building projects in Rust
@ -36,7 +36,7 @@ Provides: rust2rpm = %{version}-%{release}
Convert Rust packages to RPM.
%prep
%autosetup -n rust2rpm-%{version} -p1
%autosetup -n rust2rpm-v%{version} -p1
%build
%py3_build
@ -65,5 +65,17 @@ py.test-%{python3_version} -vv test.py
%{python3_sitelib}/rust2rpm-*.egg-info/
%changelog
* Tue Nov 08 2022 duyiwei <duyiwei@kylinos.cn> - 21-1
- upgrade version to 21
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 20-1
- Upgrade to version 20
* Thu Mar 18 2021 shixuantong <shixuantong@huawei.com> - 15-2
- fix install fail issue because nothing provides rust-srpm-macros = 15
* Tue Feb 02 2021 shixuantong <shixuantong@huawei.com> - 15-1
- Upgrade to version 15
* Wed Mar 4 2020 hexiujun <hexiujun1@huawei.com> - 10-1
- Package init

4
rust-packaging.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rust-lang-deprecated/rust-packaging
tag_prefix: ^v
seperator: .

Binary file not shown.

BIN
rust2rpm-v21.tar.gz Normal file

Binary file not shown.