[gfal] - add initial gfal import
Devresse
adev at fedoraproject.org
Tue Feb 14 15:00:26 UTC 2012
commit a7c55c974219387622bd278d00d9d089daa804be
Author: Adrien Devresse <adrien.devresse at cern.ch>
Date: Tue Feb 14 16:00:09 2012 +0100
- add initial gfal import
.gitignore | 1 +
gfal.spec | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 148 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4bb63cf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gfal-1.12.0.tar.gz
diff --git a/gfal.spec b/gfal.spec
new file mode 100644
index 0000000..0f0546d
--- /dev/null
+++ b/gfal.spec
@@ -0,0 +1,146 @@
+%if 0%{?rhel} <= 5
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%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])")}
+
+## add filter setup
+%{?filter_setup:
+%filter_provides_in %{python_sitearch}.*\.so$
+%filter_setup
+}
+
+Name: gfal
+Version: 1.12.0
+Release: 2%{?dist}
+Summary: Grid File access library
+Group: System Environment/Libraries
+License: ASL 2.0
+URL: https://svnweb.cern.ch/trac/lcgutil
+# svn export http://svn.cern.ch/guest/lcgutil/gfal/trunk gfal
+Source0: http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/%{name}/%{name}-%{version}.tar.gz
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildRequires: automake
+BuildRequires: CGSI-gSOAP-devel
+BuildRequires: dcap-devel
+BuildRequires: dpm-devel
+%if 0%{?el5}
+BuildRequires: e2fsprogs-devel
+%else
+BuildRequires: libuuid-devel
+%endif
+BuildRequires: is-interface-devel
+BuildRequires: glib2-devel
+BuildRequires: globus-ftp-client-devel
+BuildRequires: globus-common-progs
+BuildRequires: gsoap-devel >= 2.7.13
+BuildRequires: libtool
+BuildRequires: lfc-devel
+BuildRequires: openldap-devel
+BuildRequires: python-devel
+BuildRequires: srm-ifce-devel
+BuildRequires: voms-devel
+BuildRequires: swig >= 1.3.0
+
+Requires: dcap-libs%{?_isa}
+Requires: dpm-libs%{?_isa}
+Requires: lfc-libs%{?_isa}
+
+%description
+The Grid File Access Library offers a POSIX interface to Replica Catalogs,
+Storage Resource Managers and File Access services using protocols like rfio,
+dcap. This Library is now deprecated in favor of gfal2
+
+%package devel
+Summary: Client side headers and development files
+Group: System Environment/Libraries
+Requires: %{name}%{?_isa} = %{version}
+
+%description devel
+This package contains development files for gfal
+
+%package python
+Summary: Python bindings for gfal 1.0
+Group: System Environment/Libraries
+Provides: %{name}-py%{python_version_nodot} = %{version}
+Requires: %{name}%{?_isa} = %{version}
+
+%description python
+python global bindings for gfal 1.0
+
+%prep
+%setup -q
+
+%build
+mkdir -p src/autogen build;
+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 \
+--disable-tests \
+--with-pythonrelease=%{python_version}
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make %{?_smp_mflags} DESTDIR=%{buildroot} install;
+# clear libtools files
+rm -f %{buildroot}/%{python_sitearch}/_gfal*.*a
+rm -f %{buildroot}/%{_libdir}/libgfal*.*a
+
+%clean
+rm -rf %{buildroot}
+make %{?_smp_mflags} clean
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files devel
+%defattr (-,root,root)
+%{_docdir}/%{name}-%{version}/RELEASE-NOTES
+%{_libdir}/libgfal.so
+%{_libdir}/libgfal_pthr.so
+%{_includedir}/gfal_api.h
+%{_includedir}/gfal_internals.h
+%{_includedir}/gfal_types.h
+%{_includedir}/gfal_constants.h
+%{_mandir}/man3/gfal_*.3.*
+%{_mandir}/man3/gfal.3.*
+
+%files python
+%defattr (-,root,root)
+%{python_sitearch}/gfal.py*
+%{python_sitearch}/_gfal.so
+%{python_sitearch}/_gfal.so.*
+%{python_sitearch}/gfalthr.py*
+%{python_sitearch}/_gfalthr.so
+%{python_sitearch}/_gfalthr.so.*
+%{_docdir}/%{name}-%{version}/DESCRIPTION_PYTHON
+
+%files
+%defattr (-,root,root)
+%{_docdir}/%{name}-%{version}/VERSION
+%{_bindir}/gfal_version
+%{_libdir}/libgfal.so.*
+%{_libdir}/libgfal_pthr.so.*
+%{_docdir}/%{name}-%{version}/LICENSE
+
+%changelog
+* Tue Feb 14 2012 <adevress at cern.ch> - 1.12.0-2
+ - First review corrections
+
+* Tue Dec 13 2011 <adevress at cern.ch> - 1.12.0-1
+ - Initial build
diff --git a/sources b/sources
index e69de29..ee54088 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+284318b41c5636cf5f111e697b9817cd gfal-1.12.0.tar.gz
More information about the scm-commits
mailing list