%global git_ver 40b7c6c7 Name: ccls Version: 0.20241101 Release: %{?git_ver: 0.1.git%{git_ver}}%{!?git_ver:1}%{?dist} Summary: C/C++/ObjC language server # main package is Apache 2.0 # bundled dependencies are Boost (macro_map) and CC0 (siphash) License: ASL 2.0 and CC0 and Boost URL: https://github.com/MaskRay/%{name} Source0: %{URL}/archive/%{version}/%{name}-%{version}%{?git_ver:.git%{git_ver}.tar.xz}%{?!git_ver:.tar.gz} BuildRequires: cmake >= 3.8 BuildRequires: gcc-c++ >= 7.2 BuildRequires: llvm-devel >= 7.0 BuildRequires: clang-devel >= 7.0 BuildRequires: rapidjson-devel BuildRequires: zlib-devel Requires: llvm >= 7.0 Provides: bundled(siphash) Provides: bundled(macro_map) %description ccls, which originates from cquery, is a C/C++/Objective-C language server. - code completion (with both signature help and snippets) - definition/references, and other cross references - cross reference extensions: $ccls/call $ccls/inheritance $ccls/member $ccls/vars ... - formatting - hierarchies: call (caller/callee) hierarchy, inheritance (base/derived) hierarchy, member hierarchy - symbol rename - document symbols and approximate search of workspace symbol - hover information - diagnostics and code actions (clang FixIts) - semantic highlighting and preprocessor skipped regions - semantic navigation: $ccls/navigate %prep %autosetup -p1 -n %{name}-%{version}%{?git_ver:.git%{git_ver}} rm -rf third_party/rapidjson %build export CLANG_MAJOR_VERSION=$(clang --version|head -1|awk '{print $3}'|awk -F'.' '{print $1}') %cmake -DCLANG_LINK_CLANG_DYLIB=ON -DCLANG_RESOURCE_DIR=%{_libdir}/clang/$CLANG_MAJOR_VERSION %cmake_build %install %cmake_install %files %{_bindir}/%{name} %license LICENSE %doc README.md %changelog * Tue Nov 05 2024 Tomas Chang - 0.20241101-0.1.git40b7c6c7 - Update to latest git on date 20241101 * Mon Mar 25 2024 Tomas Chang - 0.20240202-0.1.gitf8d2778b - Update to latest git on date 20240202 * Fri Nov 17 2023 Tomas Chang - 0.20231117-0.1.git490edc1e - Update to latest git on date 20231117 * Thu Nov 17 2022 Tomas Chang - 0.20220729-0.2.git8a93950f - Update to latest git * Thu Aug 11 2022 Tomas Chang - 0.20220729-0.1.git74458915 - Update to latest git * Mon Jun 13 2022 Tomas Chang - 0.20220130-0.1.git74458915 - Update to latest git * Mon Mar 14 2022 Tomas Chang - 0.20220130-0.1.git790daca4 - Update to latest git * Tue Mar 08 2022 Tomas Chang - 0.20210330-1 - Update to 0.20210330 * Tue Jan 26 2021 Fedora Release Engineering - 0.20201219-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Tom Stellard - 0.20201219-2 - Rebuild for clang-11.1.0 * Sun Dec 27 2020 Dan Čermák - 0.20201219-1 - New upstream release 0.20201219 (rhbz#1909878) * Mon Nov 2 2020 Dan Čermák - 0.20201025-1 - New upstream release 0.20201025 (rhbz#1891388) * Tue Aug 4 2020 Dan Čermák - 0.20190823.6-4 - Fix building with the new cmake macros (rhbz#1863312) * Sat Aug 01 2020 Fedora Release Engineering - 0.20190823.6-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.20190823.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 3 2020 Dan Čermák - 0.20190823.6-2 - Add link to persistent clang resource directory (proper fix for rhbz#1807574) * Wed May 6 2020 Dan Čermák - 0.20190823.6-1 - New upstream release 0.20190823.6 * Sun Mar 15 2020 Dan Čermák - 0.20190823.5-4 - Fix dependency on the current clang version (fix for rhbz#1807574) * Fri Jan 31 2020 Tom Stellard - 0.20190823.5-3 - Link against libclang-cpp.so - https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package * Tue Jan 28 2020 Fedora Release Engineering - 0.20190823.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 12 2019 Dan Čermák - 0.20190823.5-1 - New upstream release 20190823.5 * Sun Oct 27 2019 Dan Čermák - 0.20190823.4-1 - New upstream release 20190823.4 * Mon Sep 30 2019 Dan Čermák - 0.20190823.3-1 - New upstream release 20190823.3 * Sun Sep 29 2019 Dan Čermák - 0.20190823.2-1 - New upstream release 20190823.2 * Sat Sep 7 2019 Dan Čermák - 0.20190823.1-1 - New upstream release 20190823.1 * Sat Aug 24 2019 Dan Čermák - 0.20190823-1 - New upstraem release 20190823 * Wed Jul 24 2019 Fedora Release Engineering - 0.20190314-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Mar 24 2019 Dan Čermák - 0.20190314-1 - Bump version to the Pi Day Release * Thu Mar 7 2019 Dan Čermák - 0.20181225.8-1 - Initial package version for Fedora & openSUSE