%define major 0 %define libname_orig lib%{name} %define libname %mklibname %{name} 0 %define develname %mklibname -d %{name} Name: codeblocks Version: 10.05 Release: %mkrel 6 Summary: A C++ IDE Group: Development/Other License: GPLv3 URL: http://www.codeblocks.org/ Source0: http://download.berlios.de/codeblocks/%{name}-%{version}-src.tar.bz2 # use system tinyxml lib Patch1: %{name}-tinyxml.patch # https://bugzilla.redhat.com/show_bug.cgi?id=565198 (fully fixed in svn rev 6330) Patch2: %{name}-dso.patch # update for tinyxml 2.6 Patch3: %{name}-tinyxml-26.patch # D support - svn revisions 6553-6556 Patch4: %{name}-10.05-D.patch # use system squirrel library Patch5: %{name}-squirrel.patch # fix build with gcc 4.7 Patch6: %{name}-gcc47.patch BuildRequires: zip BuildRequires: autoconf BuildRequires: wxgtku2.8-devel BuildRequires: imagemagick BuildRequires: squirrel-devel BuildRequires: tinyxml-devel Suggests: gcc-c++ %description Code::Blocks is a free C++ IDE built specifically to meet the most demanding needs of its users. It was designed, right from the start, to be extensible and configurable. Built around a plugin framework, Code::Blocks can be extended with plugin DLLs. It includes a plugin wizard so you can compile your own plugins! %package -n %{libname} Summary: Shared library for %{name} Group: System/Libraries Provides: %{libname_orig} = %{version}-%{release} %description -n %{libname} Shared libraries for %{name}. %package -n %{develname} Summary: Development headers for %{name} Group: Development/C Requires: %{libname} = %{version} Provides: %{name}-devel = %{version}-%{release} Provides: %{libname_orig}-devel = %{version}-%{release} %description -n %{develname} Development headers for %{name}. %prep %setup -qn %{name}-%{version}-release %apply_patches %build autoreconf -fi %define Werror_cflags %nil # workaround C++ in the sqplus templates (g++ >= 4.7), disable aliasing %global optflags %{optflags} -fpermissive -fno-strict-aliasing %configure2_5x --with-contrib-plugins=all --disable-static %make %install rm -rf %{buildroot} %makeinstall_std find %{buildroot} -name '*.la' | xargs rm # icons mkdir -p %{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 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README AUTHORS BUGS COMPILERS TODO NEWS ChangeLog %{_bindir}/* %{_libdir}/%{name} %{_libdir}/wxSmithContribItems %{_mandir}/man1/*.1* %{_datadir}/applications/codeblocks.desktop %{_datadir}/%{name} %{_iconsdir}/*/*/*/* %{_datadir}/mime/packages/codeblocks.xml %{_datadir}/pixmaps/codeblocks.png %files -n %{libname} %defattr(-,root,root) %{_libdir}/lib*.so.%{major}* %files -n %{develname} %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/* %changelog * Fri Jan 11 2013 umeabot <umeabot> 10.05-6.mga3 + Revision: 347966 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Dec 25 2012 pterjan <pterjan> 10.05-5.mga3 + Revision: 334999 - Steal patches from Fedora * Use system squirrel and tinyxml * Add D support (from upstream) * Fix build - Do not use wx-config-unicode which no longer exists * Wed Sep 21 2011 fwang <fwang> 10.05-4.mga2 + Revision: 146372 - drop .la files + ahmad <ahmad> - Rebuild against wxgtk2.8 with enabled catch_segvs * Thu Mar 24 2011 ennael <ennael> 10.05-2.mga1 + Revision: 76879 - clean spec file - imported package codeblocks