File codelite.spec of Package codelite

# spec file for package codelite
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2012-2019 Mariusz Fik <>.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define short_ver 16.0
# Only available on x86_64 and %%arm (see lldb package)
  %ifarch %{arm} x86_64
    %bcond_without lldb
# Not available on ppc
  %ifnarch ppc
    %bcond_without clang
Name:           codelite
Version:        16.0.0
Release:        0
Summary:        Code editor for C, C++, PHP and Node.js
# parts of package contain LGPL-3.0 licenced code thus license needs to be
# GPL-3.0
License:        GPL-3.0-only
Group:          Development/Tools/IDE
# Template files are identified by RPMLint as Development-Files --> Ignore this errors
Source1:        %{name}-rpmlintrc
# PATCH-FIX-UPSTREAM  wxStl.patch -- Fix problem when wxWidgets was compile with wxUSE_STL=1
Patch0:         wxStl.patch
# PATCH-FIX-OPENSUSE  fix_node_env-script-interpreter.patch -- Fix RPMLINT warning env-script-interpreter.
Patch1:         fix_node_env-script-interpreter.patch
# PATCH-FIX-UPSTREAM  wxStl.patch -- Fix problem with wx version 3.1.0 and 3.1.1
Patch2:         wxVersion.patch
# PATCH-FIX-UPSTREAM codelite_wxwidgets_3_1_7.patch -- Fix build issues with wx >= 3.1.7
Patch3:         codelite_wxwidgets_3_1_7.patch
BuildRequires:  cmake
BuildRequires:  ctags
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  wxGTK3-3_2-devel
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(hunspell)
BuildRequires:  pkgconfig(libssh)
BuildRequires:  pkgconfig(sqlite3)
Requires:       ctags
Requires:       hicolor-icon-theme
Requires:       xterm-bin
%if %{with lldb}
BuildRequires:  lldb-devel
%if %{with clang}
BuildRequires:  llvm-clang-devel

CodeLite is a code editor for the C, C++, PHP and Node.js programming languages.
It uses an interface with which users can create, build and debug projects.

%autosetup -p1

%cmake \
   %if %{with clang}


%__rm %{buildroot}%{_bindir}/ctagsd-tests
%__ln_s -f ctags %{buildroot}%{_bindir}/codelite-ctags
%find_lang %{name}
### Add mime types
mkdir -p %{buildroot}%{_datadir}/mime/packages/
cp -p %{name}.xml %{buildroot}%{_datadir}/mime/packages/
%fdupes %{buildroot}%{_prefix}
### Update translation in desktop menu entry and add IDE as category
%suse_update_desktop_file %{name} IDE

%files -f %{name}.lang
%license COPYING
%doc about.html AUTHORS
%exclude %{_datadir}/icons/hicolor/128x128@2x/apps/%{name}.png
%exclude %{_datadir}/icons/hicolor/256x256@2x/apps/%{name}.png
%exclude %{_datadir}/icons/hicolor/32x32@2x/apps/%{name}.png
%exclude %{_datadir}/icons/hicolor/64x64@2x/apps/%{name}.png

openSUSE Build Service is sponsored by