Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crabtaskworker spec file #1

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crabtaskworker.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Source0: git://github.com/dmwm/WMCore.git?obj=master/%{wmcver}&export=WMCore-%{wmcver}&output=/WMCore-%{n}-%{wmcver}.tar.gz
Source1: git://github.com/dmwm/CRABServer.git?obj=master/%{crabservertag}&export=CRABServer-%{realversion}&output=/CRABServer-%{realversion}.tar.gz

Requires: python dbs-client dls-client dbs3-client py2-pycurl py2-httplib2 py2-sqlalchemy py2-cx-oracle
Requires: python dbs-client dls-client dbs3-client py2-pycurl py2-httplib2
BuildRequires: py2-sphinx

%prep
Expand All @@ -21,19 +21,19 @@ BuildRequires: py2-sphinx
%build
pwd
cd ../WMCore-%{wmcver}
python setup.py build_system -s crabtaskworker
python setup.py build_system -s crabtaskworker
PYTHONPATH=$PWD/build/lib:$PYTHONPATH

cd ../CRABServer-%{realversion}
perl -p -i -e "s{<VERSION>}{%{realversion}}g" doc/taskworker/conf.py
python setup.py build_system -s CAFTaskWorker
python setup.py build_system -s TaskWorker

%install
mkdir -p %i/etc/profile.d %i/{x,}{bin,lib,data,doc} %i/{x,}$PYTHON_LIB_SITE_PACKAGES
cd ../WMCore-%{wmcver}
python setup.py install_system -s crabtaskworker --prefix=%i
cd ../CRABServer-%{realversion}
python setup.py install_system -s CAFTaskWorker --prefix=%i
python setup.py install_system -s TaskWorker --prefix=%i

find %i -name '*.egg-info' -exec rm {} \;

Expand Down