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

		<summary type="html">&lt;p&gt;Zemo: to match Specfile&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'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 version ===&lt;br /&gt;
&lt;br /&gt;
1. You need a fresh CVS 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;
'''Use this as Specfile:'''&lt;br /&gt;
&lt;br /&gt;
 Name:           codeblocks&lt;br /&gt;
 Version:        1.0&lt;br /&gt;
 Release:        cvs&lt;br /&gt;
 Summary:        An open source, 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@yahoo.de&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;
 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&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;
 %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;
 &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;
 &lt;br /&gt;
 &lt;br /&gt;
 %{pkgdata}/*&lt;/div&gt;</summary>
		<author><name>Zemo</name></author>
	</entry>
</feed>