summaryrefslogtreecommitdiff
path: root/fc.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-23 13:44:13 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-23 13:44:13 +0000
commit79e1725404715916723473bbd079bad805a02eff (patch)
tree5b8849804d86aedd199234862c64dea99842b029 /fc.spec
parentb09d3769adbd5c7ffaa2e93f95a6a0df1a95b67e (diff)
automatic import of fc
Diffstat (limited to 'fc.spec')
-rw-r--r--fc.spec12
1 files changed, 9 insertions, 3 deletions
diff --git a/fc.spec b/fc.spec
index f91425d..453b2f4 100644
--- a/fc.spec
+++ b/fc.spec
@@ -12,7 +12,7 @@ Summary: %{pkg_summary}
License: MulanPSL2
URL: https://atomgit.com/openeulercompetitioninfo/meiyoumingzi
-Source: %{url}/archive/refs/tags/v%{version}.tar.gz
+Source0: https://atomgit.com/openeulercompetitioninfo/meiyoumingzi/repository/archive.tar.gz?ref=master#/%{pkg_name}-%{pkg_version}.tar.gz
BuildRequires: wget
BuildRequires: gcc
@@ -37,12 +37,18 @@ cjc -v
cjpm build
%install
+mkdir -p %{buildroot}/%{_bindir}
+mkdir -p %{buildroot}/usr/lib/
+%{__install} -m 755 %{_builddir}/target/release/bin/main %{buildroot}/%{_bindir}/
+%{__install} -m 755 %{_builddir}/cangjie/runtime/lib/linux_x86_64_llvm/libcangjie-runtime.so %{buildroot}/usr/lib/
+%{__install} -m 755 %{_builddir}/cangjie/runtime/lib/linux_x86_64_llvm/libsecurec.so %{buildroot}/usr/lib/
%files -n %{pkg_name}
-%license LICENSE*
+%license license*
%doc README*
-
+%{_bindir}/main
+/usr/lib/*
%changelog
* Sun Feb 23 2025 YunShu