codelite/codelite.spec

108 lines
2.9 KiB
RPMSpec
Raw Normal View History

Name: codelite
Version: 17.6.0
Release: 1mamba
Summary: An IDE for the C/C++/PHP/Node.js programming languages
Group: Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://codelite.org/
Source: https://github.com/eranif/codelite.git/%{version}/codelite-%{version}.tar.bz2
Patch0: codelite-13.0-wxWidgets-3.0.4.patch
Patch1: codelite-16.1.0-include-harfbuzz.patch
Patch2: codelite-17.6.0-wxwidgets-3.2.2.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libhunspell-devel
BuildRequires: libpango-devel
BuildRequires: libsqlite-devel
BuildRequires: libssh-devel
BuildRequires: libstdc++6-devel
BuildRequires: libuchardet-devel
BuildRequires: libyaml-cpp-devel
BuildRequires: wxwidgets-devel
BuildRequires: wxwidgets-gtk3-devel
## AUTOBUILDREQ-END
BuildRequires: clang-devel >= 5.0.0-1mamba
BuildRequires: cmake
BuildRequires: libllvm-devel >= 5.0.0
BuildRequires: liblldb-devel
%description
An IDE for the C/C++/PHP/Node.js programming languages.
%debug_package
%prep
%setup -q
#%patch0 -p1
#%patch1 -p0 -b .include-harfbuzz
%patch 2 -p1
%ifarch x86_64 aarch64
sed -i 's|"lib"|"lib64"|' CMakeLists.txt
%endif
%build
%cmake -d build \
-DCMAKE_CXX_FLAGS="%{optflags} -fPIC" \
-DPREFIX=%{_prefix} \
-DWITH_WX_CONFIG=/usr/bin/wx-config-unicode-3 \
-DENABLE_CLANG=1 \
-DENABLE_LLDB=1 \
-DWITH_MYSQL=0
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/codelite*
%{_bindir}/ctagsd*
%dir %{_libdir}/codelite
%{_libdir}/codelite/*.so
%dir %{_libdir}/codelite/debuggers
%{_libdir}/codelite/debuggers/DebuggerGDB.so
%{_datadir}/applications/codelite.desktop
%{_datadir}/icons/hicolor/*/apps/codelite.png
%dir %{_datadir}/codelite
%{_datadir}/codelite/*
#%{_mandir}/man1/codelite-make.1*
#%{_mandir}/man1/codelite.1*
#%{_mandir}/man1/codelite_fix_files.1*
%doc AUTHORS COPYING LICENSE
%changelog
* Thu Aug 31 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 17.6.0-1mamba
- update to 17.6.0
* Sat Aug 31 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 13.0-1mamba
- update to 13.0
* Thu Nov 30 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 11.0-1mamba
- update to 11.0
* Thu Nov 30 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 9.1-3mamba
- rebuilt by autoport with build requirements: clang-devel>=5.0.0-1mamba
* Tue Jun 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 9.1-2mamba
- rebuilt with llvm 3.8.0
* Tue Feb 02 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 9.1-1mamba
- package created using the webbuild interface