[AG-TECH] question about gpt RPM installation
Joseph
joseph at cs.usyd.edu.au
Mon May 17 22:55:34 CDT 2004
Hi everyone
I have a question about gpt installation.
In fact, I'm opening the src.rpm using Debian command alien -t then I read
the *.spec file to see how it works and reproduce quite the same thing.
However, I have been suprised by the gtp spec file from gpt-1.0-2.src.rpm
. Indeed, the %build is :
%build
export GPT_LOCATION=%{buildroot}%{prefix}
./build_gpt
with
%define name gpt
%define version 1.0
%define prefix /usr/lib/%{name}
%define buildroot /var/tmp/%{name}-%{version}
As %post there is just :
cat <<EOF > /etc/profile.d/gpt.sh
#!/bin/sh
GPT_LOCATION=%{prefix}
export GPT_LOCATION
EOF
When I do it, all the installation files are installed in
/var/tmp/gtp-1.0/usr/lib/gpt and there is nothing else about GPT, I think,
on the hard disk.
Do I have to understand that this package is installed in
/var/tmp/gpt-1.0/usr/lib/gpt even if the GPT_LOCATION, setup at the end of
the script, is /usr/lib/gpt ? Is it right ?
I find it really surprising since /var/tmp should be a temporary file...
Can you confirm it ?
Cheers,
Joseph
ps : BTW, here is the full gtp.spec :
%define name gpt
%define version 1.0
%define release 2
%define prefix /usr/lib/%{name}
%define sysconfdir %{prefix}/etc
%define buildroot /var/tmp/%{name}-%{version}
Summary: The Grid Packaging Toolkit
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GTPL
Group: Utilities/System
URL: http://www.globus.org
Vendor: Argonne National Laboratory
Source: %{name}-%{version}.tar.gz
BuildRoot: %{buildroot}
#BuildRoot: ${prefix}
Provides: gpt
Requires: perl >= 5.005
BuildRequires: perl >= 5.005
%description
GPT is the Grid Packagine Toolkit. It is used to install the Globus
bundles.
%prep
%setup
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
%build
export GPT_LOCATION=%{buildroot}%{prefix}
./build_gpt
%files
%defattr(-,root,root)
/usr/lib/gpt
%post
cat <<EOF > /etc/profile.d/gpt.sh
#!/bin/sh
GPT_LOCATION=%{prefix}
export GPT_LOCATION
EOF
cat <<EOF > /etc/profile.d/gpt.csh
#!/bin/csh
setenv GPT_LOCATION %{prefix}
EOF
chmod 0755 /etc/profile.d/gpt.*
%postun
if [ -f /etc/profile.d/gpt.sh ]; then
rm -f /etc/profile.d/gpt.sh
fi
if [ -f /etc/profile.d/gpt.csh ]; then
rm -f /etc/profile.d/gpt.csh
fi
%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
%changelog
* Thu Feb 06 2003 Ti Leggett <leggett at mcs.anl.gov>
- Added post uninstall scripts
* Tue Jan 28 2003 Ti Leggett <leggett at mcs.anl.gov>
- This file was created
More information about the ag-tech
mailing list