diff options
author | CoprDistGit <infra@openeuler.org> | 2025-02-23 11:10:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-02-23 11:10:07 +0000 |
commit | 456556a671b6c4907a8714d4ffa9d778b4ad9773 (patch) | |
tree | 48767adc476caf1355f74d3d637361a66543ff5c | |
parent | 2f6c5c586ee9d935ec4ca752fa83a216bf3d5c1a (diff) |
automatic import of fc
-rw-r--r-- | fc.spec | 47 | ||||
-rw-r--r-- | sources | 0 |
2 files changed, 47 insertions, 0 deletions
@@ -0,0 +1,47 @@ +%global pkg_name fc +%global pkg_version 1.0.0 +%global pkg_summary a file classification app +%global pkg_description %{expand: +%{pkg_summary}} +%global _empty_manifest_terminate_build 0 + +Name: %{pkg_name} +Version: %{pkg_version} +Release: 1 +Summary: %{pkg_summary} + +License: MulanPSL2 +URL: https://atomgit.com/openeulercompetitioninfo/meiyoumingzi + +BuildRequires: gcc +BuildRequires: g++ + +%description +%{pkg_description} + +%prep +echo "install Cangjie" +%ifarch x86_64 + wget 'https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.18-linux_x64.tar.gz&objectKey=67a2c8976a75297d1cdc1d4c' -O Cangjie.tar.gz +%else + wget 'https://cangjie-lang.cn/v1/files/auth/downLoad?nsId=142267&fileName=Cangjie-0.53.18-linux_aarch64.tar.gz&objectKey=67a2c8606a75297d1cdc1d48' -O Cangjie.tar.gz +%endif +tar xvf Cangjie.tar.gz + +%build +source cangjie/envsetup.sh +cjc -v + +cjpm build + +%install + + +%files -n %{pkg_name} +%license LICENSE* +%doc README* + + +%changelog +* Sun Feb 23 2025 YunShu +- finish build |