Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: 22 Aug 2000 15:21:35 +0000 Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3) From: "Michael Ring" (Tel +49 228/936-2621) To: "cygwin-apps AT sources DOT redhat DOT com" Subject: Last announcement for today (I hope) : buildscripts for automatisation of rpm-builds Importance: normal Autoforwarded: FALSE Message-Id: Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1) I've uploaded a new package named build-rpm-1.0-1.tar.gz ftp://sources.redhat.com/pub/cygwin/private/cygwin-rpm-712/tar This package includes my build-scripts and some 'meat' to play arround with rpm How to automate the build process for rpm ========================================= I have provided some small script that automate the build of software based on rpm. The script is called build.sh and also uses config.guess. It expects source-code and patches to be in RPM's standard directories /usr/src/redhat/{RPMS,SRPMS,SPECS,SOURCES} and the scripts themselves should reside in /usr/src/redhat/ If you unpack the tar files from / everything is put in place. The build script performs the job ob creating/updating rpm-packages. Based on the version info in the spec-file new software-packages are built, old ones are deinstalled before new ones are installed. The information what has do be build and on which platform is hardcoded in the script. If you want to learn how SPEC-Files are written the cd to /usr/src/redhat/SPECS, you will find a collection of wirking spec-files. How to bootstrap Cygwin + RPM ============================= If you want to use rpm from scratch and do not want to use any of the pre-installed packages that were announced today the bootstrap bootstrap.sh and the bootstrap directory are for you. All necessary tools are built and stored in a directory CYGWIN-1.1.4 This directory is also respected in the build.sh script. Bootstrapping also works on other platforms. I use it @work to build a rpm-based distribution of gnu-tools for Sun-Solaris and Compaq-Tru64. Other platforms might also work. Platform specific patches are included in the SPEC-Files. Have fun, Michael Ring