version 7.2.4 Building a modified RPM using the PGDG .spec file - Mailing list pgsql-hackers

From Jeremy Regan
Subject version 7.2.4 Building a modified RPM using the PGDG .spec file
Date
Msg-id 20031229203531.26839.qmail@web20422.mail.yahoo.com
Whole thread Raw
List pgsql-hackers
Dear all:

This may not be the right list to refer to the rpm,
but I am confident that someone on this list will be
able to point me in the right direction.
I am trying to make sure when this rpm is installed,
it installs to /opt/postgresql-7.2.4/ in stead of
/usr/bin, /usr/man etcetera (this is the main
requirement, it is installed with many other rpm's and
it has to play nice).  In the .spec file I have
defined

%define install_dir=/opt/postgresql-7.2.4

and then in the declaration section I specfiied:

Buildroot: %{install_dir}.

The build is failing out in a mysterious spot in the
install section:

install -m755 $SOURCE14 %{install_dir}/usr/bin

fails, saying

+ install -m755 /home/src/SOURCES/rh-pgdump.sh
/opt/postgresql-7.2.4/usr/bin/
install: cannot create regular file
`/opt/postgresql-7.2.4/usr/bin/': Is a directory
error: Bad exit status from /var/tmp/rpm-tmp.98601
(%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.98601
(%install)

I have decided that there's some confusion within the
spec file, because when I look in
/opt/postgresql-7.2.4/ after it fails out, there is
this tree:

/opt/postgresql-7.2.4/opt/postgresql-7.2.4/

but at the /opt/postgresql-7.2.4 level, there is also
available /opt/postgresql-7.2.4/usr/lib , include, and
share.  Could someone take a look at the spec file and
see what I have specified incorrectly?

Thanks,
Jeremy R.

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
Attachment

pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: IEEE 754
Next
From: Michael Glaesemann
Date:
Subject: Re: IEEE 754