diff options
author | CoprDistGit <infra@openeuler.org> | 2025-01-13 03:27:24 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-01-13 03:27:24 +0000 |
commit | 67e7f0f2f7602c50281fff79d8be790a10c727df (patch) | |
tree | c1ee7fe231fe87457015087b1fd90d5971b826d5 | |
parent | d57d1498b5540a9f0545830c226f54b03ff9a0a1 (diff) |
automatic import of file-clas
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | file-clas.spec | 51 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 53 insertions, 0 deletions
@@ -0,0 +1 @@ +/file-clas-1.0.0.tar.gz diff --git a/file-clas.spec b/file-clas.spec new file mode 100644 index 0000000..2e8a2ff --- /dev/null +++ b/file-clas.spec @@ -0,0 +1,51 @@ +Name: file-clas +Version: 1.0.0 +Release: 1 +Summary: Cangjie EUR +Summary(zh_CN): 仓颉EUR + +License: Mulan +URL: https://atomgit.com/openeuler123/lanshitou +Source0: file-clas-1.0.0.tar.gz + +BuildRequires: wget +BuildRequires: dnf-plugins-core +BuildRequires: binutils +BuildRequires: glibc-devel +BuildRequires: gcc-c++ +BuildRequires: openssl + +%description +Cangjie EUR + +%prep +%autosetup + +%build +if [ ! -f Cangjie.tar.gz ]; then + %ifarch x86_64 + # 下载仓颉工具链x86_64版本 + wget "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_x64.tar.gz&objectKey=6719f1eb3af6947e3c6af327" -O Cangjie.tar.gz + %endif + + %ifarch aarch64 + # 下载仓颉工具链aarch64版本 + wget "https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.13-linux_aarch64.tar.gz&objectKey=6719f1ec3af6947e3c6af328" -O Cangjie.tar.gz + %endif +fi + +tar zxvf Cangjie.tar.gz +source ./cangjie/envsetup.sh + +%install +cjpm install --root %{buildroot} + + +%files +%doc README +%{_bindir}/main +%{_datarootdir}/* + +%changelog +* Sun Jan 12 2025 lishuying <sjbei2022@163.com> +- Cangjie EUR demo @@ -0,0 +1 @@ +0ef06af3837bd47952e5d19a0a4c2f58 file-clas-1.0.0.tar.gz |