From 055592752a1f332120611c93903a4470fdab9140 Mon Sep 17 00:00:00 2001 From: Adrien Devresse Date: Jun 25 2013 12:07:52 +0000 Subject: - Initial gfal2-python import --- diff --git a/.gitignore b/.gitignore index e69de29..78e1d4a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gfal2-python-1.2.1.tar.gz diff --git a/gfal2-python.spec b/gfal2-python.spec new file mode 100644 index 0000000..2d85ee5 --- /dev/null +++ b/gfal2-python.spec @@ -0,0 +1,97 @@ +# include boost > 141 for EL5 +%if 0%{?el5} +%global boost_cmake_flags -DBOOST_INCLUDEDIR=/usr/include/boost141 -DBOOST_LIBRARYDIR=%{_libdir}/boost141 +%else +%global boost_cmake_flags -DBOOST_INCLUDEDIR=/usr/include +%endif + +# python path discovery +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +# python modules filtering +%if 0%{?el6} || 0%{?el5} +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_setup +} +%else +%global __provides_exclude_from ^(%{python_sitearch}/.*\\.so)$ +%endif + +Name: gfal2-python +Version: 1.2.1 +Release: 1%{?dist} +Summary: Python bindings for gfal 2.0 +Group: Applications/Internet +License: ASL 2.0 +URL: https://svnweb.cern.ch/trac/lcgutil/wiki/gfal2-python +# svn export http://svn.cern.ch/guest/lcgutil/gfal2-bindings/trunk gfal2-bindings +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: cmake +BuildRequires: gfal2-devel +%if 0%{?el5} +BuildRequires: boost141-devel +%else +BuildRequires: boost-devel +%endif +BuildRequires: python2-devel +BuildRequires: epydoc + +%description +Python bindings for gfal 2.0. +GFAL 2.0 offers an a single, simple and portable API +for the file operations in grids and cloud environments. + +%package doc +Summary: Documentation for %{name} +Group: Applications/Internet +%if 0%{?fedora} > 10 || 0%{?rhel}>5 +BuildArch: noarch +%endif + +%description doc +documentation files of %{name} . + +%clean +rm -rf %{buildroot}; +make clean + +%prep +%setup -q + +%build +%cmake -DDOC_INSTALL_DIR=%{_docdir}/%{name}-%{version} \ + %{boost_cmake_flags} \ + -DUNIT_TESTS=TRUE . + +make %{?_smp_mflags} +make doc + +%check +ctest -V -T Test . + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%files +%defattr (-,root,root) +%{python_sitearch}/gfal2.so +%{_docdir}/%{name}-%{version}/LICENSE +%{_docdir}/%{name}-%{version}/RELEASE-NOTES +%{_docdir}/%{name}-%{version}/README + +%files doc +%defattr (-,root,root) +%dir %{_docdir}/%{name}-%{version}/html +%{_docdir}/%{name}-%{version}/html/* + + +%changelog +* Wed May 08 2013 Adrien Devresse - 1.2.1-1 + - First release compatible for EPEL + + + diff --git a/sources b/sources index e69de29..a2a40dc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ee460de200fef8b34987051a272f78cd gfal2-python-1.2.1.tar.gz