Hey everyone,
I am trying RPM and find myself frustrated.  I am testing the functionality of packaging with RPM on my Linux machine.  I have some small source code in my /development area that I am trying to package.  However, when I go to redirect the build area(with the command --buildroot or the Buildroot defined in the spec) it does not work, it still assumes the usr/src/redhat/Build and such
my .spec file and makefile looks like this..

#

# Sample spec file for IM app SPECS

#

Summary: A IM silly test app for packing a RPM

Name: IM

Version: 0.1

Release: 1

Copyright: No copyright info

Group: Applications/Test

BuildRoot:/development/

Source:/development

URL:http://www.availsolutions.com

Distribution: MelissaIM

Vendor: AvailSolutions

Packager: Melissa Rickman <[EMAIL PROTECTED]>

%description

A test application that querys the system. Test to package this application

%prep

#%setup

%build

make

%install

make install

%files

/TEST/main

%clean

_________________________________________________________________

# Makefile

#will have to do a system check before we label inc dir or take the header with us

INCDIR=/usr/include

CC=gcc

CFLAGS=-O

OBJS=Device.o InstallManager.o Registry.o main.o

main:$(OBJS)

$(CC) -o main $(CFLAGS) $(OBJS)

Device.o:Device.cpp Device.h InstallManager.h $(INCDIR)/stdio.h

$(CC) $(CLFLAGS) -c Device.cpp

InstallManager.o: InstallManager.cpp InstallManager.h $(INCDIR)/stdio.h

$(CC) $(CLFLAGS) -c InstallManager.cpp

Registry.o:Registry.cpp Registry.h InstallManager.h $(INCDIR)/stdio.h

$(CC) $(CLFLAGS) -c Registry.cpp

install:

pwd

mkdir TEST

cp main ./TEST

clean:

rm -f $(OBJS) main

I am new to the install developer world so any advice/help would be greatly appreciated.

Thankyou

Melissa M. Rickman
[EMAIL PROTECTED]
Avail Solutions

Reply via email to