|
Packit |
b099d7 |
Instructions for creating Motif RPMS.
|
|
Packit |
b099d7 |
--------------------------------------------
|
|
Packit |
b099d7 |
Written by Jonathan Nierenburg (jon@ics.com)
|
|
Packit |
b099d7 |
Initial Release: 03/17/2004
|
|
Packit |
b099d7 |
--------------------------------------------
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
1. Check the source out of CVS or download the source tarball.
|
|
Packit |
b099d7 |
-If you downloaded the tar ball it should have the filename:
|
|
Packit |
b099d7 |
motif-x.x.x.tar.gz.
|
|
Packit |
b099d7 |
Unzip the source tarball file.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
-If you checked out Motif from CVS do the following:
|
|
Packit |
b099d7 |
$ cd motif
|
|
Packit |
b099d7 |
$ ./autogen.sh
|
|
Packit |
b099d7 |
$ ./configure
|
|
Packit |
b099d7 |
$ make
|
|
Packit |
b099d7 |
$ make dist
|
|
Packit |
b099d7 |
You should now have an motif-x.x.x.tar.gz file in your motif
|
|
Packit |
b099d7 |
directory.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
2. Copy the motif-x.x.x.tar.gz to $RPMROOT/SOURCES
|
|
Packit |
b099d7 |
Note: $RPMROOT is usually /usr/src/redhat, /usr/src/RPMS, /usr/src/packaging
|
|
Packit |
b099d7 |
or something similar.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
3. Copy the motif/distro/xmbind file to $RPMROOT/SOURCES.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
4. Copy the motif/distro/motif.spec file into $RPMROOT/SPECS
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
5. Make any needed changes to the spec file such as version number or filename
|
|
Packit |
b099d7 |
updates.
|
|
Packit |
b099d7 |
Note: If you are building Mandrake RPMS you should append mdk to the end of
|
|
Packit |
b099d7 |
the Release variable.
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
6. As root, run the following command in $RPMROOT/SPECS:
|
|
Packit |
b099d7 |
rpmbuild -ba motif.spec
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
Note: If you are running an old version of rpm you will have to use:
|
|
Packit |
b099d7 |
rpm -ba motif.spec
|
|
Packit |
b099d7 |
|
|
Packit |
b099d7 |
The RPMS will be placed automatically into $RPMROOT/RPMS/$DEFAULT_ARCH/ and the source RPM will be placed in $RPMROOT/SRPMS.
|