[gfal] -add revision 7, EMI2RC4 synchronisation

Devresse adev at fedoraproject.org
Mon Apr 16 14:47:03 UTC 2012


commit 28383c16a0048eaa13d32c0de05bd948560f130b
Author: Adrien Devresse <adrien.devresse at cern.ch>
Date:   Mon Apr 16 16:46:47 2012 +0200

    -add revision 7, EMI2RC4 synchronisation

 gfal.spec |   80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 sources   |    2 +-
 2 files changed, 79 insertions(+), 3 deletions(-)
---
diff --git a/gfal.spec b/gfal.spec
index 29a828d..0e38588 100644
--- a/gfal.spec
+++ b/gfal.spec
@@ -2,6 +2,13 @@
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 %endif
 
+%if 0%{?el5}
+#python26 support for el5
+%{!?python26_sitearch: %global python26_sitearch %(python26 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%{!?python26_support:  %global python26_support 1}
+%global __os_install_post %{__multiple_python_os_install_post}
+%endif
+
 %{!?python_version: %global python_version %(%{__python} -c "import sys; print('%s.%s'%sys.version_info[:2])")}
 %{!?python_version_nodot: %global python_version_nodot %(%{__python} -c "import sys; print('%s%s'%sys.version_info[:2])")}
 
@@ -13,7 +20,7 @@
 
 Name:						gfal
 Version:					1.12.0
-Release:					4%{?dist}
+Release:					7%{?dist}
 Summary:					Grid File access library
 Group:						System Environment/Libraries
 License:					ASL 2.0
@@ -46,6 +53,9 @@ BuildRequires:				python-devel
 BuildRequires:				srm-ifce-devel
 BuildRequires:				voms-devel
 BuildRequires:				swig >= 1.3.0
+%if 0%{?python26_support}
+BuildRequires:				python26-devel
+%endif
 
 Requires:					dcap-libs%{?_isa}
 Requires:					dpm-libs%{?_isa}
@@ -81,11 +91,28 @@ Requires:					%{name}%{?_isa} = %{version}
 %description python
 python global bindings for gfal 1.0
 
+%if 0%{?python26_support}
+%package python26
+Summary:					Python26 bindings for gfal 1.0
+Group:						System Environment/Libraries
+Provides:					%{name}-py26 = %{version}
+Obsoletes:					%{name}-py26 < %{version}
+Requires:					%{name}%{?_isa} = %{version}
+
+%description python26
+python26 bindings for gfal 1.0
+%endif
+
 %prep
 %setup -q
+%if 0%{?python26_support}
+mkdir -p %{_builddir}/%{name}-py26-%{version};
+cp -rf %{_builddir}/%{name}-%{version}/* %{_builddir}/%{name}-py26-%{version};
+cd %{_builddir}/%{name}-%{version};
+%endif
 
 %build
-mkdir -p src/autogen build; 
+mkdir -p src/autogen; 
 aclocal -I m4-EPEL/; 
 libtoolize --force; 
 autoheader; 
@@ -103,6 +130,28 @@ autoconf;
 --with-pythonrelease=%{python_version} 
 make %{?_smp_mflags}
 
+%if 0%{?python26_support}
+cd %{_builddir}/%{name}-py26-%{version};
+mkdir -p src/autogen; 
+aclocal -I m4-EPEL/; 
+libtoolize --force; 
+autoheader; 
+automake --foreign --add-missing --copy; 
+autoconf;
+%{configure} \
+--with-version=%{version} \
+--with-release=%{release} \
+--with-cgsi-gsoap-location=/ \
+--with-lfc-location=/ --with-dpm-location=/ \
+--with-srm-ifce-location=/usr/ \
+--with-voms-location=/ \
+--with-dcap-location=/ \
+--with-emi \
+--with-pythonrelease=2.6
+make %{?_smp_mflags} 
+cd %{_builddir}/%{name}-%{version};
+%endif
+
 %install
 rm -rf %{buildroot}
 make %{?_smp_mflags} DESTDIR=%{buildroot} install;
@@ -110,6 +159,16 @@ make %{?_smp_mflags} DESTDIR=%{buildroot} install;
 rm -f %{buildroot}/%{python_sitearch}/_gfal*.*a
 rm -f %{buildroot}/%{_libdir}/libgfal*.*a
 
+%if 0%{?python26_support}
+cd %{_builddir}/%{name}-py26-%{version};
+make %{?_smp_mflags} DESTDIR=%{buildroot} install;
+# clear libtools files
+rm -f %{buildroot}/%{python26_sitearch}/_gfal*.*a
+rm -f %{buildroot}/%{_libdir}/libgfal*.*a
+cd %{_builddir}/%{name}-%{version};
+%endif
+
+
 %clean
 rm -rf %{buildroot}
 make %{?_smp_mflags} clean
@@ -145,6 +204,17 @@ make %{?_smp_mflags} clean
 %{python_sitearch}/_gfalthr.so.*
 %{_docdir}/%{name}-%{version}/DESCRIPTION_PYTHON
 
+%if 0%{?python26_support}
+%files python26
+%defattr (-,root,root)
+%{python26_sitearch}/gfal.py*
+%{python26_sitearch}/_gfal.so
+%{python26_sitearch}/_gfal.so.*
+%{python26_sitearch}/gfalthr.py*
+%{python26_sitearch}/_gfalthr.so
+%{python26_sitearch}/_gfalthr.so.*
+%endif
+
 %files
 %defattr (-,root,root)
 %{_docdir}/%{name}-%{version}/VERSION
@@ -154,6 +224,12 @@ make %{?_smp_mflags} clean
 %{_docdir}/%{name}-%{version}/LICENSE
 
 %changelog
+* Mon Apr 16 2012 <adevress at cern.ch> - 1.12.0-7
+ - add python26 modification for el5
+
+* Wed Apr 04 2012 <adevress at cern.ch> - 1.12.0-6
+ - updated version for EMI 1.12.0 synchronisation
+
 * Wed Feb 29 2012 <adevress at cern.ch> - 1.12.0-4
  - correct a problem with the lfc shared library
 
diff --git a/sources b/sources
index cce29fe..d97b1bd 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f3f34e585129cca37d0f171c4d816b34  gfal-1.12.0.tar.gz
+f016a5685d0cf6c3aad4f0c69aacdcf9  gfal-1.12.0.tar.gz


More information about the scm-commits mailing list