update to 20.03 [release 20.03-1mamba;Wed Feb 10 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 21:28:02 +01:00
parent 027f7a129d
commit e4551ac77f
3 changed files with 62 additions and 32 deletions

View File

@ -3,9 +3,3 @@
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users.
It is designed to be very extensible and fully configurable. It is designed to be very extensible and fully configurable.
An IDE with all the features you need, having a consistent look, feel and operation across platforms.
Built around a plugin framework, Code::Blocks can be extended with plugins.
Any kind of functionality can be added by installing/coding a plugin.
For instance, compiling and debugging functionality is already provided by plugins!

View File

@ -0,0 +1,25 @@
--- a/trunk/src/plugins/openfileslist/openfileslistplugin.h
+++ b/trunk/src/plugins/openfileslist/openfileslistplugin.h
@@ -10,6 +10,7 @@
#include <projectfile.h>
#include <wx/dynarray.h>
+#include <functional>
class wxTreeCtrl;
class wxTreeEvent;
@@ -20,12 +21,8 @@
struct TargetFilesData
{
TargetFilesData() : activeFile(nullptr) {} // ctor
- // Functor for the std::set predicate to sort the opened editor files according to their tab order
- struct compareLess
- {
- bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; }
- };
- typedef std::set<ProjectFile*, compareLess> OpenFilesSet;
+
+ typedef std::set<ProjectFile*, std::less<ProjectFile*>> OpenFilesSet;
ProjectFile* activeFile;
OpenFilesSet openFiles;
};

View File

@ -1,51 +1,57 @@
%define libname libcodeblocks %define libname libcodeblocks
Name: codeblocks Name: codeblocks
Version: 17.12 Version: 20.03
Release: 1mamba Release: 1mamba
Summary: An open source cross platform free C++ IDE Summary: An open source cross platform free C++ IDE
Group: Graphical Desktop/Applications/Development Group: Graphical Desktop/Applications/Development
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.codeblocks.org/ URL: https://www.codeblocks.org/
# FIXME: real url is http://download.berlios.de/codeblocks/codeblocks_12.11-1.tar.gz/from_sourceforge Source: https://sourceforge.net/projects/codeblocks/files/Sources/%{version}/codeblocks-%{version}.tar.xz
Source: http://sourceforge.net/projects/codeblocks/files/Sources/%{version}/codeblocks_%{version}.tar.xz
Patch1: codeblocks-10.05-konsole.patch Patch1: codeblocks-10.05-konsole.patch
Patch2: codeblocks-20.03-gcc-11.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libatk-devel BuildRequires: libatk-devel
BuildRequires: libboost-devel
BuildRequires: libbrotli-devel
BuildRequires: libbsd-devel
BuildRequires: libbzip2-devel BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel BuildRequires: libcairo-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel BuildRequires: libfreetype-devel
BuildRequires: libgamin-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libgtk-devel BuildRequires: libgraphite2-devel
BuildRequires: libgtk3-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libhunspell-devel
BuildRequires: libncurses-devel
BuildRequires: libpango-devel BuildRequires: libpango-devel
BuildRequires: libpcre-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libwxBase-unicode-devel BuildRequires: libwx_baseu30-devel
BuildRequires: libwxGTK-unicode-devel BuildRequires: libwx_gtk3u30-devel
BuildRequires: libX11-devel BuildRequires: libxcb-devel
BuildRequires: libz-devel BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: udev-devel BuildRequires: udev-devel
Requires: konsole Requires: konsole
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users.
It is designed to be very extensible and fully configurable. It is designed to be very extensible and fully configurable.
An IDE with all the features you need, having a consistent look, feel and operation across platforms.
Built around a plugin framework, Code::Blocks can be extended with plugins.
Any kind of functionality can be added by installing/coding a plugin.
For instance, compiling and debugging functionality is already provided by plugins!
%package -n %{libname} %package -n %{libname}
Summary: Shared library for Code::Blocks Summary: Shared library for Code::Blocks
Group: System/Libraries Group: System/Libraries
@ -59,19 +65,21 @@ Group: Development/Libraries
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description devel
This package contains static libraries and header files need for development. This package contains static libraries and header files needed for development.
%debug_package
%prep %prep
%setup -q -c %setup -q
mv codeblocks-%{version}*/* . %patch2 -p2
rm -rf codeblocks-%{version}*
%patch1 -p1
%build %build
%configure \ %configure \
--with-contrib-plugins=all,-MouseSap \ --with-contrib-plugins=all,-MouseSap \
--with-wx-config=wx-config-unicode-3 \ --with-wx-config=wx-config-unicode-30 \
--with-boost-system=boost_system-mt --with-boost-libdir=%{_libdir}
#--with-boost-system=boost_system-mt
%make %make
@ -111,7 +119,7 @@ done
%{_datadir}/appdata/codeblocks-contrib.metainfo.xml %{_datadir}/appdata/codeblocks-contrib.metainfo.xml
%{_datadir}/appdata/codeblocks.appdata.xml %{_datadir}/appdata/codeblocks.appdata.xml
%{_datadir}/applications/codeblocks.desktop %{_datadir}/applications/codeblocks.desktop
%{_datadir}/icons/hicolor/*/apps/codeblocks.png #%{_datadir}/icons/hicolor/*/apps/codeblocks.png
%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks-workspace.png %{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks-workspace.png
%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks.png %{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks.png
%{_datadir}/mime/packages/codeblocks.xml %{_datadir}/mime/packages/codeblocks.xml
@ -140,10 +148,13 @@ done
%{_libdir}/libwxsmithlib.la %{_libdir}/libwxsmithlib.la
%{_libdir}/libwxsmithlib.so %{_libdir}/libwxsmithlib.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%doc BUGS ChangeLog NEWS README TODO #%doc BUGS ChangeLog NEWS README TODO
%doc COMPILERS #%doc COMPILERS
%changelog %changelog
* Wed Feb 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20.03-1mamba
- update to 20.03
* Sun Jul 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 17.12-1mamba * Sun Jul 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 17.12-1mamba
- update to 17.12 - update to 17.12