Chuin Nee,
I have the following spec file to try and build a pgsql rpm.
--
Summary: PostgreSQL database 7.1 Beta.
Name: postgresql
Version: 7.1beta5
Release: 5
Packager: Marcus Dillury <[EMAIL PROTECTED]>
Copyright: GPL
Group: Applications/Databases
Source: ftp://ftp.postgresql.org/pub/dev/postgresql-7.1beta5.tar.gz
BuildRoot: /var/tmp/pgsql-buildroot
%description
PostgreSQL Data Base Management System.
%prep
%setup -q
%build
./configure
gmake
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
gmake install
%post
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
%files
/usr/local/pgsql/*
--
All seems to be working, bar the %files section.
I can't find the problem, but I get the following error when run with the
command `rpm -ba postgresql-7.1beta5.spec`
File not found by glob: /var/tmp/pgsql-buildroot/usr/local/pgsql/*
any ideas??
Thanks,
--Marcus
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug