RE: Why are my binary files going into the bin/ folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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}

%description
XXXX Trading Platform

%prep
%setup -q

%build

%install
[ -d $RPM_BUILD_ROOT ] || mkdir $RPM_BUILD_ROOT
[ -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

%clean


%files
/bin/binary1
/bin/binary2
/conf/config.xml
/bin/library1.so









-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxxxxx
[mailto:rpm-list-bounces@xxxxxxxxxxxxx] On Behalf Of
Greg_Swift@xxxxxxxxxxxxxxxxx
Sent: Thursday, January 08, 2009 2:55 PM
To: General discussion about the RPM package manager
Cc: rpm-list@xxxxxxxxxxxxx; rpm-list-bounces@xxxxxxxxxxxxx
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.

-greg
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux