Skip to content

Commit

Permalink
Merge pull request #16 from cms-sw/comp_gcc630
Browse files Browse the repository at this point in the history
Update to cms-sw
  • Loading branch information
lecriste authored Nov 7, 2019
2 parents 2bf36dd + a333a28 commit b34c22f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wmagent.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### RPM cms wmagent 1.2.6.patch1
### RPM cms wmagent 1.2.8
## INITENV +PATH PATH %i/xbin
## INITENV +PATH PYTHONPATH %i/${PYTHON_LIB_SITE_PACKAGES}
## INITENV +PATH PYTHONPATH %i/x${PYTHON_LIB_SITE_PACKAGES}
Expand Down
19 changes: 15 additions & 4 deletions wmarchive.spec
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
### RPM cms wmarchive v00.08.08
### RPM cms wmarchive v00.08.20
## INITENV +PATH PYTHONPATH %i/${PYTHON_LIB_SITE_PACKAGES}
%define wmcver 1.1.6

#%define wmcver 1.1.6
%define wmcver 1.2.8.pre3
%define webdoc_files %{installroot}/%{pkgrel}/doc/
%define pkg WMArchive
%define wmcpkg WMCore
Source0: git://github.com/dmwm/WMArchive?obj=master/%realversion&export=%pkg&output=/%pkg.tar.gz
Source1: git://github.com/dmwm/WMCore?obj=master/%wmcver&export=%{wmcpkg}_%n&output=/%{wmcpkg}_%n.tar.gz
Requires: python py2-bz2file py2-pydoop py2-avro py2-elasticsearch py2-pymongo mongo py2-httplib2 cherrypy py2-cjson py2-py4j py2-stomp java-jdk rotatelogs cmsmonitoring
Requires: python py2-pydoop py2-avro py2-pymongo mongo cherrypy py2-py4j py2-stomp java-jdk rotatelogs cmsmonitoring go
BuildRequires: py2-sphinx
#Requires: python3 py3-pydoop py3-avro py3-pymongo mongo py3-cherrypy py3-py4j py3-stomp java-jdk rotatelogs cmsmonitoring
#BuildRequires: py3-sphinx

# RPM macros documentation
# http://www.rpm.org/max-rpm/s1-rpm-inside-macros.html
Expand All @@ -34,6 +38,13 @@ mkdir -p sphinx/_static
mkdir -p build
make html

# build go publisher tool
mkdir -p gopath
export GOPATH=$PWD/gopath
go get github.com/nats-io/go-nats-examples/tools/nats-pub
mkdir -p %i/bin
cp $GOPATH/bin/nats-pub %i/bin

%install
cd %{wmcpkg}_%n
python setup.py install_system -s wmc-wmarchive --prefix=%i
Expand All @@ -55,7 +66,7 @@ export PYTHONPATH=$PYTHONPATH:$PWD/src/python:$PWD/../WMCore_wmarchive/src/pytho
bin/fwjrschema --fout=%i/data/schemas/fwjr_prod.json
bin/json2avsc --fin=%i/data/schemas/fwjr_prod.json --fout=%i/data/schemas/fwjr_prod.avsc
bin/wmexceptions --fout=%i/data/wmexceptions.json
touch %i/${PYTHON_LIB_SITE_PACKAGES}/WMCore/Services/__init__.py
#touch %i/${PYTHON_LIB_SITE_PACKAGES}/WMCore/Services/__init__.py

# Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment.
mkdir -p %i/etc/profile.d
Expand Down

0 comments on commit b34c22f

Please sign in to comment.