summaryrefslogtreecommitdiff
path: root/lanshitou.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-12 14:29:48 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-12 14:29:48 +0000
commitb40ac156c82d3e72f67d9940d4c9cb738ec88b0d (patch)
treedbae7a51d96e5fa0cab6f70decaa50e0c44c2ab2 /lanshitou.spec
parenta7695e46148b3075d5df16d6e528bc36f10405d3 (diff)
automatic import of lanshitou
Diffstat (limited to 'lanshitou.spec')
-rw-r--r--lanshitou.spec54
1 files changed, 54 insertions, 0 deletions
diff --git a/lanshitou.spec b/lanshitou.spec
new file mode 100644
index 0000000..d0d9271
--- /dev/null
+++ b/lanshitou.spec
@@ -0,0 +1,54 @@
+Name: lanshitou
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: Cangjie EUR demo
+Summary(zh_CN): 仓颉EUR示例
+Group: Development/Tools
+License: Mulan
+URL: https://atomgit.com/openeuler123/%{name}
+Source: https://atomgit.com/openeuler123/%{name}/archive/refs/tags/v%{version}.tar.gz
+
+BuildRequires: wget
+BuildRequires: dnf-plugins-core
+BuildRequires: binutils
+BuildRequires: glibc-devel
+BuildRequires: gcc-c++
+BuildRequires: openssl
+
+%description
+A demo for Cangjie and Eur.
+
+%prep
+%autosetup -n %{name}-%{version}
+
+%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
+
+%install
+rm -rf %{buildroot}
+source ./cangjie/envsetup.sh
+cjpm install --root %{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+/bin/lanshitou
+%exclude /.packages.toml
+
+%changelog
+* Sun Jan 12 2025 lishuying <sjbei2022@163.com>
+- Cangjie EUR demo