From 5b5cbdab89e64b4f24b766c0f0185e2e89de52a5 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 21:28:00 +0100 Subject: [PATCH] automatic version update by autodist [release 13.12-1mamba;Sun Dec 29 2013] --- README.md | 9 ++ codeblocks-10.05-konsole.patch | 11 +++ codeblocks.spec | 149 +++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+) create mode 100644 codeblocks-10.05-konsole.patch create mode 100644 codeblocks.spec diff --git a/README.md b/README.md index 0df98f3..efefc38 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # codeblocks +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. + +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! + diff --git a/codeblocks-10.05-konsole.patch b/codeblocks-10.05-konsole.patch new file mode 100644 index 0000000..71a1767 --- /dev/null +++ b/codeblocks-10.05-konsole.patch @@ -0,0 +1,11 @@ +--- codeblocks-10.05-release/src/sdk/globals.cpp.orig 2010-05-22 12:10:05.000000000 +0200 ++++ codeblocks-10.05-release/src/sdk/globals.cpp 2011-05-28 12:13:07.000000000 +0200 +@@ -47,7 +47,7 @@ + const wxString DEFAULT_ARRAY_SEP = _T(";"); + + #ifndef __WXMAC__ +-const wxString DEFAULT_CONSOLE_TERM = _T("xterm -T $TITLE -e"); ++const wxString DEFAULT_CONSOLE_TERM = _T("konsole --workdir=$WORKDIR --title $TITLE -e"); + #else + const wxString DEFAULT_CONSOLE_TERM = _T("osascript -e 'tell app \"Terminal\"' -e 'activate' -e 'do script \"$SCRIPT\"' -e 'end tell'"); + #endif diff --git a/codeblocks.spec b/codeblocks.spec new file mode 100644 index 0000000..ec98f81 --- /dev/null +++ b/codeblocks.spec @@ -0,0 +1,149 @@ +%define libname libcodeblocks + +Name: codeblocks +Version: 13.12 +Release: 1mamba +Summary: An open source cross platform free C++ IDE +Group: Graphical Desktop/Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://www.codeblocks.org/ +# FIXME: real url is http://download.berlios.de/codeblocks/codeblocks_12.11-1.tar.gz/from_sourceforge +Source: http://download.berlios.de/codeblocks/codeblocks_%{version}-1.tar.gz +Patch1: codeblocks-10.05-konsole.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libatk-devel +BuildRequires: libbzip2-devel +BuildRequires: libcairo-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgtk-devel +BuildRequires: libpango-devel +BuildRequires: libpng-devel +BuildRequires: libstdc++6-devel +BuildRequires: libwxBase-unicode-devel +BuildRequires: libwxGTK-unicode-devel +BuildRequires: libX11-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: udev-devel +Requires: konsole +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +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. + +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} +Summary: Shared library for Code::Blocks +Group: System/Libraries + +%description -n %{libname} +Shared libraries for Code::Blocks. + +%package devel +Summary: Development headers for Code::Blocks +Group: Development/Libraries +Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains static libraries and header files need for development. + +%prep +%setup -q -c +mv codeblocks-%{version}*/* . +rm -rf codeblocks-%{version}* +%patch1 -p1 + +%build +%configure \ + --with-contrib-plugins=all + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +# icons +install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps +convert -scale 48x48 src/mime/codeblocks.png \ + %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png +convert -scale 32x32 src/mime/codeblocks.png \ + %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png +convert -scale 16x16 src/mime/codeblocks.png \ + %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png + +for f in %{buildroot}%{_libdir}/codeblocks/plugins/*.so +do + [ "$(basename $f .so)" != "libwxsmithcontribitems" ] && \ + { chrpath --list $f && chrpath --delete $f || :; } +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/cb_console_runner +%{_bindir}/cb_share_config +%{_bindir}/codeblocks +%{_bindir}/codesnippets +%dir %{_datadir}/codeblocks +%{_datadir}/codeblocks/* +%{_datadir}/applications/codeblocks.desktop +%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks-workspace.png +%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-codeblocks.png +%{_datadir}/mime/packages/codeblocks.xml +%{_datadir}/pixmaps/codeblocks.png +%{_mandir}/man1/cb_console_runner.1* +%{_mandir}/man1/cb_share_config.1* +%{_mandir}/man1/codeblocks.1* +%{_mandir}/man1/codesnippets.1* + +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/libcodeblocks.so.* +%{_libdir}/libwxsmithlib.so.* +%dir %{_libdir}/codeblocks +%{_libdir}/codeblocks/* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/codeblocks +%{_includedir}/codeblocks/* +%dir %{_includedir}/wxsmith +%{_includedir}/wxsmith/* +%{_libdir}/libcodeblocks.la +%{_libdir}/libcodeblocks.so +%{_libdir}/libwxsmithlib.la +%{_libdir}/libwxsmithlib.so +%{_libdir}/pkgconfig/*.pc +%doc BUGS ChangeLog NEWS README TODO +%doc COMPILERS + +%changelog +* Sun Dec 29 2013 Automatic Build System 13.12-1mamba +- automatic version update by autodist + +* Sat May 11 2013 Automatic Build System 12.11-1mamba +- automatic version update by autodist + +* Fri Feb 25 2011 Stefano Cotta Ramusino 10.05-1mamba +- package created by autospec