Blob Blame Raw
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?python_version:  %global python_version  %(%{__python} -c "from sys import version_info; print('%d.%d'% (version_info[0],version_info[1]))")}

Name:			gfal2-util
Version:		1.0.0
Release:		1%{?dist}
Summary:		GFAL2 utility tools
Group:			Applications/Internet
License:		GPLv3
# svn export gfal2-util-1.0.0
# tar czf gfal2-util-1.0.0.tar.gz gfal2-util-1.0.0
Source0:		%{name}-%{version}.tar.gz
# Disable one test broken because of gfal2, not gfal2-util
Patch0:			%{name}-disable-mkparent.patch
BuildRoot:		%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

BuildArch:		noarch

BuildRequires:		gfal2-python >= 1.5.0
Requires:		gfal2-python >= 1.5.0

%if "0%{?python_version}" <= "2.7"
BuildRequires:		python-argparse
Requires:		python-argparse
%endif # python < 2.7

gfal2-util is a set of basic utility tools for file 
interactions and file copy based on the GFAL 2.0 toolkit.
gfal2-util supports the protocols of GFAL 2.0 : WebDav(s),
gridFTP, http(s), SRM, xrootd, etc...

rm -rf %{buildroot}
python clean

%setup -q
%patch0 -p1

python build

rm -rf %{buildroot}
python install --root=%{buildroot}

python test/functional/

%defattr (-,root,root)

* Wed Jul 02 2014 Alejandro Alvarez <aalvarez at> - 1.0.0-1
- Update for new upstream 1.0.0 release
- Installation done with distutils
- Run tests on check stage 

* Mon Nov 04 2013 Adrien Devresse <adevress at> - 0.2.1-1
 - Initial EPEL compatible version