From 1d11ea2b04767c6c8b7d9a4d4feca8d544afb35d Mon Sep 17 00:00:00 2001 From: zhaoyun1215 <58766762@qq.com> Date: Tue, 30 Jul 2024 11:49:02 +0800 Subject: [PATCH 1/3] init --- README.en.md | 36 ----------------------------- README.md | 39 -------------------------------- rust-choose.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 2 ++ 4 files changed, 61 insertions(+), 75 deletions(-) delete mode 100644 README.en.md delete mode 100644 README.md create mode 100644 rust-choose.spec create mode 100644 sources diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 358454f..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# rust-choose - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 66967ca..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# rust-choose - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/rust-choose.spec b/rust-choose.spec new file mode 100644 index 0000000..7c6e985 --- /dev/null +++ b/rust-choose.spec @@ -0,0 +1,59 @@ +# Generated by rust2rpm 26 +%bcond_without check + +%global crate choose + +Name: rust-choose +Version: 1.3.4 +Release: 1%{?dist} +Summary: Human-friendly and fast alternative to cut and (sometimes) awk + +License: GPL-3.0-or-later +URL: https://crates.io/crates/choose +Source: %{crates_source} +Source1: %{name}-%{version}-vendor.tar.bz2 + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 23 + +%global _description %{expand: +A human-friendly and fast alternative to cut and (sometimes) awk.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +# FIXME: paste output of %%cargo_license_summary here +License: # FIXME +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc contributing.md +%doc readme.md +%{_bindir}/choose + +%prep +%autosetup -n %{crate}-%{version} -p1 -a1 +%cargo_prep -v ./vendor + +%build +%cargo_build +%{cargo_license_summary} +%{cargo_license} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jul 29 2024 xiaoyunzhao - 1.3.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f11412e --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (rust-choose-1.3.4-vendor.tar.bz2) = 8c87e4706d50f23c9d30e9c69678ed903f1144ae045a9e6a2f400e8f99539a27d878e46e2eed6ebf2f09fe7d73fdff889e0cdd477a0af30db4ef3f234e67b06d +SHA512 (choose-1.3.4.crate) = acb6157a71f321fee82c561d57c263adee723f97219d9fd7940b17e819fa1802dfbf4d2b055da0bf9d5bc337629b134c21483e10c1d96d7f4a4447cce02e937f -- Gitee From a72504651c2cf379522d32132b80ec88c37897f1 Mon Sep 17 00:00:00 2001 From: zhaoyun1215 <58766762@qq.com> Date: Tue, 30 Jul 2024 15:10:27 +0800 Subject: [PATCH 2/3] init --- rust-choose.spec | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/rust-choose.spec b/rust-choose.spec index 7c6e985..8813449 100644 --- a/rust-choose.spec +++ b/rust-choose.spec @@ -1,12 +1,11 @@ -# Generated by rust2rpm 26 %bcond_without check %global crate choose +Summary: Human-friendly and fast alternative to cut and (sometimes) awk Name: rust-choose Version: 1.3.4 Release: 1%{?dist} -Summary: Human-friendly and fast alternative to cut and (sometimes) awk License: GPL-3.0-or-later URL: https://crates.io/crates/choose @@ -17,26 +16,16 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 23 -%global _description %{expand: -A human-friendly and fast alternative to cut and (sometimes) awk.} +%global _description %{expand: A human-friendly and fast alternative to cut and (sometimes) awk.} %description %{_description} -%package -n %{crate} +%package -n %{crate} Summary: %{summary} -# FIXME: paste output of %%cargo_license_summary here -License: # FIXME -# LICENSE.dependencies contains a full license breakdown +License: MIT AND MPL-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (CC0-1.0 OR MIT-0 OR Apache-2.0) %description -n %{crate} %{_description} -%files -n %{crate} -%license LICENSE -%license LICENSE.dependencies -%doc contributing.md -%doc readme.md -%{_bindir}/choose - %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v ./vendor @@ -54,6 +43,13 @@ License: # FIXME %cargo_test %endif +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc contributing.md +%doc readme.md +%{_bindir}/choose + %changelog * Mon Jul 29 2024 xiaoyunzhao - 1.3.4-1 -- Initial package +- Initial build -- Gitee From 6ba39f73ee794a88f1986add2d4432f03404d988 Mon Sep 17 00:00:00 2001 From: zhaoyun1215 <58766762@qq.com> Date: Tue, 30 Jul 2024 15:17:21 +0800 Subject: [PATCH 3/3] init --- rust-choose.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust-choose.spec b/rust-choose.spec index 8813449..04d77b0 100644 --- a/rust-choose.spec +++ b/rust-choose.spec @@ -16,7 +16,8 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 23 -%global _description %{expand: A human-friendly and fast alternative to cut and (sometimes) awk.} +%global _description %{expand: +A human-friendly and fast alternative to cut and (sometimes) awk.} %description %{_description} -- Gitee