-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathwmagent.spec
31 lines (24 loc) · 1.14 KB
/
wmagent.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
### RPM cms wmagent 1.3.6.patch2
## INITENV +PATH PATH %i/xbin
## INITENV +PATH PYTHONPATH %i/${PYTHON_LIB_SITE_PACKAGES}
## INITENV +PATH PYTHONPATH %i/x${PYTHON_LIB_SITE_PACKAGES}
Source: git://github.com/dmwm/WMCore.git?obj=master/%{realversion}&export=WMCore-%{realversion}&output=/WMCore-%{realversion}.tar.gz
Requires: python py2-sqlalchemy py2-httplib2 py2-pycurl py2-rucio-clients
Requires: py2-mysqldb py2-cx-oracle py2-cheetah py2-pyOpenSSL
Requires: yui libuuid couchdb15 condor pystack
Requires: dbs3-client py2-pyzmq py2-psutil py2-future py2-retry
Requires: jemalloc cmsmonitoring
BuildRequires: py2-sphinx couchskel
%prep
%setup -b 0 -n WMCore-%{realversion}
%build
python setup.py build
%install
mkdir -p %i/{x,}{bin,lib,data,doc} %i/{x,}$PYTHON_LIB_SITE_PACKAGES
python setup.py install --prefix=%i
egrep -r -l '^#!.*python' %i | xargs perl -p -i -e 's{^#!.*python.*}{#!/usr/bin/env python}'
find %i -name '*.egg-info' -exec rm {} \;
# Pick external dependencies from couchskel
mkdir %i/data/couchapps/WMStats/vendor/
cp -rp $COUCHSKEL_ROOT/data/couchapps/couchskel/vendor/{couchapp,jquery,datatables} \
%i/data/couchapps/WMStats/vendor/