# $Id: lvm-tools-cvs.spec,v 1.6 2001/11/28 02:47:34 lars Exp lars $ ## Lars Kellogg-Stedman ## Based on the lvm-tools RPM from SGI. ## ## What is this? ## ## This spec file will build the LVM userspace tools from the ## CVS repository, giving you the freshest source possible. In ## order to minimize the load on the CVS server, the build process ## will only do a full checkout if there is not an existing local ## checkout of the repository. ## ## How do I use it? ## ## The following command will build source RPMS: ## ## # rpm -bb lvm-tools-cvs.spec ## ## You may encounter problems with the LVM tools if you compile them ## with some versions of gcc using optimization. On RedHat systems ## with kgcc installed, you can avoid these problems with the ## following command line: ## ## # rpm -bb lvm-tools-cvs.spec --with kgcc ## ## And that's it? ## ## Almost. Keep in mind that this spec file does *not* build the ## kernel-space portion of LVM. You'll need to do that yourself. %define use_kgcc 0 %{?_with_kgcc: %{expand: %%define use_kgcc 1}} %{?_without_kgcc: %{expand: %%define use_kgcc 0}} %if %{use_kgcc} %define ccompiler kgcc %else %define ccompiler gcc %endif Name: lvm-tools Version: cvs%(date +"%Y%m%d") Release: 2 Summary: LVM tools Group: System Environment/Base License: GPL #Packager: lars@larsshack.org URL: http://www.sistina.com/lvm/ Provides: lvm Autoreq: on Buildrequires: cvs BuildRoot: %{_tmppath}/lvm-%{version}-root %description Userland utilities for managing logical volumes. %prep export CVSPASS=$RPM_SOURCE_DIR/lvm-cvs-password if [ ! -d "$CVSPASS" ]; then cat > $CVSPASS < - added support for commandline selection of kgcc via --with-kgcc option.