3 # - move plugins to libdir/name/...
5 Summary: An open source, cross platform, free C++ IDE
11 Group: Development/Languages
12 Source0: http://dl.sourceforge.net/codeblocks/%{name}-%{version}%{_rc}.tgz
13 # Source0-md5: 425c700feb77d22b1b85b1061d2504d9
14 URL: http://www.codeblocks.org/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: dos2unix
18 BuildRequires: libtool
19 BuildRequires: wxGTK2-devel
20 BuildRequires: wxWidgets-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Code::Blocks is a free C++ IDE built specifically to meet the most
26 demanding needs of its users. It was designed, right from the start,
27 to be extensible and configurable. Built around a plugin framework,
28 Code::Blocks can be extended with plugin DLLs. It includes a plugin
29 wizard so you can compile your own plugins!
35 - Open Source! GPL2, no hidden costs.
36 - Cross-platform. Runs on Linux or Windows (uses wxWidgets).
37 - Made in GNU C++. No interpreted languages or proprietary libs
39 - Comes in two presentations: Standalone, and MinGW bundle
40 - Devpack support (optional)
41 - Extensible thru plugins (SDK available in the downloads section)
43 Compiler-related features:
45 - Multiple compiler support:
46 - GCC (MingW / Linux GCC)
51 - Compiles directly or with makefiles
52 - Predefined project templates
53 - Custom template support
54 - Uses XML format for project files.
55 - Multi-target projects
57 - Imports MSVC projects and workspaces (NOTE: assembly code and
58 inter-project dependencies not supported yet)
59 - Imports Dev-C++ projects
60 - Integrates with GDB for debugging
64 - Syntax highlighting, customizable and extensible
65 - Code folding for C++ and XML files.
67 - Code completion plugin
70 - One-key swap between .h and .c/.cpp files
71 - Open files list for quick switching between files (optional)
72 - External customizable "Tools"
73 - To-do list management with different users
76 %setup -q -n %{name}-%{version}%{_rc}
77 find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" -and -not -name "*.c" -and -not -name "*.cxx" -and -not -name "*.ico" | sed "s/.*/\"\\0\"/" | xargs dos2unix
78 chmod a+x acinclude.m4 src/update
87 --with-wx-config=wx-gtk2-ansi-config
91 rm -rf $RPM_BUILD_ROOT
94 DESTDIR=$RPM_BUILD_ROOT
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
104 #doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog
105 %attr(755,root,root) %{_bindir}/codeblocks
106 %attr(755,root,root) %{_bindir}/console_runner
107 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
108 #{_datadir}/application-registry/codeblocks.applications
109 #{_datadir}/applications/codeblocks.desktop
110 #{_datadir}/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png
111 #{_datadir}/mime-info/*
112 #{_datadir}/mime/packages/codeblocks.xml
113 #{_datadir}/pixmaps/codeblocks.png
114 #define pkgdata %{_datadir}/%{name}