If you want to build KWord from source code, you should:
Procedure A.2.
Ensure your computer has all the required software installed and in working condition (excluding KOffice of course). You can find the system requirements by following this link: System Requirements.
Download the KOffice source file into a temporary directory.
If the filename ends in .src.rpm (Red Hat® Package Management file), the source code for KOffice can be installed with:
$ rpm-Ufilename
If the filename ends in .src.tar.gz or .src.tgz (a tarball file), the source code for KOffice can be installed with:
$ tar -xzvf filename
The source code for KOffice should now be installed on your system.