diff --git a/gfal2-util.spec b/gfal2-util.spec index 676683f..fe18bbf 100644 --- a/gfal2-util.spec +++ b/gfal2-util.spec @@ -3,18 +3,17 @@ %{!?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.2.1 -Release: 2%{?dist} +Version: 1.3.1 +Release: 1%{?dist} Summary: GFAL2 utility tools Group: Applications/Internet License: GPLv3 -URL: https://svnweb.cern.ch/trac/lcgutil/wiki/gfal2 -# git clone https://gitlab.cern.ch/dmc/gfal2-util.git gfal2-util-1.2.1 -# pushd gfal2-util-1.2.1 -# git checkout v1.2.1 -# git submodule init && git submodule update +URL: http://dmc.web.cern.ch/ +# git clone https://gitlab.cern.ch/dmc/gfal2-util.git gfal2-util-1.3.1 +# pushd gfal2-util-1.3.1 +# git checkout v1.3.1 # popd -# tar czf gfal2-util-1.2.1.tar.gz gfal2-util-1.2.1 +# tar czf gfal2-util-1.3.1.tar.gz gfal2-util-1.3.1 Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) @@ -45,6 +44,15 @@ python setup.py clean %setup -q %build +# Validate the version +gfal2_util_ver=`sed -n "s/VERSION = '\(.*\)'/\1/p" src/gfal2_util/base.py` +gfal2_util_spec_ver=`expr "%{version}" : '\([0-9]*\\.[0-9]*\\.[0-9]*\)'` +if [ "$gfal2_util_ver" != "$gfal2_util_spec_ver" ]; then + echo "The version in the spec file does not match the base.py version!" + echo "%{version} != $gfal2_util_ver" + exit 1 +fi + python setup.py build %install @@ -63,6 +71,9 @@ python test/functional/test_all.py %changelog +* Mon Nov 09 2015 Alejandro Alvarez - 1.3.1-1 +- Update for new upstream 1.3.1 release + * Wed Jun 17 2015 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild diff --git a/sources b/sources index fe120cd..e668037 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -baf7563261bec227b2382d85e47b8e6f gfal2-util-1.2.1.tar.gz +f2d5164e63a97ad25eb41544b307dda4 gfal2-util-1.3.1.tar.gz