|
Adrien Devresse |
665aa5c |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
Adrien Devresse |
665aa5c |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
Adrien Devresse |
665aa5c |
%{!?python_version: %global python_version %(%{__python} -c "from sys import version_info; print('%d.%d'% (version_info[0],version_info[1]))")}
|
|
Adrien Devresse |
665aa5c |
|
|
Alejandro Alvarez Ayllon |
daea810 |
Name: gfal2-util
|
|
Alejandro Alvarez Ayllon |
daea810 |
Version: 1.0.0
|
|
Alejandro Alvarez Ayllon |
daea810 |
Release: 1%{?dist}
|
|
Alejandro Alvarez Ayllon |
daea810 |
Summary: GFAL2 utility tools
|
|
Alejandro Alvarez Ayllon |
daea810 |
Group: Applications/Internet
|
|
Alejandro Alvarez Ayllon |
daea810 |
License: GPLv3
|
|
Alejandro Alvarez Ayllon |
daea810 |
URL: https://svnweb.cern.ch/trac/lcgutil/wiki/gfal2
|
|
Alejandro Alvarez Ayllon |
daea810 |
# svn export http://svn.cern.ch/guest/lcgutil/gfal2-utils/tags/gfal2-utils_R_1_0_0 gfal2-util-1.0.0
|
|
Alejandro Alvarez Ayllon |
daea810 |
# tar czf gfal2-util-1.0.0.tar.gz gfal2-util-1.0.0
|
|
Alejandro Alvarez Ayllon |
daea810 |
Source0: %{name}-%{version}.tar.gz
|
|
Alejandro Alvarez Ayllon |
daea810 |
# Disable one test broken because of gfal2, not gfal2-util
|
|
Alejandro Alvarez Ayllon |
daea810 |
Patch0: %{name}-disable-mkparent.patch
|
|
Alejandro Alvarez Ayllon |
daea810 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
Adrien Devresse |
665aa5c |
|
|
Alejandro Alvarez Ayllon |
daea810 |
BuildArch: noarch
|
|
Adrien Devresse |
665aa5c |
|
|
Alejandro Alvarez Ayllon |
daea810 |
BuildRequires: gfal2-python >= 1.5.0
|
|
Alejandro Alvarez Ayllon |
daea810 |
Requires: gfal2-python >= 1.5.0
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%if "0%{?python_version}" <= "2.7"
|
|
Alejandro Alvarez Ayllon |
daea810 |
BuildRequires: python-argparse
|
|
Alejandro Alvarez Ayllon |
daea810 |
Requires: python-argparse
|
|
Adrien Devresse |
665aa5c |
%endif # python < 2.7
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%description
|
|
Adrien Devresse |
665aa5c |
gfal2-util is a set of basic utility tools for file
|
|
Adrien Devresse |
665aa5c |
interactions and file copy based on the GFAL 2.0 toolkit.
|
|
Adrien Devresse |
665aa5c |
gfal2-util supports the protocols of GFAL 2.0 : WebDav(s),
|
|
Alejandro Alvarez Ayllon |
daea810 |
gridFTP, http(s), SRM, xrootd, etc...
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%clean
|
|
Adrien Devresse |
665aa5c |
rm -rf %{buildroot}
|
|
Alejandro Alvarez Ayllon |
daea810 |
python setup.py clean
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%prep
|
|
Adrien Devresse |
665aa5c |
%setup -q
|
|
Alejandro Alvarez Ayllon |
daea810 |
%patch0 -p1
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%build
|
|
Alejandro Alvarez Ayllon |
daea810 |
python setup.py build
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%install
|
|
Adrien Devresse |
665aa5c |
rm -rf %{buildroot}
|
|
Alejandro Alvarez Ayllon |
daea810 |
python setup.py install --root=%{buildroot}
|
|
Alejandro Alvarez Ayllon |
daea810 |
|
|
Alejandro Alvarez Ayllon |
daea810 |
%check
|
|
Alejandro Alvarez Ayllon |
daea810 |
python test/functional/test_all.py
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%files
|
|
Adrien Devresse |
665aa5c |
%defattr (-,root,root)
|
|
Alejandro Alvarez Ayllon |
daea810 |
%{python_sitelib}/gfal2_util*
|
|
Adrien Devresse |
665aa5c |
%{_bindir}/gfal-*
|
|
Adrien Devresse |
665aa5c |
%{_mandir}/man1/*
|
|
Adrien Devresse |
665aa5c |
%doc RELEASE-NOTES VERSION LICENSE
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
|
|
Adrien Devresse |
665aa5c |
%changelog
|
|
Alejandro Alvarez Ayllon |
daea810 |
* Wed Jul 02 2014 Alejandro Alvarez <aalvarez at cern.ch> - 1.0.0-1
|
|
Alejandro Alvarez Ayllon |
daea810 |
- Update for new upstream 1.0.0 release
|
|
Alejandro Alvarez Ayllon |
daea810 |
- Installation done with distutils
|
|
Alejandro Alvarez Ayllon |
daea810 |
- Run tests on check stage
|
|
Alejandro Alvarez Ayllon |
daea810 |
|
|
Adrien Devresse |
665aa5c |
* Mon Nov 04 2013 Adrien Devresse <adevress at cern.ch> - 0.2.1-1
|
|
Adrien Devresse |
665aa5c |
- Initial EPEL compatible version
|