wiki:dcap_rpm_building
Last modified 8 years ago Last modified on 11/12/09 17:31:52

Building dcap rpm packages

The dcap packages can be built from either the source code or the src.rpm.

Building SRPM from the source code

Download the src package, and expand the package and then type

make rpm

This will give you the default dcap rpms.

Wrote: /usr/src/redhat/SRPMS/dcap-1.9.3-7.src.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/dcap-1.9.3-7.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/libdcap-1.9.3-7.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/libdcap-devel-1.9.3-7.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/libdcap-tunnel-telnet-1.9.3-7.x86_64.rpm

To make the extra dcap tunnels you will need to install the src.rpm.

Building rpm's from the dcap source rpm

The dcap sub project now provides source rpms, this should allow easy porting from one rpm based distribution to another.

If you are not using exactly the operating system specified with an RPM you may need to to perform the following command

rpmbuild --rebuild package-1.0.src.rpm

or alternatively

rpm -i package-1.0.src.rpm
rpmbuild -ba /path/to/file.spec

This should allow you to build native packages, for your platform.

libgssTunnel.so rpm

dcap gsi tunnel no longer statically links to globus. This is primarily for maintenance issues. Two versions of Globus are packaged, the legacy version provided by VDT and used in Glite, and the more modern and conventional packaged version provided by EPEL, and used by NorduGrid?.

EPEL

To build the libdcap-tunnel-gsi rpm with EPEL globus;

type the following after installing the src.rpm

rpmbuild -ba -with epel /path/to/file.spec

VDT

To build the libdcap-tunnel-gsi rpm with VDT globus; type the following after installing the src.rpm

rpmbuild -ba -with vdt /path/to/file.spec