[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNU Crypto] making gnu-crypto RPMs
From: |
Raif S. Naffah |
Subject: |
[GNU Crypto] making gnu-crypto RPMs |
Date: |
Sun, 30 Nov 2003 09:23:00 +1100 |
User-agent: |
KMail/1.5 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
hello all,
i just checked in an RPM spec file (under etc/) to facilitate building
Red Hat RPM packages (binary and source). if any one is interested in
having a go at improving, and/or adapting this file here is how i used
it to generate a binary and a source RPMs for Red Hat 9.
1. create a work directory for building gnu-crypto. i use "work'
where i build both the gcj-friendly and the non-gcj-friendly
versions.
2. under 'work' create a new directory 'gnu-crypto-2.0.0' i.e.
the ${name}-${version} of the release.
3. cd to this directory and invoke the 'init.sh' script found in
the directoty 'gcj' under gnu-crypto toplevel directory (your
CVS update directory).
4. cd .. (to 'work') and tar.bz2 the 'gnu-crypto-2.0.0' directory.
you should end up with 'gnu-crypto-2.0.0.tar.bz2' file there.
5. copy this tar.bz2 file to '/usr/src/redhat/SOURCES'
6. copy the spec file 'gnu-crypto-2.0.0-1-rh.spec' (in etc/ under
gnu-crypto toplevel directory), to '/usr/src/redhat/SPECS'
7. open a root console, or become root.
8. make sure you have GCC/GCJ 3.4 available on your PATH. also,
make sure you have the 'rpm-build' package installed; do
$ rpm -qa rpm-build
to check.
9. cd to /usr/src/redhat/SPECS.
10. run the following command:
$ rpmbuild -ba --clean gnu-crypto-2.0.0-1-rh.spec
11. if everything concludes normally, you should end up with
* no new directory(ies) under /usr/src/redhat/BUILD,
* two binary rpms under /usr/src/redhat/RPMS/i386, named
gnu-crypto-2.0.0-1.i386.rpm and
gnu-crypto-debuginfo-2.0.0-1.i386.rpm,
* one gnu-crypto-2.0.0-1.src.rpm under /usr/src/redhat/SRPMS.
cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Que du magnifique
iD8DBQE/yRxN+e1AKnsTRiERA180AKCGxp1FefJ5JBLDUE/2KoZoXtXrZgCgt5xr
MpR0nF1BEj4WN/NUcSnhjmM=
=BGiI
-----END PGP SIGNATURE-----
- [GNU Crypto] making gnu-crypto RPMs,
Raif S. Naffah <=