A new user interface for you! Read more...

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
URL:            http://www.globusonline.org/
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

%description
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. 

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

%install
#rm -rf $RPM_BUILD_ROOT

# 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


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%changelog
* Thu Oct 3 2013 <lars.vilhuber@cornell.edu>
- Initial version