From 456556a671b6c4907a8714d4ffa9d778b4ad9773 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sun, 23 Feb 2025 11:10:07 +0000 Subject: automatic import of fc --- fc.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 fc.spec (limited to 'fc.spec') diff --git a/fc.spec b/fc.spec new file mode 100644 index 0000000..c47a67d --- /dev/null +++ b/fc.spec @@ -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 -- cgit v1.2.3