Skip to content

Commit

Permalink
New spec for python3 gfal2 (#7326)
Browse files Browse the repository at this point in the history
* New spec for python3 gfal2

Remade gfal2-python spec with PyPi

* apply Shahzads suggestions
  • Loading branch information
amaltaro authored Oct 26, 2021
1 parent 238e24e commit fba5043
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
11 changes: 11 additions & 0 deletions py3-gfal2-python.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### RPM external py3-gfal2-python 1.11.0.post3
## IMPORT build-with-pip3
Requires: boost175py3
BuildRequires: cmake

Provides: libgfal2.so.2()(64bit)
Provides: libgfal_transfer.so.2()(64bit)
Provides: libglib-2.0.so.0()(64bit)

Patch0: py3-gfal2
%define PipPreBuild export Boost_LIBRARYDIR=${BOOST175PY3_ROOT}/lib ; export CXXFLAGS="-I${BOOST175PY3_ROOT}/include"
13 changes: 13 additions & 0 deletions py3-gfal2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 461c8d3..9f3e4ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,7 @@ if (PYTHON3_CURRENT_VERSION)
find_library(Boost_PYTHON_3_LIBRARY
NAMES boost_python${Boost_PYTHON_3_SUFFIX} boost_python-py${Boost_PYTHON_3_SUFFIX} boost_python3
HINTS
- ${Boost_LIBRARYDIR}
+ $ENV{Boost_LIBRARYDIR}
"/usr/lib"
"/usr/lib64"
)
3 changes: 2 additions & 1 deletion reqmgr2ms.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

Source: git://github.com/dmwm/WMCore?obj=master/%wmcorever&export=%n&output=/%n.tar.gz
Requires: py3-cherrypy py3-pycurl py3-httplib2 py3-rucio-clients py3-retry py3-future
Requires: py3-cmsmonitoring py3-pymongo rotatelogs jemalloc mongo
Requires: py3-cmsmonitoring py3-pymongo py3-gfal2-python
Requires: rotatelogs jemalloc mongo
BuildRequires: py3-sphinx

%prep
Expand Down

0 comments on commit fba5043

Please sign in to comment.