Sisyphus
: 15 2018 | : 18642 | : 12713454
en ru br
ALT
S:17.12-alt4
5.1: 12.11-alt0.M51.1
4.1: 8.02-alt1
4.0: 1.0-alt0.svn4742
www.altlinux.org/Changes

:: /C++
: codeblocks

             Sources      Gear   Bugs and FR  Repocop 

Name: codeblocks
Version: 1.0
Release: alt0.svn4742

Summary: Code::Blocks is open source, cross platform free C++ IDE
Summary(ru_RU.UTF-8): Code::Blocks это кросс-платформенная свободная среда разработки для C++ с открытым исходным кодом

License: GPL
Group: Development/C++
Url: http://www.codeblocks.org
Packager: Denis Kirienko <dk at altlinux.ru>

Source0: %name-%version.tar.bz2
Source1: %name-%version-alt-icons.tar.bz2
Source2: http://qtworkbench.googlecode.com/files/QtWorkbench-src-0.5.1.tar.gz
Patch0: %name-1.0svn3910-alt-config-desktop.patch

BuildPreReq: desktop-file-utils shared-mime-info wxGTK-devel gcc-c++ libgtk+2-devel zip sed grep
Requires(post,postun): shared-mime-info >= 0.15-alt2
Requires(post,postun): desktop-file-utils

%set_verify_elf_skiplist %_datadir/%name/*

%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!

%description -l ru_RU.UTF-8
Code::Blocks это свободная IDE для C++, которая создана для удовлетворения множества требований её пользователей. Она разрабатывалась с самого начала, как расширяемая и легко настраиваемая. Собранная с поддержкой плагинов Code::Blocks может быть расширена с помощью подключаемых библиотек.

%package contrib
Summary: Code::Blocks contrib plugins
Summary(ru_RU.UTF-8): Дополнительные плагины для Code::Blocks
Group: Development/C++
Requires: codeblocks = %{version}-%{release}

%description contrib
Additional Code::Blocks plugins.

%description contrib -l ru_RU.UTF-8
Набор дополнительных плагинов для среды разработки Code::Blocks.

%package devel
Summary: Code::Blocks SDK
Group: Development/C++
Requires: codeblocks = %{version}-%{release}

%description devel
Code::Blocks SDK to develop your own plugins.

%description devel -l ru_RU.UTF-8
SDK для создания собственных плагинов к среде разработки Code::Blocks.

%define pkgdata %_datadir/%name

%prep
%setup -q -b 1
%setup -D -T -a 2

%patch -p1

# Adding QtWorkbench plugin

patch --unified --strip=0 --forward --fuzz=3 --input=qtworkbench.patch

# Turn off debug

sed -i 's|AM_CFLAGS = -Wall -g -DDEPSLIB_UNIX|AM_CFLAGS = -DDEPSLIB_UNIX|' src/plugins/compilergcc/depslib/src/Makefile.am

# Script update_revision.sh generates file revision.m4 that contains info about svn revision.

# It takes data from .svn directory. Since we haven't this directory in %SOURCE0, we should remove
# this script. Please, be sure that you have correct revision.m4 in %SOURCE0 archive.
# You may create this file using script update_revision.sh after svn checkout
# and before removing all .svn directories and before creating %SOURCE0 file
rm update_revision.sh

%build
./bootstrap
%configure --with-contrib-plugins=all
%make_build --silent --no-print-directory

%install
%make_install --silent --no-print-directory DESTDIR=%buildroot install
install -m 644 -D alt-icons/16x16/%name.png %buildroot%_miconsdir/%name.png
install -m 644 -D alt-icons/32x32/%name.png %buildroot%_niconsdir/%name.png
install -m 644 -D alt-icons/48x48/%name.png %buildroot%_liconsdir/%name.png
install -m 644 -D alt-icons/64x64/%name.png %buildroot%_iconsdir/hicolor/64x64/apps/%name.png

%post
%update_menus
%update_desktopdb
%update_mimedb

%post devel
%post_ldconfig

%postun
%clean_menus
%clean_desktopdb
%clean_mimedb

%postun devel
%postun_ldconfig

%files

%doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog
%_bindir/%name
%_bindir/cb_console_runner
%_libdir/libcodeblocks.so.*
%_datadir/applications/%name.desktop
%_datadir/mime/packages/%name.xml
%_mandir/man?/*
%dir %pkgdata
%{pkgdata}/astyle.zip
%{pkgdata}/autosave.zip
%{pkgdata}/classwizard.zip
%{pkgdata}/codecompletion.zip
%{pkgdata}/compiler.zip
%{pkgdata}/debugger.zip
%{pkgdata}/defaultmimehandler.zip
%{pkgdata}/manager_resources.zip
%{pkgdata}/resources.zip
%{pkgdata}/scriptedwizard.zip
%{pkgdata}/start_here.zip
%{pkgdata}/tips.txt
%{pkgdata}/todo.zip
%{pkgdata}/icons
%dir %{pkgdata}/images
%{pkgdata}/images/*.png
%{pkgdata}/images/16x16
%{pkgdata}/images/codecompletion
%{pkgdata}/images/settings
%{pkgdata}/lexers
%dir %{pkgdata}/plugins
%{pkgdata}/plugins/libastyle.*
%{pkgdata}/plugins/libautosave.*
%{pkgdata}/plugins/libclasswizard.*
%{pkgdata}/plugins/libcodecompletion.*
%{pkgdata}/plugins/libcompiler.*
%{pkgdata}/plugins/libdebugger.*
%{pkgdata}/plugins/libdefaultmimehandler.*
%{pkgdata}/plugins/libscriptedwizard.*
%{pkgdata}/plugins/libtodo.*
%{pkgdata}/scripts
%{pkgdata}/templates
%_iconsdir/*/*/*/*
%_pixmapsdir/*

%files contrib
%_bindir/cb_share_config
%_bindir/codesnippets
%_libdir/libwxsmithlib*
%{pkgdata}/AutoVersioning.zip
%{pkgdata}/byogames.zip
%{pkgdata}/cb_koders.zip
%{pkgdata}/codesnippets.zip
%{pkgdata}/codestat.zip
%{pkgdata}/dragscroll.zip
%{pkgdata}/envvars.zip
%{pkgdata}/exporter.zip
%{pkgdata}/help_plugin.zip
%{pkgdata}/keybinder.zip
%{pkgdata}/lib_finder.zip
%{pkgdata}/openfileslist.zip
%{pkgdata}/projectsimporter.zip
%{pkgdata}/Profiler.zip
%{pkgdata}/QtWorkbench.zip
%{pkgdata}/SymTab.zip
%{pkgdata}/RegExTestbed.zip
%{pkgdata}/wxsmith.zip
%{pkgdata}/wxsmithcontribitems.zip
%{pkgdata}/images/wxsmith
%{pkgdata}/images/codesnippets
%{pkgdata}/plugins/libAutoVersioning.*
%{pkgdata}/plugins/libbyogames.*
%{pkgdata}/plugins/libcb_koders.*
%{pkgdata}/plugins/libcodesnippets.*
%{pkgdata}/plugins/libcodestat.*
%{pkgdata}/plugins/libdragscroll.*
%{pkgdata}/plugins/libenvvars.*
%{pkgdata}/plugins/libexporter.*
%{pkgdata}/plugins/libhelp_plugin.*
%{pkgdata}/plugins/libkeybinder.*
%{pkgdata}/plugins/liblib_finder.*
%{pkgdata}/plugins/libopenfileslist.*
%{pkgdata}/plugins/libprojectsimporter.*
%{pkgdata}/plugins/libProfiler.*
%{pkgdata}/plugins/libQtWorkbench.*
%{pkgdata}/plugins/libRegExTestbed.*
%{pkgdata}/plugins/libSymTab.*
%{pkgdata}/plugins/libwxsmith.*
%{pkgdata}/plugins/libwxsmithcontribitems.*

%files devel
%_libdir/libcodeblocks.so
%_libdir/libwxsmithlib.so
%_includedir/%name
%_pkgconfigdir/%name.pc

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin