blob: f91425d96d822b3813cccd0a6b701ad2b86d2bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
%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
Source: %{url}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: wget
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
|