Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OpenStack:Newton
spark
spark.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spark.spec of Package spark
# # spec file for package spark # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 cadenzajon # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define sname spark %define confdir %{_sysconfdir}/%{sname} %define sparkdir %{_datadir}/%{sname} %define workdir %{_rundir}/%{sname}-work %define logdir /var/log/%{sname} %define workername %{sname}-worker %define mastername %{sname}-master Name: %{sname} Version: 1.6.3 Release: 0 Summary: Apache Spark 1.6.3 License: Apache-2.0 Group: Development/Libraries/Java Url: http://spark.apache.org/ Source0: http://apache.org/dist/spark/spark-1.6.3/spark-1.6.3.tgz Source1: build.sh Source2: %{workername}.service Source3: %{mastername}.service Source4: http://central.maven.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.4/drizzle-jdbc-1.4.jar BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: java-1_8_0-openjdk BuildRequires: java-1_8_0-openjdk-devel BuildRequires: openstack-suse-macros BuildRequires: spark-kit == %{version} BuildRequires: tar BuildRequires: xz BuildArch: noarch #Provides: %{sname} Requires: java-1_8_0-openjdk Requires(pre): pwdutils %description This is an installable package containing Apache Spark. %prep %setup -q -c -n src cp -f %{SOURCE1} . cp -Rf %{_datadir}/tetra ../kit %build cd .. sh src/build.sh %install export NO_BRP_CHECK_BYTECODE_VERSION=true %{__install} -d -m 755 %{buildroot}%{sparkdir} cp -a %{name}-%{version}/dist/* %{buildroot}%{sparkdir} %{__install} -D -m 644 %{name}-%{version}/external/kafka/target/spark-streaming-kafka_2.10-1.6.3.jar %{buildroot}%{sparkdir}/lib/spark-streaming-kafka.jar %{__install} -D -m 644 %{S:4} %{buildroot}%{sparkdir}/lib/drizzle-jdbc-1.3.jar %{__install} -d -m 755 %{buildroot}%{_unitdir} %{__install} -D -m 444 %{S:2} %{buildroot}%{_unitdir}/%{workername}.service %{__install} -D -m 444 %{S:3} %{buildroot}%{_unitdir}/%{mastername}.service %{__install} -d -m 755 %{buildroot}%{_sbindir} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{workername} ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{mastername} %{__install} -d -m 755 %{buildroot}%{_bindir} ln -s %{sparkdir}/bin/spark-submit %{buildroot}%{_bindir}/spark-submit ln -s %{sparkdir}/bin/spark-class %{buildroot}%{_bindir}/spark-class ln -s %{sparkdir}/bin/spark-shell %{buildroot}%{_bindir}/spark-shell ln -s %{sparkdir}/bin/spark-sql %{buildroot}%{_bindir}/spark-sql sed -i '2iSPARK_HOME=/usr/share/spark' %{buildroot}%{sparkdir}/bin/spark-class sed -i '2iSPARK_CONF_DIR=/etc/spark' %{buildroot}%{sparkdir}/bin/spark-class %{__install} -d -m 755 %{buildroot}%{logdir} %{__install} -d -m 755 %{buildroot}%{confdir} %{__install} -D -m 644 %{name}-%{version}/dist/conf/spark-defaults.conf.template %{buildroot}%{confdir}/spark-defaults.conf %{__install} -D -m 644 %{name}-%{version}/dist/conf/spark-env.sh.template %{buildroot}%{confdir}/spark-env.sh %{__install} -d -m 755 %{buildroot}%{workdir} ln -s %{workdir} %{buildroot}%{sparkdir}/work %pre %openstack_pre_user_group_create %{sname} %{sname} %service_add_pre %{workername}.service %service_add_pre %{mastername}.service %post %service_add_post %{workername}.service %service_add_post %{mastername}.service %preun %service_del_preun %{workername}.service %service_del_preun %{mastername}.service %postun %service_del_postun %{workername}.service %service_del_postun %{mastername}.service %files %defattr(-,root,root) %{sparkdir} %{_unitdir}/* %{_sbindir}/* %{_bindir}/* %attr(-,spark,spark) %dir %{confdir} %attr(-,spark,spark) %config %{confdir}/* %attr(-,spark,spark) %dir %{logdir} %attr(-,spark,spark) %dir %{workdir} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor