| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
-----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-discuss mailing list
gnu-crypto-discuss@xxxxxxxxxx
http://mail.nongnu.org/mailman/listinfo/gnu-crypto-discuss
[Home] [Gnu Classpath] [Linux Kernel] [Linux Cryptography] [Fedora] [Fedora Directory] [Red Hat Development] [Red Hat 9 Bible] [Fedora Bible] [Red Hat 9] [Network Security Reading]
![]() |