1 |
Name: codelite |
2 |
Version: 9.2 |
3 |
Release: %mkrel 2 |
4 |
Summary: A powerful open-source, cross platform C/C++/PHP IDE |
5 |
License: GPLv2+ |
6 |
Group: Development/Tools |
7 |
Url: http://codelite.org |
8 |
Source0: https://github.com/eranif/codelite/archive/%{version}/%{name}-%{version}.tar.gz |
9 |
Patch0: codelite-8.1-deb-remove-bundled-cppcheck.patch |
10 |
Patch1: codelite-9.0-deb-remove-bundled-wxsqlite.patch |
11 |
Patch2: codelite-8.1-deb-disable-stripping.patch |
12 |
Patch3: codelite-8.1-deb-default-no-check-for-updates.patch |
13 |
Patch4: codelite-9.0-mga-linking-sqlite3.patch |
14 |
Patch5: codelite-9.0-mga-hunspell-1.4.patch |
15 |
Patch6: 0001-WordCompletion-Fix-build-issue-on-OSX-and-Linux.patch |
16 |
|
17 |
BuildRequires: clang-devel |
18 |
BuildRequires: cmake |
19 |
BuildRequires: lldb-devel |
20 |
BuildRequires: pkgconfig(gtk+-2.0) |
21 |
BuildRequires: pkgconfig(hunspell) |
22 |
BuildRequires: pkgconfig(libssh) |
23 |
BuildRequires: pkgconfig(wxsqlite3) |
24 |
BuildRequires: wxgtku3.0-devel |
25 |
Recommends: gcc |
26 |
Recommends: xterm |
27 |
|
28 |
%description |
29 |
CodeLite uses a sophisticated, yet intuitive interface which allows |
30 |
users to easily create, build and debug complex projects. |
31 |
|
32 |
It provides built-in support for GCC/Clang/VC++ compilers and debugging |
33 |
using GDB. |
34 |
|
35 |
%prep |
36 |
%setup -q |
37 |
%autopatch -p1 |
38 |
|
39 |
# Make sure we don't build against (wx)sqlite3 |
40 |
rm -rf sdk/databaselayer/src/sqlite3 sdk/wxsqlite3 sqlite3 |
41 |
|
42 |
%build |
43 |
%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} \ |
44 |
-DCMAKE_SKIP_RPATH=OFF \ |
45 |
-DENABLE_CLANG=1 \ |
46 |
-DENABLE_LLDB=1 |
47 |
%make_build |
48 |
|
49 |
%install |
50 |
%make_install -C build |
51 |
|
52 |
%find_lang %{name} |
53 |
|
54 |
%files -f %{name}.lang |
55 |
%doc AUTHORS LICENSE COPYING |
56 |
%{_bindir}/%{name} |
57 |
%{_bindir}/%{name}-cc |
58 |
%{_bindir}/%{name}-echo |
59 |
%{_bindir}/%{name}-lldb |
60 |
%{_bindir}/%{name}-make |
61 |
%{_bindir}/%{name}-terminal |
62 |
%{_bindir}/%{name}_exec |
63 |
%{_bindir}/%{name}_fix_files |
64 |
%{_bindir}/%{name}_indexer |
65 |
%{_bindir}/%{name}_kill_children |
66 |
%{_bindir}/%{name}_xterm |
67 |
%{_datadir}/%{name}/ |
68 |
%{_datadir}/applications/%{name}.desktop |
69 |
%{_iconsdir}/hicolor/*/apps/%{name}.png |
70 |
%{_libdir}/%{name}/ |
71 |
%{_mandir}/man1/%{name}*.1* |