diff options
-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 |