From f9c7ebed4dc3998dbcaf9c473d623c8734b10f62 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 28 Nov 2025 06:13:14 +0000 Subject: automatic import of cangjie-lts-compiler --- cangjie-lts-compiler.spec | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'cangjie-lts-compiler.spec') 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 -- cgit v1.2.3