I'm trying to build an RPM for the game
Edgar. The game only came with a makefile, so I've been trying to use that. When it gets to the part in the specfile about installing it rpmbuild keep trying to install it in the usual place (/usr/local/). I'm trying to make it go to the right place, but it won't work.
I've looked into the makefile and it uses the standard variables to install it.
PREFIX = $(DESTDIR)/usr
BIN_DIR = $(PREFIX)/games/
DOC_DIR = $(PREFIX)/share/doc/$(PROG)/
ICON_DIR = $(PREFIX)/share/icons/hicolor/
## And so onSo I tried setting "PREFIX" with the command "%{buildroot}". However that doesn't work. Then I tried passing "DESTDIR=$RPM_BUILD_ROOT" but that doesn't work, either. If you're wondering, here's the commands I used:
%build
make VERSION=%{version} RELEASE=%{release} PREFIX=%{buildroot}
##That didn't work. So I tried:
%install
make install DESTDIR=$RPM_BUILD_ROOT
Any ideas on making this build?