This is the mail archive of the
cygwin-apps@sources.redhat.com
mailing list for the Cygwin project.
Last announcement for today (I hope) : buildscripts for automatisation of rpm-builds
- To: "cygwin-apps at sources dot redhat dot com" <cygwin-apps at sources dot redhat dot com>
- Subject: Last announcement for today (I hope) : buildscripts for automatisation of rpm-builds
- From: "Michael Ring" <Michael dot Ring at t-mobil dot de> (Tel +49 228/936-2621)
- Date: 22 Aug 2000 15:21:35 +0000
- Autoforwarded: FALSE
- Discarded-X400-MTS-Extensions: (43) (12) (2) (135) (115) (5) (6) (3)
- Original-Encoded-Information-Types: (1) (0) (10021) (7) (1) (0) (6), (1) (0) (10021) (7) (1) (0) (1)
- X400-Content-Identifier: E3602IPM3Q3FK
- X400-Content-Type: P2-1988 (22)
- X400-MTS-Identifier: [/PRMD=DTM/ADMD=DBP/C=DE/;AA5BA2E011D4785000AA25AB]
- X400-Originator: Michael.Ring@t-mobil.de
- X400-Received: by mta MB400-dxcast in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 22 Aug 2000 15:21:35 +0000
- X400-Received: by mta MB400-DXCW02 in /PRMD=DTM/ADMD=DBP/C=DE/;Relayed ; 22 Aug 2000 15:21:35 +0000
- X400-Recipients: cygwin-apps@sources.redhat.com (Physical Forwarding Address Requested)
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