summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cangjie-lts-compiler.spec14
1 files changed, 9 insertions, 5 deletions
diff --git a/cangjie-lts-compiler.spec b/cangjie-lts-compiler.spec
index 5cc2222..6d0014f 100644
--- a/cangjie-lts-compiler.spec
+++ b/cangjie-lts-compiler.spec
@@ -14,7 +14,6 @@ BuildRequires: wget
BuildRequires: curl
BuildRequires: libcurl
BuildRequires: expat
-BuildRequires: openssl
BuildRequires: make
BuildRequires: gcc > 7.3.0
BuildRequires: gcc-c++
@@ -68,6 +67,8 @@ Requires: glibc-devel
Requires: libstdc++-devel
Requires: gcc > 7.3.0
+Provides: libcangjie-lsp.so = %{version}
+
%description
Cangjie is a modern programming language developed by Huawei. This package
provides the Cangjie compiler (cjc), debugger (cjdb), and core development tools
@@ -112,7 +113,8 @@ mkdir -p %{buildroot}/opt/cangjie-lts
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/etc/profile.d
-cp -r output/* %{buildroot}/opt/cangjie-lts/
+# Use install to preserve file attributes and create directory structure
+(cd output && find . -depth -type f -exec install -D {} %{buildroot}/opt/cangjie-lts/{} \;)
# Create symlinks in /usr/bin for common commands
@@ -131,9 +133,11 @@ ln -sf ../../opt/cangjie-lts/bin/cjdb %{buildroot}%{_bindir}/cjdb
%files
# Main Cangjie installation directory
-/opt/cangjie-lts/bin/
-/opt/cangjie-lts/lib/
-/opt/cangjie-lts/third_party/
+/opt/cangjie-lts/bin/*
+/opt/cangjie-lts/lib/*
+/opt/cangjie-lts/third_party/*
+/opt/cangjie-lts/runtime/*
+/opt/cangjie-lts/*
%dir /opt/cangjie-lts/modules/
# Symlinks in /usr/bin