File globusconnect.spec of Package globusconnect

Name:           globusconnect
Version:        1.6
Release:        1
Summary:        Globus Connect for Linux allows you to use Globus Online to transfer files.

Group:          Network
License:        Apache License, Version 2.0
Source:         %{name}-latest.tgz
Source1:        %{name}.desktop
Source2:        %{name}.png
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-build

BuildArch:      noarch
#BuildRequires:  desktop-file-utils
Requires:       glibc >= 2.3.4

Globus Connect allows you to use Globus Online to transfer files to and from your Linux laptop or desktop computer — even if it’s behind a firewall. Follow the easy steps below to turn your Linux machine into a full-fledged Globus Online endpoint, without the complexity of installing Globus. 

# creates name-version directory
tar xzf %{SOURCE0}
# create patch
cat > gc.patch << EOF
< GC_DIR="\${PWD}"
> GC_DIR="%{_libdir}/%{name}"
patch -p0 %{name}-%{version}/%{name} gc.patch


# install executable
install -m 0755 -d $RPM_BUILD_ROOT%{_libdir}/%{name}
install -m 0755 -d $RPM_BUILD_ROOT%{_bindir}
cp -r %{name}-%{version}/* $RPM_BUILD_ROOT%{_libdir}/%{name}
ln -s %{_libdir}/%{name}/%{name} $RPM_BUILD_ROOT%{_bindir}/%{name}

# install icon
install -m 0755 -d $RPM_BUILD_ROOT%{_datadir}/pixmaps
install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.png

# install desktop file
install -m 0755 -d $RPM_BUILD_ROOT%{_datadir}/applications
install -D -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop



* Thu Oct 3 2013 <>
- Initial version