File globus-data-services.spec of Package globus-data-services
#
# spec file for Globus Data Services
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
# norootforbuild
%if ! %{?distro:1}0
%define distro suse
%endif
Name: globus-data-services
Summary: The Globus GridFTP server and RFT webservices and AXIS container
Version: 4.2.1
Release: 1
Group: Productivity/Networking
Source0: gt%{version}-all-source-installer.tar.bz2
License: Apache License, Version 2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://globus.org/toolkit/data/
%if 0%{?suse_version}
%if 0%{?suse_version} == 1030
BuildRequires: perl-XML-Parser openssl-devel gcc-c++ openssl java-1_5_0-sun java-1_5_0-sun-devel ant ant-nodeps
%endif
%if 0%{?suse_version} == 1100
BuildRequires: perl-XML-Parser openssl-devel gcc-c++ openssl java java-devel ant ant-nodeps
%endif
%endif
%if 0%{?fedora_version}
BuildRequires: perl-XML-Parser openssl-devel gcc-c++ openssl java-1.6.0-openjdk java-1.6.0-openjdk-devel ant ant-nodeps perl-ExtUtils-MakeMaker
%endif
%description
The Globus GridFTP server and client tools and libraries make up a robust product suite designed to move large amounts of data faster, more securely, and more reliably than standard FTP. The RFT webservices component provides a webservice interface to transfer files ustilizing the GridFTP server as a transport mechanism. The RFT components are deployed in an AXIS webservices container.
Authors:
--------
see http://www.globus.org/
Requires: openssl-devel, zlib-devel, perl-XML-Parser, java
#Obsoletes:
%define GLOBUS_LOCATION globus-%{version}
%debug_package
%prep
%setup -q -n gt%{version}-all-source-installer
%build
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
./configure --prefix=${RPM_BUILD_ROOT}/%{_prefix}/%{GLOBUS_LOCATION}
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
make gridftp wsrft install
rm ${RPM_BUILD_ROOT}/%{_prefix}/%{GLOBUS_LOCATION}/etc/gpt/packages/packages
%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,globus,users)
# %config %{_prefix}/%{GLOBUS_LOCATION}/etc/
%{_prefix}/%{GLOBUS_LOCATION}
%pre
# add the "globus" user
/usr/sbin/useradd -c "Globus" \
-s /sbin/nologin -d %{GLOBUS_LOCATION} globus 2> /dev/null || :
%preun
#if [ -x "%{GLOBUS_LOCATION}/sbin/globus-gridftp-server" -a -e "/var/run/globus-gridftp-server.init.pid" ] ; then
# echo "Shutting down gridftp" ;
# /sbin/killproc -p /var/run/globus-gridftp-server.init.pid -TERM %{GLOBUS_LOCATION}/sbin/globus-gridftp-server >& /dev/null ;
#fi
# only do the following when uninstalling
# if [ "$1" = 0 ] ; then
# fi
%post
%postun
ldconfig
%changelog
* Wed Oct 22 2008 - dominicreynolds@gmail.com
- Initial checkin