<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.next.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=84.156.10.84</id>
	<title>Code::Blocks - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.next.codeblocks.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=84.156.10.84"/>
	<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Special:Contributions/84.156.10.84"/>
	<updated>2026-10-18T23:48:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2134</id>
		<title>Installing Code::Blocks from source on RPM based distributions</title>
		<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2134"/>
		<updated>2006-01-01T17:25:57Z</updated>

		<summary type="html">&lt;p&gt;84.156.10.84: /* Compiling the CVS/SVN version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== General instructions ===&lt;br /&gt;
&lt;br /&gt;
The build requirements in the source RPM are set to a minimum. So it isn&#039;t checked whether wxGTK is installed or not. So you have to take a look at it yourself.&lt;br /&gt;
&lt;br /&gt;
This has to be installed:&lt;br /&gt;
# wxGTK and its devel package&lt;br /&gt;
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)&lt;br /&gt;
&lt;br /&gt;
=== Compiling the Release Candidate 2 ===&lt;br /&gt;
&lt;br /&gt;
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]&lt;br /&gt;
&lt;br /&gt;
2. Build the binary package as root&lt;br /&gt;
 rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm&lt;br /&gt;
&lt;br /&gt;
3. The binary RPM should be in one of the subdirectories of /usr/src/packages/RPMS&lt;br /&gt;
&lt;br /&gt;
=== Compiling the CVS/SVN version ===&lt;br /&gt;
&lt;br /&gt;
1. You need a fresh CVS/SVN version, no ./bootstrap or anything else should be done before in this directory !&lt;br /&gt;
&lt;br /&gt;
2. add the directory codeblocks to an tgz archive named codeblocks-1.0-svn.tgz&lt;br /&gt;
 tar -czf codeblocks-1.0-svn.tgz codeblocks&lt;br /&gt;
&lt;br /&gt;
3. copy the archive in the directory /usr/src/packages/SOURCES and the Specfile to /usr/src/packages/SPECS/codeblocks.spec &lt;br /&gt;
&lt;br /&gt;
4. build the binary package as root with&lt;br /&gt;
 rpmbuild -bb /usr/src/packages/SPECS/codeblocks.spec&lt;br /&gt;
&lt;br /&gt;
5. the package will be in one of the subdirectories of /usr/src/packages/RPMS/&lt;br /&gt;
&lt;br /&gt;
6. Install it and enjoy !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use this as specfile:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 %define _fedora		%(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _mandrake	%(if [ -f /etc/mandrake-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _suse		%(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 &lt;br /&gt;
 %define req_wxgtk	2.6.0&lt;br /&gt;
 &lt;br /&gt;
 Name:			codeblocks&lt;br /&gt;
 Version:		1.0&lt;br /&gt;
 Release:		svn&lt;br /&gt;
 Summary:		OpenSource Cross Platform Free C++ IDE&lt;br /&gt;
 Group:			Development/Tools/IDE&lt;br /&gt;
 License:		GPL&lt;br /&gt;
 URL:			https://www.codeblocks.org/&lt;br /&gt;
 Packager:		Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 Source:		%{name}-%{version}-%{release}.tgz&lt;br /&gt;
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot&lt;br /&gt;
 Provides:		codeblocks&lt;br /&gt;
 Requires:		libgcc, libstdc++&lt;br /&gt;
 &lt;br /&gt;
 %if %_fedora&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_mandrake&lt;br /&gt;
 Requires:		libwxgtku2.6 &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	libwxgtku2.6 &amp;gt;= %{req_wxgtk}, libwxgtku2.6-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool, update-desktop-files&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 BuildRequires:	gcc-c++, make, gettext&lt;br /&gt;
 BuildRequires:	libstdc++, libstdc++-devel, autoconf, automake, libtool&lt;br /&gt;
 BuildRequires:	zip&lt;br /&gt;
 BuildRequires:	dos2unix&lt;br /&gt;
 &lt;br /&gt;
 %define pkgdata %{_datadir}/%{name}&lt;br /&gt;
 &lt;br /&gt;
 %description&lt;br /&gt;
 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.&lt;br /&gt;
 &lt;br /&gt;
 %prep&lt;br /&gt;
 &lt;br /&gt;
 %setup -n codeblocks-1.0&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 %{?suse_update_libdir:%{suse_update_libdir}}&lt;br /&gt;
 %{?suse_update_config:%{suse_update_config -f}}&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %build&lt;br /&gt;
   ./bootstrap&lt;br /&gt;
   %configure&lt;br /&gt;
   %__make&lt;br /&gt;
 &lt;br /&gt;
 %install&lt;br /&gt;
   %makeinstall&lt;br /&gt;
 &lt;br /&gt;
 %post&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
         /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %preun&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
    /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %clean&lt;br /&gt;
   test -n &amp;quot;$RPM_BUILD_ROOT&amp;quot; -a &amp;quot;$RPM_BUILD_ROOT&amp;quot; != &amp;quot;/&amp;quot; &amp;amp;&amp;amp; %__rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
 &lt;br /&gt;
 %files&lt;br /&gt;
 %defattr(-,root,root)&lt;br /&gt;
 %doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog&lt;br /&gt;
 &lt;br /&gt;
 %{_bindir}/*&lt;br /&gt;
 %{_libdir}/*&lt;br /&gt;
 %{_datadir}/application-registry/codeblocks.applications&lt;br /&gt;
 %{_datadir}/applications/codeblocks.desktop&lt;br /&gt;
 %{_datadir}/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png&lt;br /&gt;
 %{_datadir}/mime-info/*&lt;br /&gt;
 %{_datadir}/mime/packages/codeblocks.xml&lt;br /&gt;
 %{_datadir}/pixmaps/codeblocks.png&lt;br /&gt;
 %{pkgdata}/*&lt;br /&gt;
 &lt;br /&gt;
 %changelog&lt;br /&gt;
 * Sun Jan  1 2005 Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 - added distribution check (SuSE, Fedora, Mandriva/Mandrake)&lt;br /&gt;
 - added distribution specific Requires and BuildRequires&lt;br /&gt;
 - added run of update-mime-database if installed&lt;/div&gt;</summary>
		<author><name>84.156.10.84</name></author>
	</entry>
	<entry>
		<id>https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2133</id>
		<title>Installing Code::Blocks from source on RPM based distributions</title>
		<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2133"/>
		<updated>2006-01-01T17:23:33Z</updated>

		<summary type="html">&lt;p&gt;84.156.10.84: /* Compiling the CVS/SVN version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== General instructions ===&lt;br /&gt;
&lt;br /&gt;
The build requirements in the source RPM are set to a minimum. So it isn&#039;t checked whether wxGTK is installed or not. So you have to take a look at it yourself.&lt;br /&gt;
&lt;br /&gt;
This has to be installed:&lt;br /&gt;
# wxGTK and its devel package&lt;br /&gt;
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)&lt;br /&gt;
&lt;br /&gt;
=== Compiling the Release Candidate 2 ===&lt;br /&gt;
&lt;br /&gt;
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]&lt;br /&gt;
&lt;br /&gt;
2. Build the binary package as root&lt;br /&gt;
 rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm&lt;br /&gt;
&lt;br /&gt;
3. The binary RPM should be in one of the subdirectories of /usr/src/packages/RPMS&lt;br /&gt;
&lt;br /&gt;
=== Compiling the CVS/SVN version ===&lt;br /&gt;
&lt;br /&gt;
1. You need a fresh CVS/SVN version, no ./bootstrap or anything else should be done before in this directory !&lt;br /&gt;
&lt;br /&gt;
2. add the directory codeblocks to an tgz archive named codeblocks-1.0svn.tgz&lt;br /&gt;
 tar -czf codeblocks-1.0svn.tgz codeblocks&lt;br /&gt;
&lt;br /&gt;
3. copy the archive in the directory /usr/src/packages/SOURCES and the Specfile to /usr/src/packages/SPECS/codeblocks.spec &lt;br /&gt;
&lt;br /&gt;
4. build the binary package as root with&lt;br /&gt;
 rpmbuild -bb /usr/src/packages/SPECS/codeblocks.spec&lt;br /&gt;
&lt;br /&gt;
5. the package will be in one of the subdirectories of /usr/src/packages/RPMS/&lt;br /&gt;
&lt;br /&gt;
6. Install it and enjoy !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use this as specfile:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 %define _fedora		%(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _mandrake	%(if [ -f /etc/mandrake-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _suse		%(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 &lt;br /&gt;
 %define req_wxgtk	2.6.0&lt;br /&gt;
 &lt;br /&gt;
 Name:			codeblocks&lt;br /&gt;
 Version:		1.0&lt;br /&gt;
 Release:		svn&lt;br /&gt;
 Summary:		OpenSource Cross Platform Free C++ IDE&lt;br /&gt;
 Group:			Development/Tools/IDE&lt;br /&gt;
 License:		GPL&lt;br /&gt;
 URL:			https://www.codeblocks.org/&lt;br /&gt;
 Packager:		Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 Source:		%{name}-%{version}%{release}.tgz&lt;br /&gt;
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot&lt;br /&gt;
 Provides:		codeblocks&lt;br /&gt;
 Requires:		libgcc, libstdc++&lt;br /&gt;
 &lt;br /&gt;
 %if %_fedora&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_mandrake&lt;br /&gt;
 Requires:		libwxgtku2.6 &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	libwxgtku2.6 &amp;gt;= %{req_wxgtk}, libwxgtku2.6-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool, update-desktop-files&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 BuildRequires:	gcc-c++, make, gettext&lt;br /&gt;
 BuildRequires:	libstdc++, libstdc++-devel, autoconf, automake, libtool&lt;br /&gt;
 BuildRequires:	zip&lt;br /&gt;
 BuildRequires:	dos2unix&lt;br /&gt;
 &lt;br /&gt;
 %define pkgdata %{_datadir}/%{name}&lt;br /&gt;
 &lt;br /&gt;
 %description&lt;br /&gt;
 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.&lt;br /&gt;
 &lt;br /&gt;
 %prep&lt;br /&gt;
 &lt;br /&gt;
 %setup -n codeblocks-1.0&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 %{?suse_update_libdir:%{suse_update_libdir}}&lt;br /&gt;
 %{?suse_update_config:%{suse_update_config -f}}&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %build&lt;br /&gt;
   ./bootstrap&lt;br /&gt;
   %configure&lt;br /&gt;
   %__make&lt;br /&gt;
 &lt;br /&gt;
 %install&lt;br /&gt;
   %makeinstall&lt;br /&gt;
 &lt;br /&gt;
 %post&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
         /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %preun&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
    /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %clean&lt;br /&gt;
   test -n &amp;quot;$RPM_BUILD_ROOT&amp;quot; -a &amp;quot;$RPM_BUILD_ROOT&amp;quot; != &amp;quot;/&amp;quot; &amp;amp;&amp;amp; %__rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
 &lt;br /&gt;
 %files&lt;br /&gt;
 %defattr(-,root,root)&lt;br /&gt;
 %doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog&lt;br /&gt;
 &lt;br /&gt;
 %{_bindir}/*&lt;br /&gt;
 %{_libdir}/*&lt;br /&gt;
 %{_datadir}/application-registry/codeblocks.applications&lt;br /&gt;
 %{_datadir}/applications/codeblocks.desktop&lt;br /&gt;
 %{_datadir}/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png&lt;br /&gt;
 %{_datadir}/mime-info/*&lt;br /&gt;
 %{_datadir}/mime/packages/codeblocks.xml&lt;br /&gt;
 %{_datadir}/pixmaps/codeblocks.png&lt;br /&gt;
 %{pkgdata}/*&lt;br /&gt;
 &lt;br /&gt;
 %changelog&lt;br /&gt;
 * Sun Jan  1 2005 Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 - added distribution check (SuSE, Fedora, Mandriva/Mandrake)&lt;br /&gt;
 - added distribution specific Requires and BuildRequires&lt;br /&gt;
 - added run of update-mime-database if installed&lt;/div&gt;</summary>
		<author><name>84.156.10.84</name></author>
	</entry>
	<entry>
		<id>https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2132</id>
		<title>Installing Code::Blocks from source on RPM based distributions</title>
		<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2132"/>
		<updated>2006-01-01T17:18:26Z</updated>

		<summary type="html">&lt;p&gt;84.156.10.84: /* Compiling the CVS/SVN version */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== General instructions ===&lt;br /&gt;
&lt;br /&gt;
The build requirements in the source RPM are set to a minimum. So it isn&#039;t checked whether wxGTK is installed or not. So you have to take a look at it yourself.&lt;br /&gt;
&lt;br /&gt;
This has to be installed:&lt;br /&gt;
# wxGTK and its devel package&lt;br /&gt;
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)&lt;br /&gt;
&lt;br /&gt;
=== Compiling the Release Candidate 2 ===&lt;br /&gt;
&lt;br /&gt;
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]&lt;br /&gt;
&lt;br /&gt;
2. Build the binary package as root&lt;br /&gt;
 rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm&lt;br /&gt;
&lt;br /&gt;
3. The binary RPM should be in one of the subdirectories of /usr/src/packages/RPMS&lt;br /&gt;
&lt;br /&gt;
=== Compiling the CVS/SVN version ===&lt;br /&gt;
&lt;br /&gt;
1. You need a fresh CVS/SVN version, no ./bootstrap or anything else should be done before in this directory !&lt;br /&gt;
&lt;br /&gt;
2. add the directory codeblocks to an tar.gz archive named codeblocks-1.0-svn.tar.gz&lt;br /&gt;
 tar -czf codeblocks-1.0-svn.tgz codeblocks&lt;br /&gt;
&lt;br /&gt;
3. copy the archive in the directory /usr/src/packages/SOURCES and the Specfile to /usr/src/packages/SPECS/codeblocks.spec &lt;br /&gt;
&lt;br /&gt;
4. build the binary package as root with&lt;br /&gt;
 rpmbuild -bb /usr/src/packages/SPECS/codeblocks.spec&lt;br /&gt;
&lt;br /&gt;
5. the package will be in one of the subdirectories of /usr/src/packages/RPMS/&lt;br /&gt;
&lt;br /&gt;
6. Install it and enjoy !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use this as specfile:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 %define _fedora		%(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _mandrake	%(if [ -f /etc/mandrake-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _suse		%(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 &lt;br /&gt;
 %define req_wxgtk	2.6.0&lt;br /&gt;
 &lt;br /&gt;
 Name:			codeblocks&lt;br /&gt;
 Version:		1.0&lt;br /&gt;
 Release:		svn&lt;br /&gt;
 Summary:		OpenSource Cross Platform Free C++ IDE&lt;br /&gt;
 Group:			Development/Tools/IDE&lt;br /&gt;
 License:		GPL&lt;br /&gt;
 URL:			https://www.codeblocks.org/&lt;br /&gt;
 Packager:		Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 Source:		%{name}-%{version}%{release}.tgz&lt;br /&gt;
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot&lt;br /&gt;
 Provides:		codeblocks&lt;br /&gt;
 Requires:		libgcc, libstdc++&lt;br /&gt;
 &lt;br /&gt;
 %if %_fedora&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_mandrake&lt;br /&gt;
 Requires:		libwxgtku2.6 &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	libwxgtku2.6 &amp;gt;= %{req_wxgtk}, libwxgtku2.6-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool, update-desktop-files&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 BuildRequires:	gcc-c++, make, gettext&lt;br /&gt;
 BuildRequires:	libstdc++, libstdc++-devel, autoconf, automake, libtool&lt;br /&gt;
 BuildRequires:	zip&lt;br /&gt;
 BuildRequires:	dos2unix&lt;br /&gt;
 &lt;br /&gt;
 %define pkgdata %{_datadir}/%{name}&lt;br /&gt;
 &lt;br /&gt;
 %description&lt;br /&gt;
 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.&lt;br /&gt;
 &lt;br /&gt;
 %prep&lt;br /&gt;
 &lt;br /&gt;
 %setup -n codeblocks-1.0&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 %{?suse_update_libdir:%{suse_update_libdir}}&lt;br /&gt;
 %{?suse_update_config:%{suse_update_config -f}}&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %build&lt;br /&gt;
   ./bootstrap&lt;br /&gt;
   %configure&lt;br /&gt;
   %__make&lt;br /&gt;
 &lt;br /&gt;
 %install&lt;br /&gt;
   %makeinstall&lt;br /&gt;
 &lt;br /&gt;
 %post&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
         /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %preun&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
    /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %clean&lt;br /&gt;
   test -n &amp;quot;$RPM_BUILD_ROOT&amp;quot; -a &amp;quot;$RPM_BUILD_ROOT&amp;quot; != &amp;quot;/&amp;quot; &amp;amp;&amp;amp; %__rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
 &lt;br /&gt;
 %files&lt;br /&gt;
 %defattr(-,root,root)&lt;br /&gt;
 %doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog&lt;br /&gt;
 &lt;br /&gt;
 %{_bindir}/*&lt;br /&gt;
 %{_libdir}/*&lt;br /&gt;
 %{_datadir}/application-registry/codeblocks.applications&lt;br /&gt;
 %{_datadir}/applications/codeblocks.desktop&lt;br /&gt;
 %{_datadir}/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png&lt;br /&gt;
 %{_datadir}/mime-info/*&lt;br /&gt;
 %{_datadir}/mime/packages/codeblocks.xml&lt;br /&gt;
 %{_datadir}/pixmaps/codeblocks.png&lt;br /&gt;
 %{pkgdata}/*&lt;br /&gt;
 &lt;br /&gt;
 %changelog&lt;br /&gt;
 * Sun Jan  1 2005 Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 - added distribution check (SuSE, Fedora, Mandriva/Mandrake)&lt;br /&gt;
 - added distribution specific Requires and BuildRequires&lt;br /&gt;
 - added run of update-mime-database if installed&lt;/div&gt;</summary>
		<author><name>84.156.10.84</name></author>
	</entry>
	<entry>
		<id>https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2131</id>
		<title>Installing Code::Blocks from source on RPM based distributions</title>
		<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2131"/>
		<updated>2006-01-01T17:13:43Z</updated>

		<summary type="html">&lt;p&gt;84.156.10.84: /* General instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== General instructions ===&lt;br /&gt;
&lt;br /&gt;
The build requirements in the source RPM are set to a minimum. So it isn&#039;t checked whether wxGTK is installed or not. So you have to take a look at it yourself.&lt;br /&gt;
&lt;br /&gt;
This has to be installed:&lt;br /&gt;
# wxGTK and its devel package&lt;br /&gt;
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)&lt;br /&gt;
&lt;br /&gt;
=== Compiling the Release Candidate 2 ===&lt;br /&gt;
&lt;br /&gt;
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]&lt;br /&gt;
&lt;br /&gt;
2. Build the binary package as root&lt;br /&gt;
 rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm&lt;br /&gt;
&lt;br /&gt;
3. The binary RPM should be in one of the subdirectories of /usr/src/packages/RPMS&lt;br /&gt;
&lt;br /&gt;
=== Compiling the CVS/SVN version ===&lt;br /&gt;
&lt;br /&gt;
1. You need a fresh CVS/SVN version, no ./bootstrap or anything else should be done before in this directory !&lt;br /&gt;
&lt;br /&gt;
2. add the directory codeblocks to an tar.gz archive named codeblocks-1.0-cvs.tar.gz&lt;br /&gt;
 tar -czf codeblocks-1.0-cvs.tgz codeblocks&lt;br /&gt;
&lt;br /&gt;
3. copy the archive in the directory /usr/src/packages/SOURCES and the Specfile to /usr/src/packages/SPECS/codeblocks.spec &lt;br /&gt;
&lt;br /&gt;
4. build the binary package as root with&lt;br /&gt;
 rpmbuild -bb /usr/src/packages/SPECS/codeblocks.spec&lt;br /&gt;
&lt;br /&gt;
5. the package will be in one of the subdirectories of /usr/src/packages/RPMS/&lt;br /&gt;
&lt;br /&gt;
6. Install it and enjoy !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use this as specfile:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 %define _fedora		%(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _mandrake	%(if [ -f /etc/mandrake-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _suse		%(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 &lt;br /&gt;
 %define req_wxgtk	2.6.0&lt;br /&gt;
 &lt;br /&gt;
 Name:			codeblocks&lt;br /&gt;
 Version:		1.0&lt;br /&gt;
 Release:		svn&lt;br /&gt;
 Summary:		OpenSource Cross Platform Free C++ IDE&lt;br /&gt;
 Group:			Development/Tools/IDE&lt;br /&gt;
 License:		GPL&lt;br /&gt;
 URL:			https://www.codeblocks.org/&lt;br /&gt;
 Packager:		Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 Source:		%{name}-%{version}%{release}.tgz&lt;br /&gt;
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot&lt;br /&gt;
 Provides:		codeblocks&lt;br /&gt;
 Requires:		libgcc, libstdc++&lt;br /&gt;
 &lt;br /&gt;
 %if %_fedora&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_mandrake&lt;br /&gt;
 Requires:		libwxgtku2.6 &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	libwxgtku2.6 &amp;gt;= %{req_wxgtk}, libwxgtku2.6-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool, update-desktop-files&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 BuildRequires:	gcc-c++, make, gettext&lt;br /&gt;
 BuildRequires:	libstdc++, libstdc++-devel, autoconf, automake, libtool&lt;br /&gt;
 BuildRequires:	zip&lt;br /&gt;
 BuildRequires:	dos2unix&lt;br /&gt;
 &lt;br /&gt;
 %define pkgdata %{_datadir}/%{name}&lt;br /&gt;
 &lt;br /&gt;
 %description&lt;br /&gt;
 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.&lt;br /&gt;
 &lt;br /&gt;
 %prep&lt;br /&gt;
 &lt;br /&gt;
 %setup -n codeblocks-1.0&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 %{?suse_update_libdir:%{suse_update_libdir}}&lt;br /&gt;
 %{?suse_update_config:%{suse_update_config -f}}&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %build&lt;br /&gt;
   ./bootstrap&lt;br /&gt;
   %configure&lt;br /&gt;
   %__make&lt;br /&gt;
 &lt;br /&gt;
 %install&lt;br /&gt;
   %makeinstall&lt;br /&gt;
 &lt;br /&gt;
 %post&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
         /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %preun&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
    /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %clean&lt;br /&gt;
   test -n &amp;quot;$RPM_BUILD_ROOT&amp;quot; -a &amp;quot;$RPM_BUILD_ROOT&amp;quot; != &amp;quot;/&amp;quot; &amp;amp;&amp;amp; %__rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
 &lt;br /&gt;
 %files&lt;br /&gt;
 %defattr(-,root,root)&lt;br /&gt;
 %doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog&lt;br /&gt;
 &lt;br /&gt;
 %{_bindir}/*&lt;br /&gt;
 %{_libdir}/*&lt;br /&gt;
 %{_datadir}/application-registry/codeblocks.applications&lt;br /&gt;
 %{_datadir}/applications/codeblocks.desktop&lt;br /&gt;
 %{_datadir}/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png&lt;br /&gt;
 %{_datadir}/mime-info/*&lt;br /&gt;
 %{_datadir}/mime/packages/codeblocks.xml&lt;br /&gt;
 %{_datadir}/pixmaps/codeblocks.png&lt;br /&gt;
 %{pkgdata}/*&lt;br /&gt;
 &lt;br /&gt;
 %changelog&lt;br /&gt;
 * Sun Jan  1 2005 Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 - added distribution check (SuSE, Fedora, Mandriva/Mandrake)&lt;br /&gt;
 - added distribution specific Requires and BuildRequires&lt;br /&gt;
 - added run of update-mime-database if installed&lt;/div&gt;</summary>
		<author><name>84.156.10.84</name></author>
	</entry>
	<entry>
		<id>https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2130</id>
		<title>Installing Code::Blocks from source on RPM based distributions</title>
		<link rel="alternate" type="text/html" href="https://wiki.next.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_RPM_based_distributions&amp;diff=2130"/>
		<updated>2006-01-01T17:10:30Z</updated>

		<summary type="html">&lt;p&gt;84.156.10.84: /* Compiling the CVS/SVN version */ Updated specfile + adding svn&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== General instructions ===&lt;br /&gt;
&lt;br /&gt;
The build requirements in the specfile and the source RPM are set to a minimum because there are two different names of the wxGTK packages (wxGTK and wxGTK2). So it isn&#039;t checked whether wxGTK is installed or not. So you have to take a look at it yourself.&lt;br /&gt;
&lt;br /&gt;
This has to be installed:&lt;br /&gt;
# wxGTK and its devel package&lt;br /&gt;
# wxGTK-xrc and its devel package (in some distributions included in the packages of point 1)&lt;br /&gt;
&lt;br /&gt;
=== Compiling the Release Candidate 2 ===&lt;br /&gt;
&lt;br /&gt;
1. Download the source RPM from [https://www.codeblocks.org/downloads.shtml www.codeblocks.org/downloads.shtml]&lt;br /&gt;
&lt;br /&gt;
2. Build the binary package as root&lt;br /&gt;
 rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm&lt;br /&gt;
&lt;br /&gt;
3. The binary RPM should be in one of the subdirectories of /usr/src/packages/RPMS&lt;br /&gt;
&lt;br /&gt;
=== Compiling the CVS/SVN version ===&lt;br /&gt;
&lt;br /&gt;
1. You need a fresh CVS/SVN version, no ./bootstrap or anything else should be done before in this directory !&lt;br /&gt;
&lt;br /&gt;
2. add the directory codeblocks to an tar.gz archive named codeblocks-1.0-cvs.tar.gz&lt;br /&gt;
 tar -czf codeblocks-1.0-cvs.tgz codeblocks&lt;br /&gt;
&lt;br /&gt;
3. copy the archive in the directory /usr/src/packages/SOURCES and the Specfile to /usr/src/packages/SPECS/codeblocks.spec &lt;br /&gt;
&lt;br /&gt;
4. build the binary package as root with&lt;br /&gt;
 rpmbuild -bb /usr/src/packages/SPECS/codeblocks.spec&lt;br /&gt;
&lt;br /&gt;
5. the package will be in one of the subdirectories of /usr/src/packages/RPMS/&lt;br /&gt;
&lt;br /&gt;
6. Install it and enjoy !&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Use this as specfile:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 %define _fedora		%(if [ -f /etc/fedora-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _mandrake	%(if [ -f /etc/mandrake-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 %define _suse		%(if [ -f /etc/SuSE-release ]; then echo 1; else echo 0; fi)&lt;br /&gt;
 &lt;br /&gt;
 %define req_wxgtk	2.6.0&lt;br /&gt;
 &lt;br /&gt;
 Name:			codeblocks&lt;br /&gt;
 Version:		1.0&lt;br /&gt;
 Release:		svn&lt;br /&gt;
 Summary:		OpenSource Cross Platform Free C++ IDE&lt;br /&gt;
 Group:			Development/Tools/IDE&lt;br /&gt;
 License:		GPL&lt;br /&gt;
 URL:			https://www.codeblocks.org/&lt;br /&gt;
 Packager:		Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 Source:		%{name}-%{version}%{release}.tgz&lt;br /&gt;
 BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot&lt;br /&gt;
 Provides:		codeblocks&lt;br /&gt;
 Requires:		libgcc, libstdc++&lt;br /&gt;
 &lt;br /&gt;
 %if %_fedora&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_mandrake&lt;br /&gt;
 Requires:		libwxgtku2.6 &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	libwxgtku2.6 &amp;gt;= %{req_wxgtk}, libwxgtku2.6-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 Requires:		wxGTK &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	wxGTK &amp;gt;= %{req_wxgtk}, wxGTK-devel &amp;gt;= %{req_wxgtk}&lt;br /&gt;
 BuildRequires:	intltool, update-desktop-files&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 BuildRequires:	gcc-c++, make, gettext&lt;br /&gt;
 BuildRequires:	libstdc++, libstdc++-devel, autoconf, automake, libtool&lt;br /&gt;
 BuildRequires:	zip&lt;br /&gt;
 BuildRequires:	dos2unix&lt;br /&gt;
 &lt;br /&gt;
 %define pkgdata %{_datadir}/%{name}&lt;br /&gt;
 &lt;br /&gt;
 %description&lt;br /&gt;
 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.&lt;br /&gt;
 &lt;br /&gt;
 %prep&lt;br /&gt;
 &lt;br /&gt;
 %setup -n codeblocks-1.0&lt;br /&gt;
 &lt;br /&gt;
 %if %_suse&lt;br /&gt;
 %{?suse_update_libdir:%{suse_update_libdir}}&lt;br /&gt;
 %{?suse_update_config:%{suse_update_config -f}}&lt;br /&gt;
 %endif&lt;br /&gt;
 &lt;br /&gt;
 %build&lt;br /&gt;
   ./bootstrap&lt;br /&gt;
   %configure&lt;br /&gt;
   %__make&lt;br /&gt;
 &lt;br /&gt;
 %install&lt;br /&gt;
   %makeinstall&lt;br /&gt;
 &lt;br /&gt;
 %post&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
         /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %preun&lt;br /&gt;
 if [ -x /usr/bin/update-mime-database ]; then&lt;br /&gt;
    /usr/bin/update-mime-database &amp;quot;%{_datadir}/mime&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 %clean&lt;br /&gt;
   test -n &amp;quot;$RPM_BUILD_ROOT&amp;quot; -a &amp;quot;$RPM_BUILD_ROOT&amp;quot; != &amp;quot;/&amp;quot; &amp;amp;&amp;amp; %__rm -rf $RPM_BUILD_ROOT&lt;br /&gt;
 &lt;br /&gt;
 %files&lt;br /&gt;
 %defattr(-,root,root)&lt;br /&gt;
 %doc README COPYING AUTHORS BUGS COMPILERS TODO NEWS ChangeLog&lt;br /&gt;
 &lt;br /&gt;
 %{_bindir}/*&lt;br /&gt;
 %{_libdir}/*&lt;br /&gt;
 %{_datadir}/application-registry/codeblocks.applications&lt;br /&gt;
 %{_datadir}/applications/codeblocks.desktop&lt;br /&gt;
 %{_datadir}/icons/gnome/48x48/mimetypes/gnome-mime-application-x-codeblocks.png&lt;br /&gt;
 %{_datadir}/mime-info/*&lt;br /&gt;
 %{_datadir}/mime/packages/codeblocks.xml&lt;br /&gt;
 %{_datadir}/pixmaps/codeblocks.png&lt;br /&gt;
 %{pkgdata}/*&lt;br /&gt;
 &lt;br /&gt;
 %changelog&lt;br /&gt;
 * Sun Jan  1 2005 Daniel Orb &amp;lt;danielorb2000@googlemail.com&amp;gt;&lt;br /&gt;
 - added distribution check (SuSE, Fedora, Mandriva/Mandrake)&lt;br /&gt;
 - added distribution specific Requires and BuildRequires&lt;br /&gt;
 - added run of update-mime-database if installed&lt;/div&gt;</summary>
		<author><name>84.156.10.84</name></author>
	</entry>
</feed>