version 7.2.4 Building a modified RPM using the PGDG .spec file

From: Jeremy Regan <reganjeremy(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: version 7.2.4 Building a modified RPM using the PGDG .spec file
Date: 2003-12-29 20:35:31
Message-ID: 20031229203531.26839.qmail@web20422.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
postgresql.spec application/octet-stream 27.4 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Ericson Smith 2003-12-29 20:51:00 Re: Is my MySQL Gaining ?
Previous Message Michael Glaesemann 2003-12-29 20:29:31 Re: [HACKERS] IEEE 754