Google Site SearchFN Site Search FN Blog Login FN Blog Login
Site Navigation:
 
 

HOWTO: Rebuilding Gaim source RPM package for Fedora Core

by Thomas Chung on Sep 20, 2004

Gaim is a multi-protocol instant messaging (IM) client for Linux, BSD, MacOS X, and Windows. It is compatible with AIM and ICQ (Oscar protocol), MSN Messenger, Yahoo!, IRC, Jabber, Gadu-Gadu, and Zephyr networks.

In this article you will find out how to rebuild Gaim source RPM package for Fedora Core 1 and Fedora Core 2 for the latest version 1.0.0 which was released on Sep 17, 2004. At the end of this article, you will also find binary RPM package for Fedora Core 1 and Fedora Core 2.

First, download Gaim source RPM package from http://prdownloads.sourceforge.net/gaim/gaim-1.0.0-0.src.rpm?download

From Fedora Core 1 Test System:

[tchung@localhost gaim]$ ls
gaim-1.0.0-0.src.rpm
[tchung@localhost gaim]$ rpmbuild --rebuild gaim-1.0.0-0.src.rpm
Installing gaim-1.0.0-0.src.rpm
warning: user mark does not exist - using root
warning: group mark does not exist - using root
warning: user mark does not exist - using root
warning: group mark does not exist - using root
error: Failed build dependencies:
        libao-devel is needed by gaim-1.0.0-0
        mozilla-nss-devel is needed by gaim-1.0.0-0
Notice you have dependencies in order to rebuild Gaim source RPM package. To install missing dependencies:
[tchung@localhost gaim]$ sudo yum install libao-devel mozilla-nss-devel
Gathering header information file(s) from server(s)
Server: Fedora Core 1 - i386 - Base
Server: Fedora Core 1 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: mozilla-nss-devel 37:1.4.1-18.i386]
[install: libao-devel 0.8.3-5.i386]
Is this ok [y/N]: y
Running test transaction:
Test transaction complete, Success!
libao-devel 100 % done 1/2
mozilla-nss-devel 100 % done 2/2
Installed:  mozilla-nss-devel 37:1.4.1-18.i386 libao-devel 0.8.3-5.i386
Transaction(s) Complete

Now you should able to rebuild Gaim source RPM package without dependency problem for Fedora Core 1.

[tchung@localhost gaim]$ rpmbuild --rebuild gaim-1.0.0-0.src.rpm
Installing gaim-1.0.0-0.src.rpm
warning: user mark does not exist - using root
warning: group mark does not exist - using root
warning: user mark does not exist - using root
warning: group mark does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.65508
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf gaim-1.0.0
+ /usr/bin/gzip -dc /home/tchung/rpmbuild/SOURCES/gaim-1.0.0.tar.gz
+ tar -xvvf -
drwxrwxrwx 501/501           0 2004-09-17 15:05:17 gaim-1.0.0/
drwxrwxrwx 501/501           0 2004-09-17 15:04:30 gaim-1.0.0/doc/
-rw-rw-r-- 501/501         382 2004-07-27 17:49:12 gaim-1.0.0/doc/Makefile.am
-rw-rw-r-- 501/501       16172 2004-09-17 15:03:26 gaim-1.0.0/doc/Makefile.in
-rw-rw-r-- 501/501        1868 2004-04-13 20:13:08 gaim-1.0.0/doc/gaim-remote.1.in
-rw-rw-r-- 501/501       20907 2004-08-28 13:16:40 gaim-1.0.0/doc/gaim.1.in
-rw-rw-r-- 501/501        3206 2003-01-17 01:27:14 gaim-1.0.0/doc/the_penguin.txt

... omitted ...

Wrote: /home/tchung/rpmbuild/RPMS/i386/gaim-1.0.0-0.i386.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/gaim-devel-1.0.0-0.i386.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/gaim-debuginfo-1.0.0-0.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.78672
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd gaim-1.0.0
+ rm -rf /var/tmp/gaim-1.0.0-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.78672
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf gaim-1.0.0
+ exit 0
[tchung@localhost gaim]$

From Fedora Core 2 Test System:

[tchung@localhost gaim]$ ls
gaim-1.0.0-0.src.rpm
[tchung@localhost gaim]$ rpmbuild --rebuild gaim-1.0.0-0.src.rpm
Installing gaim-1.0.0-0.src.rpm
warning: user mark does not exist - using root
warning: group mark does not exist - using root
warning: user mark does not exist - using root
warning: group mark does not exist - using root
error: Failed build dependencies:
        libao-devel is needed by gaim-1.0.0-0
        mozilla-nss-devel is needed by gaim-1.0.0-0
[tchung@localhost gaim]$
Once again, notice you have dependencies in order to rebuild Gaim source RPM package. To install missing dependencies:
[tchung@localhost gaim]$ sudo yum install libao-devel mozilla-nss-devel
Gathering header information file(s) from server(s)
Server: Fedora Core 2 - i386 - Base
Server: Fedora Core 2 - i386 - Released Updates
Finding updated packages
Downloading needed headers
Resolving dependencies
Dependencies resolved
I will do the following:
[install: mozilla-nss-devel 37:1.7.2-0.2.0.i386]
[install: libao-devel 0.8.4-2.1.i386]
Is this ok [y/N]: y
Downloading Packages
Running test transaction:
Test transaction complete, Success!
libao-devel 100 % done 1/2
mozilla-nss-devel 100 % done 2/2
Installed:  mozilla-nss-devel 37:1.7.2-0.2.0.i386 libao-devel 0.8.4-2.1.i386
Transaction(s) Complete
[tchung@localhost gaim]$
Now you should able to rebuild Gaim source RPM package without dependency problem for Fedora Core 2.
[tchung@localhost gaim]$ rpmbuild --rebuild gaim-1.0.0-0.src.rpm
Installing gaim-1.0.0-0.src.rpm
warning: user mark does not exist - using root
warning: group mark does not exist - using root
warning: user mark does not exist - using root
warning: group mark does not exist - using root
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.86241
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf gaim-1.0.0
+ /usr/bin/gzip -dc /home/tchung/rpmbuild/SOURCES/gaim-1.0.0.tar.gz
+ tar -xvvf -
drwxrwxrwx 501/501           0 2004-09-17 15:05:17 gaim-1.0.0/
drwxrwxrwx 501/501           0 2004-09-17 15:04:30 gaim-1.0.0/doc/
-rw-rw-r-- 501/501         382 2004-07-27 17:49:12 gaim-1.0.0/doc/Makefile.am
-rw-rw-r-- 501/501       16172 2004-09-17 15:03:26 gaim-1.0.0/doc/Makefile.in
-rw-rw-r-- 501/501        1868 2004-04-13 20:13:08 gaim-1.0.0/doc/gaim-remote.1.in
-rw-rw-r-- 501/501       20907 2004-08-28 13:16:40 gaim-1.0.0/doc/gaim.1.in
-rw-rw-r-- 501/501        3206 2003-01-17 01:27:14 gaim-1.0.0/doc/the_penguin.txt

... omitted ...

Wrote: /home/tchung/rpmbuild/RPMS/i386/gaim-1.0.0-0.i386.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/gaim-devel-1.0.0-0.i386.rpm
Wrote: /home/tchung/rpmbuild/RPMS/i386/gaim-debuginfo-1.0.0-0.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.52628
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ cd gaim-1.0.0
+ rm -rf /var/tmp/gaim-1.0.0-root
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.52628
+ umask 022
+ cd /home/tchung/rpmbuild/BUILD
+ rm -rf gaim-1.0.0
+ exit 0
[tchung@localhost gaim]$
Here are Gaim binary RPM packages rebuilt from Gaim source RPM package:

- Fedora Core 1
- Fedora Core 2