-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2006-03-22 a las 10:45 +0100, Manuel.Fuentes.Sorrivas@sergas.es escribió:
Problema: ¿sabeis dónde hay alguna guía (mejor en español) dónde puede ver cómo se reconstruye un paquete RPM?
En la web de suse hay algo por ahí, luego busco el enlace. [...] Corto y pego de varios emilios - no he verificado los enlaces: ] There's the Package Conventions document that is more or less up to ] date: ] http://www.suse.de/~mmj/Package-Conventions/SuSE-Package-Conventions.html - -+- http://www.rpm.org/RPM-HOWTO/build.html#SPEC-FILE - -+- http://www.rpm.org/max-rpm/... - -+- ] For building SuSE rpms I'd suggest to give the build script a try. The ] package build.rpm contains a script that builds a chroot environment ] using the CDs/DVDs. - -+- http://www.garsan.ws/documentos/COMOS/RPM-COMO/ - -+- The guide can be found under the "Goodies" section of our website here: http://www.gurulabs.com/goodies/guru+guides.php - -+-
Qué he hecho: me he bajado el paquete RPM con sus fuentes de opensuse.org. Lo he instalado en mi máquinal. Se ha instalado en el
Copio de un email en inglés mio de hace tiempo; el rpm ha cambiado algo, antes esto estaba dentro del comando "rpm", y ahora está en el "rpmbuild". Puede haber diferencias que no he verificado. Primero con rpm --install. Luego, para compilar, es "rpmbuild -bp fichero.spec" en el directorio "/usr/src/packages/SPECS". En el manual busca las opciones de rpmbuild (-b?). El punto de comienzo, una vez "instalado" el src.rpm es expandirlo con: -bp Executes the "%prep" stage from the spec file. Normally this involves unpacking the sources and applying any patches. Es decir, expande las fuentes y aplica los parches. Los fuentes quedan en '/usr/src/packages/BUILD/' y el fichero spec en '/usr/src/packages/SPECS/'. Si quieres modificar las opciones de compilación, hazlo en el fichero spec. Prueba primero el configure, y cuando tengas el resultado que buscas, edita el spec - o edita el spec directamente. Entonces, ya puedes compilar. Las opciones son: -bl Do a "list check". The "%files" section from the spec file is macro expanded, and checks are made to verify that each file exists. -bc Do the "%build" stage from the spec file (after doing the prep stage). This generally involves the equivalent of a "make". -bi Do the "%install" stage from the spec file (after doing the prep and build stages). This generally involves the equivalent of a "make install". -bb Build a binary package (after doing the prep, build, and install stages). -bs Build just the source package (after doing the prep, build, and install stages). -ba Build binary and source packages (after doing the prep, build, and install stages). Yo usaría "-bb". O un "-bc", seguido de un "-bb", aunque repita pasos.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario. Si usted no es el destinatario original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada.
Note: The information in this message and any attachments that may be included with it, is private and confidential and is directed exclusively to the message's recipient. If you are not the original recipient of this message, please erase it. Distribution or copying of this message isn´t authorized.
- -- Saludos Carlos Robinson Claimer: Any email I receive will become my property. Disclaimers do not apply. Aviso: Cualquier correo que reciba será de mi propiedad. No se admiten restricciones (no consensuadas). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEId73tTMYHG2NR9URAvMQAJwO186o6YYZAiOe/Ja9tY239DM4qgCfeGtK WyGsa/WKISFiwbdeKdIYT0U= =01V4 -----END PGP SIGNATURE-----