Why are my binary files going into the bin/ folder

Paul Krauss pkrauss at cmcplace.com
Thu Jan 8 21:15:47 UTC 2009

Summary: XXXX Trading Platform
%define version 0.0.2
Name: XXXX
Version: %{version}
Release: 0
Copyright: commercial
Group: Applications/Financial
Source: XXXX-0.0.2.tar
#BuildRoot: /home/pkrauss/tempoutput/%{name}
BuildRoot: /opt/%{name}

XXXX Trading Platform

%setup -q


[ -d $RPM_BUILD_ROOT/bin ] || mkdir $RPM_BUILD_ROOT/bin
[ -d $RPM_BUILD_ROOT/scripts ] || mkdir $RPM_BUILD_ROOT/scripts
[ -d $RPM_BUILD_ROOT/conf ] || mkdir $RPM_BUILD_ROOT/conf
cp ./binary1 $RPM_BUILD_ROOT/bin
cp ./binary2 $RPM_BUILD_ROOT/bin
cp ./config1.xml $RPM_BUILD_ROOT/conf
cp ./library1.so $RPM_BUILD_ROOT/bin



-----Original Message-----
From: rpm-list-bounces at lists.rpm.org
[mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of
Greg_Swift at aotx.uscourts.gov
Sent: Thursday, January 08, 2009 2:55 PM
To: General discussion about the RPM package manager
Cc: rpm-list at lists.rpm.org; rpm-list-bounces at lists.rpm.org
Subject: Re: Why are my binary files going into the bin/ folder

> Creating a binary only rpm with 2 executables in it
> I am creating the *.rpm as a non-root user by setting the %_topdir
> in .rpmmacros
> My BuildRoot in the *.spec is set to /opt/%{name}
> My .rpm is created in the /RPMS folder and I ship it to my
> destination computer.
> However, when I install the rpm on the destination computer the
> binaries are put in the /bin/ folder
> Why aren't they going into the /opt/ folder like I wanted?

please attach your spec file.

Rpm-list mailing list
Rpm-list at lists.rpm.org

More information about the Rpm-list mailing list