|
|
caec7e |
%global scl devtoolset-4
|
|
|
caec7e |
%scl_package %scl
|
|
|
caec7e |
%global dfcommit 51560a33b6e3e429b807bcb3e4423415c43b5bb5
|
|
|
caec7e |
%global dfshortcommit %(c=%{dfcommit}; echo ${c:0:7})
|
|
|
caec7e |
%global dockerfiledir %{_datadir}/%{scl_prefix}dockerfiles
|
|
|
caec7e |
|
|
|
caec7e |
Summary: Package that installs %scl
|
|
|
caec7e |
Name: %scl_name
|
|
|
4171e2 |
Version: 4.1
|
|
|
4171e2 |
Release: 3%{?dist}
|
|
|
caec7e |
License: GPLv2+
|
|
|
caec7e |
Group: Applications/File
|
|
|
caec7e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
caec7e |
Source0: https://github.com/sclorg/rhscl-dockerfiles/archive/%{dfcommit}/rhscl-dockerfiles-%{dfshortcommit}.tar.gz
|
|
|
caec7e |
Source1: README
|
|
|
caec7e |
|
|
|
caec7e |
# The base package must require everything in the collection
|
|
|
caec7e |
Requires: %{scl_prefix}toolchain %{scl_prefix}ide %{scl_prefix}perftools
|
|
|
caec7e |
Obsoletes: %{name} < %{version}-%{release}
|
|
|
caec7e |
|
|
|
caec7e |
BuildRequires: scl-utils-build >= 20120927-11
|
|
|
caec7e |
BuildRequires: iso-codes
|
|
|
caec7e |
BuildRequires: help2man
|
|
|
caec7e |
|
|
|
caec7e |
%description
|
|
|
caec7e |
This is the main package for %scl Software Collection.
|
|
|
caec7e |
|
|
|
caec7e |
%package runtime
|
|
|
caec7e |
Summary: Package that handles %scl Software Collection.
|
|
|
caec7e |
Group: Applications/File
|
|
|
caec7e |
Requires: scl-utils >= 20120927-11
|
|
|
caec7e |
Obsoletes: %{name}-runtime < %{version}-%{release}
|
|
|
caec7e |
Requires(post): libselinux policycoreutils-python
|
|
|
caec7e |
Requires(postun): libselinux policycoreutils-python
|
|
|
caec7e |
Requires(preun): libselinux policycoreutils-python
|
|
|
caec7e |
|
|
|
caec7e |
%description runtime
|
|
|
caec7e |
Package shipping essential scripts to work with %scl Software Collection.
|
|
|
caec7e |
|
|
|
caec7e |
%package build
|
|
|
caec7e |
Summary: Package shipping basic build configuration
|
|
|
caec7e |
Group: Applications/File
|
|
|
caec7e |
Requires: %{scl_prefix}runtime
|
|
|
caec7e |
Requires: scl-utils-build >= 20120927-11
|
|
|
caec7e |
Obsoletes: %{name}-build < %{version}-%{release}
|
|
|
caec7e |
# Java stuff has build-time requirements on these SCLs,
|
|
|
caec7e |
# which are only available for x86_64 arch
|
|
|
caec7e |
%ifarch x86_64
|
|
|
caec7e |
Requires: rh-java-common-scldevel >= 1.1-12
|
|
|
caec7e |
Requires: maven30-scldevel >= 1.1-7
|
|
|
caec7e |
%endif
|
|
|
caec7e |
|
|
|
caec7e |
%description build
|
|
|
caec7e |
Package shipping essential configuration macros to build %scl Software Collection.
|
|
|
caec7e |
|
|
|
caec7e |
%package toolchain
|
|
|
caec7e |
Summary: Package shipping basic toolchain applications
|
|
|
caec7e |
Group: Applications/File
|
|
|
caec7e |
Requires: %{scl_prefix}runtime
|
|
|
caec7e |
Requires: %{scl_prefix}gcc %{scl_prefix}gcc-c++ %{scl_prefix}gcc-gfortran
|
|
|
caec7e |
Requires: %{scl_prefix}binutils %{scl_prefix}gdb %{scl_prefix}strace
|
|
|
caec7e |
Requires: %{scl_prefix}dwz %{scl_prefix}elfutils %{scl_prefix}memstomp
|
|
|
caec7e |
Requires: %{scl_prefix}ltrace
|
|
|
caec7e |
Obsoletes: %{name}-toolchain < %{version}-%{release}
|
|
|
caec7e |
|
|
|
caec7e |
%description toolchain
|
|
|
caec7e |
Package shipping basic toolchain applications (compiler, debugger, ...)
|
|
|
caec7e |
|
|
|
caec7e |
%package ide
|
|
|
caec7e |
Summary: Package shipping Eclipse IDE
|
|
|
caec7e |
Group: Applications/File
|
|
|
caec7e |
Requires: %{scl_prefix}runtime
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-cdt
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-cdt-docker
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-cdt-parsers
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-changelog
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-dltk
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-dltk-mylyn
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-dltk-rse
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-dltk-ruby
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-dltk-sh
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-dltk-tcl
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-egit
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-egit-mylyn
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-emf-runtime
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-gcov
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-gef
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-gprof
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-jdt
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-jgit
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-linuxtools
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-linuxtools-docker
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-linuxtools-javadocs
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-linuxtools-libhover
|
|
|
4171e2 |
Requires: %{scl_prefix}eclipse-linuxtools-vagrant
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-manpage
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-builds
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-builds-hudson
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-context-cdt
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-context-java
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-context-pde
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-docs-epub
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-docs-wikitext
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-tasks-bugzilla
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-tasks-trac
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-tasks-web
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-versions
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-versions-cvs
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-mylyn-versions-git
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-oprofile
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-p2-discovery
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-pde
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-perf
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-platform
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-ptp
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-ptp-rm-contrib
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-ptp-sci
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-ptp-sdm
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-pydev
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-pydev-mylyn
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-remote
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-rpm-editor
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-rse
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-rse-server
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-systemtap
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-tm-terminal
|
|
|
caec7e |
Requires: %{scl_prefix}eclipse-valgrind
|
|
|
caec7e |
Obsoletes: %{name}-ide < %{version}-%{release}
|
|
|
caec7e |
|
|
|
caec7e |
%description ide
|
|
|
caec7e |
Package shipping Eclipse IDE
|
|
|
caec7e |
|
|
|
caec7e |
%package perftools
|
|
|
caec7e |
Summary: Package shipping performance tools
|
|
|
caec7e |
Group: Applications/File
|
|
|
caec7e |
Requires: %{scl_prefix}runtime
|
|
|
caec7e |
Requires: %{scl_prefix}oprofile %{scl_prefix}systemtap %{scl_prefix}valgrind
|
|
|
caec7e |
Requires: %{scl_prefix}dyninst
|
|
|
caec7e |
Obsoletes: %{name}-perftools < %{version}-%{release}
|
|
|
caec7e |
|
|
|
caec7e |
%description perftools
|
|
|
caec7e |
Package shipping performance tools (systemtap, oprofile)
|
|
|
caec7e |
|
|
|
caec7e |
%package dockerfiles
|
|
|
caec7e |
Summary: Package shipping Dockerfiles for Developer Toolset
|
|
|
caec7e |
Group: Applications/File
|
|
|
4171e2 |
Requires: gcc
|
|
|
caec7e |
|
|
|
caec7e |
%description dockerfiles
|
|
|
caec7e |
This package provides a set of example Dockerfiles that can be used
|
|
|
caec7e |
with Red Hat Developer Toolset. Use these examples to stand up
|
|
|
caec7e |
test environments using the Docker container engine.
|
|
|
caec7e |
|
|
|
caec7e |
%prep
|
|
|
caec7e |
%setup -c
|
|
|
caec7e |
|
|
|
caec7e |
# This section generates README file from a template and creates man page
|
|
|
caec7e |
# from that file, expanding RPM macros in the template file.
|
|
|
caec7e |
cat <<'EOF' | tee README
|
|
|
caec7e |
%{expand:%(cat %{SOURCE1})}
|
|
|
caec7e |
EOF
|
|
|
caec7e |
|
|
|
caec7e |
%build
|
|
|
caec7e |
|
|
|
caec7e |
# Temporary helper script used by help2man.
|
|
|
caec7e |
cat <<\EOF | tee h2m_helper
|
|
|
caec7e |
#!/bin/sh
|
|
|
caec7e |
if [ "$1" = "--version" ]; then
|
|
|
caec7e |
printf '%%s' "%{?scl_name} %{version} Software Collection"
|
|
|
caec7e |
else
|
|
|
caec7e |
cat README
|
|
|
caec7e |
fi
|
|
|
caec7e |
EOF
|
|
|
caec7e |
chmod a+x h2m_helper
|
|
|
caec7e |
# Generate the man page.
|
|
|
caec7e |
help2man -N --section 7 ./h2m_helper -o %{?scl_name}.7
|
|
|
caec7e |
|
|
|
caec7e |
# Enable collection script
|
|
|
caec7e |
# ========================
|
|
|
caec7e |
cat <<EOF >enable
|
|
|
caec7e |
# The IDE part of this collection has a runtime dependency on
|
|
|
caec7e |
# the java-common collection, so enable it if present
|
|
|
caec7e |
if test -e /opt/rh/rh-java-common/enable ; then
|
|
|
caec7e |
. scl_source enable rh-java-common
|
|
|
caec7e |
fi
|
|
|
caec7e |
|
|
|
caec7e |
# General environment variables
|
|
|
caec7e |
export PATH=%{_bindir}\${PATH:+:\${PATH}}
|
|
|
caec7e |
export MANPATH=%{_mandir}:\${MANPATH}
|
|
|
caec7e |
export INFOPATH=%{_infodir}\${INFOPATH:+:\${INFOPATH}}
|
|
|
caec7e |
|
|
|
caec7e |
# Needed by Java Packages Tools to locate java.conf
|
|
|
caec7e |
export JAVACONFDIRS="%{_sysconfdir}/java:\${JAVACONFDIRS:-/etc/java}"
|
|
|
caec7e |
|
|
|
caec7e |
# Required by XMvn to locate its configuration files
|
|
|
caec7e |
export XDG_CONFIG_DIRS="%{_sysconfdir}/xdg:\${XDG_CONFIG_DIRS:-/etc/xdg}"
|
|
|
caec7e |
export XDG_DATA_DIRS="%{_datadir}:\${XDG_DATA_DIRS:+\${XDG_DATADIRS}:}/usr/local/share:/usr/share"
|
|
|
caec7e |
|
|
|
caec7e |
export PCP_DIR=%{_scl_root}
|
|
|
caec7e |
# Some perl Ext::MakeMaker versions install things under /usr/lib/perl5
|
|
|
caec7e |
# even though the system otherwise would go to /usr/lib64/perl5.
|
|
|
caec7e |
export PERL5LIB=%{_scl_root}/%{perl_vendorarch}:%{_scl_root}/usr/lib/perl5:%{_scl_root}/%{perl_vendorlib}\${PERL5LIB:+:\${PERL5LIB}}
|
|
|
caec7e |
# bz847911 workaround:
|
|
|
caec7e |
# we need to evaluate rpm's installed run-time % { _libdir }, not rpmbuild time
|
|
|
caec7e |
# or else /etc/ld.so.conf.d files?
|
|
|
caec7e |
rpmlibdir=\$(rpm --eval "%%{_libdir}")
|
|
|
caec7e |
# bz1017604: On 64-bit hosts, we should include also the 32-bit library path.
|
|
|
caec7e |
if [ "\$rpmlibdir" != "\${rpmlibdir/lib64/}" ]; then
|
|
|
caec7e |
rpmlibdir32=":%{_scl_root}\${rpmlibdir/lib64/lib}"
|
|
|
caec7e |
fi
|
|
|
caec7e |
export LD_LIBRARY_PATH=%{_scl_root}\$rpmlibdir\$rpmlibdir32\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}
|
|
|
caec7e |
# duplicate python site.py logic for sitepackages
|
|
|
caec7e |
pythonvers=`python -c 'import sys; print sys.version[:3]'`
|
|
|
caec7e |
export PYTHONPATH=%{_prefix}/lib64/python\$pythonvers/site-packages:%{_prefix}/lib/python\$pythonvers/site-packages\${PYTHONPATH:+:\${PYTHONPATH}}
|
|
|
caec7e |
EOF
|
|
|
caec7e |
|
|
|
caec7e |
# Sudo script
|
|
|
caec7e |
# ===========
|
|
|
caec7e |
cat <<EOF >sudo
|
|
|
caec7e |
#! /bin/sh
|
|
|
caec7e |
# TODO: parse & pass-through sudo options from \$@
|
|
|
caec7e |
sudo_options="-E"
|
|
|
caec7e |
|
|
|
caec7e |
for arg in "\$@"
|
|
|
caec7e |
do
|
|
|
caec7e |
case "\$arg" in
|
|
|
caec7e |
*\'*)
|
|
|
caec7e |
arg=`echo "\$arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
|
|
caec7e |
esac
|
|
|
caec7e |
cmd_options="\$cmd_options '\$arg'"
|
|
|
caec7e |
done
|
|
|
caec7e |
exec /usr/bin/sudo \$sudo_options LD_LIBRARY_PATH=\$LD_LIBRARY_PATH PATH=\$PATH scl enable %{scl} "\$cmd_options"
|
|
|
caec7e |
EOF
|
|
|
caec7e |
|
|
|
caec7e |
# " (Fix vim syntax coloring.)
|
|
|
caec7e |
|
|
|
caec7e |
# Java configuration
|
|
|
caec7e |
# ==================
|
|
|
caec7e |
cat <<EOF >java.conf
|
|
|
caec7e |
JAVA_LIBDIR=%{_datadir}/java
|
|
|
caec7e |
JNI_LIBDIR=%{_prefix}/lib/java
|
|
|
caec7e |
JVM_ROOT=%{_prefix}/lib/jvm
|
|
|
caec7e |
EOF
|
|
|
caec7e |
|
|
|
caec7e |
# Ivy configuration
|
|
|
caec7e |
# =================
|
|
|
caec7e |
cat <<EOF >ivysettings.xml
|
|
|
caec7e |
|
|
|
caec7e |
Artifact resolution order is:
|
|
|
caec7e |
1. %{scl} collection
|
|
|
caec7e |
2. java-common collection
|
|
|
caec7e |
3. maven30 collection
|
|
|
caec7e |
4. base operating system
|
|
|
caec7e |
-->
|
|
|
caec7e |
<ivysettings>
|
|
|
caec7e |
<settings defaultResolver="default"/>
|
|
|
caec7e |
<resolvers>
|
|
|
caec7e |
<filesystem name="%{scl}-public">
|
|
|
caec7e |
<ivy pattern="\${ivy.conf.dir}/lib/[module]/apache-ivy-[revision].xml" />
|
|
|
caec7e |
<artifact pattern="%{_datadir}/java/\[artifact].[ext]" />
|
|
|
caec7e |
</filesystem>
|
|
|
caec7e |
<filesystem name="java-common-public">
|
|
|
caec7e |
<ivy pattern="\${ivy.conf.dir}/lib/[module]/apache-ivy-[revision].xml" />
|
|
|
caec7e |
<artifact pattern="/opt/rh/rh-java-common/root/%{_root_datadir}/java/\[artifact].[ext]" />
|
|
|
caec7e |
</filesystem>
|
|
|
caec7e |
<filesystem name="maven30-public">
|
|
|
caec7e |
<ivy pattern="\${ivy.conf.dir}/lib/[module]/apache-ivy-[revision].xml" />
|
|
|
caec7e |
<artifact pattern="/opt/rh/maven30/root/%{_root_datadir}/java/\[artifact].[ext]" />
|
|
|
caec7e |
</filesystem>
|
|
|
caec7e |
<filesystem name="public">
|
|
|
caec7e |
<ivy pattern="\${ivy.conf.dir}/lib/[module]/apache-ivy-[revision].xml" />
|
|
|
caec7e |
<artifact pattern="%{_root_datadir}/java/\[artifact].[ext]" />
|
|
|
caec7e |
</filesystem>
|
|
|
caec7e |
<chain name="main" dual="true">
|
|
|
caec7e |
<resolver ref="%{scl}-public"/>
|
|
|
caec7e |
<resolver ref="java-common-public"/>
|
|
|
caec7e |
<resolver ref="maven30-public"/>
|
|
|
caec7e |
<resolver ref="public"/>
|
|
|
caec7e |
</chain>
|
|
|
caec7e |
</resolvers>
|
|
|
caec7e |
<include url="\${ivy.default.settings.dir}/ivysettings-local.xml"/>
|
|
|
caec7e |
<include url="\${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
|
|
|
caec7e |
</ivysettings>
|
|
|
caec7e |
EOF
|
|
|
caec7e |
|
|
|
caec7e |
# XMvn configuration
|
|
|
caec7e |
# =================
|
|
|
caec7e |
cat <<EOF >configuration.xml
|
|
|
caec7e |
|
|
|
caec7e |
|
|
|
caec7e |
Artifact resolution order is:
|
|
|
caec7e |
1. %{scl} collection
|
|
|
caec7e |
2. java-common collection
|
|
|
caec7e |
3. maven30 collection
|
|
|
caec7e |
4. base operating system
|
|
|
caec7e |
-->
|
|
|
caec7e |
<configuration xmlns="http://fedorahosted.org/xmvn/CONFIG/2.0.0">
|
|
|
caec7e |
<resolverSettings>
|
|
|
caec7e |
<prefixes>
|
|
|
caec7e |
<prefix>%{_scl_root}</prefix>
|
|
|
caec7e |
<prefix>/</prefix>
|
|
|
caec7e |
</prefixes>
|
|
|
caec7e |
<metadataRepositories>
|
|
|
caec7e |
<repository>%{_scl_root}/usr/share/maven-metadata</repository>
|
|
|
caec7e |
</metadataRepositories>
|
|
|
caec7e |
</resolverSettings>
|
|
|
caec7e |
<installerSettings>
|
|
|
caec7e |
<metadataDir>opt/rh/%{scl}/root/usr/share/maven-metadata</metadataDir>
|
|
|
caec7e |
</installerSettings>
|
|
|
caec7e |
<repositories>
|
|
|
caec7e |
<repository>
|
|
|
caec7e |
<id>resolve-%{scl}</id>
|
|
|
caec7e |
<type>compound</type>
|
|
|
caec7e |
<properties>
|
|
|
caec7e |
<prefix>%{_scl_root}</prefix>
|
|
|
caec7e |
<namespace>%{scl}</namespace>
|
|
|
caec7e |
</properties>
|
|
|
caec7e |
<configuration>
|
|
|
caec7e |
<repositories>
|
|
|
caec7e |
<repository>base-resolve</repository>
|
|
|
caec7e |
</repositories>
|
|
|
caec7e |
</configuration>
|
|
|
caec7e |
</repository>
|
|
|
caec7e |
<repository>
|
|
|
caec7e |
<id>resolve</id>
|
|
|
caec7e |
<type>compound</type>
|
|
|
caec7e |
<properties>
|
|
|
caec7e |
<prefix>/</prefix>
|
|
|
caec7e |
</properties>
|
|
|
caec7e |
<configuration>
|
|
|
caec7e |
<repositories>
|
|
|
caec7e |
|
|
|
caec7e |
highest to lowest preference. (resolve-local is
|
|
|
caec7e |
resolver that resolves from local Maven repository in
|
|
|
caec7e |
.xm2 in current directory.) -->
|
|
|
caec7e |
<repository>resolve-local</repository>
|
|
|
caec7e |
<repository>resolve-%{scl}</repository>
|
|
|
caec7e |
<repository>resolve-java-common</repository>
|
|
|
caec7e |
<repository>resolve-maven30</repository>
|
|
|
caec7e |
<repository>base-resolve</repository>
|
|
|
caec7e |
</repositories>
|
|
|
caec7e |
</configuration>
|
|
|
caec7e |
</repository>
|
|
|
caec7e |
<repository>
|
|
|
caec7e |
<id>install</id>
|
|
|
caec7e |
<type>compound</type>
|
|
|
caec7e |
<properties>
|
|
|
caec7e |
<prefix>opt/rh/%{scl}/root</prefix>
|
|
|
caec7e |
<namespace>%{scl}</namespace>
|
|
|
caec7e |
</properties>
|
|
|
caec7e |
<configuration>
|
|
|
caec7e |
<repositories>
|
|
|
caec7e |
<repository>base-install</repository>
|
|
|
caec7e |
</repositories>
|
|
|
caec7e |
</configuration>
|
|
|
caec7e |
</repository>
|
|
|
caec7e |
</repositories>
|
|
|
caec7e |
</configuration>
|
|
|
caec7e |
EOF
|
|
|
caec7e |
|
|
|
caec7e |
%install
|
|
|
caec7e |
(%{scl_install})
|
|
|
caec7e |
|
|
|
caec7e |
mkdir -p %{buildroot}%{_scl_root}/etc/alternatives %{buildroot}%{_scl_root}/var/lib/alternatives
|
|
|
caec7e |
|
|
|
caec7e |
install -d -m 755 %{buildroot}%{_scl_scripts}
|
|
|
caec7e |
install -p -m 755 enable %{buildroot}%{_scl_scripts}/
|
|
|
caec7e |
|
|
|
caec7e |
install -d -m 755 %{buildroot}%{_scl_scripts}
|
|
|
caec7e |
install -p -m 755 sudo %{buildroot}%{_bindir}/
|
|
|
caec7e |
|
|
|
caec7e |
install -d -m 755 %{buildroot}%{_sysconfdir}/java
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_sysconfdir}/java/security
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_sysconfdir}/java/security/security.d
|
|
|
caec7e |
install -p -m 644 java.conf %{buildroot}%{_sysconfdir}/java/
|
|
|
caec7e |
|
|
|
caec7e |
install -d -m 755 %{buildroot}%{_sysconfdir}/ivy
|
|
|
caec7e |
install -p -m 644 ivysettings.xml %{buildroot}%{_sysconfdir}/ivy/
|
|
|
caec7e |
|
|
|
caec7e |
install -d -m 755 %{buildroot}%{_sysconfdir}/xdg/xmvn
|
|
|
caec7e |
install -p -m 644 configuration.xml %{buildroot}%{_sysconfdir}/xdg/xmvn/
|
|
|
caec7e |
|
|
|
4171e2 |
# Other directories that should be owned by the runtime
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_datadir}/appdata
|
|
|
4171e2 |
# Native java bits are always in /usr/lib even on 64bit arches
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_scl_root}/usr/lib/java
|
|
|
4171e2 |
# Otherwise unowned maven directories
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_datadir}/maven-metadata
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_datadir}/maven-poms
|
|
|
4171e2 |
# Otherwise unowned perl directories
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_libdir}/perl5
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_libdir}/perl5/vendor_perl
|
|
|
4171e2 |
install -d -m 755 %{buildroot}%{_libdir}/perl5/vendor_perl/auto
|
|
|
4171e2 |
|
|
|
4171e2 |
|
|
|
caec7e |
%if 0%{?rhel} >= 7
|
|
|
caec7e |
install -d %{buildroot}%{dockerfiledir}
|
|
|
caec7e |
|
|
|
caec7e |
collections="devtoolset-4 devtoolset-4-toolchain devtoolset-4-dyninst \
|
|
|
caec7e |
devtoolset-4-elfutils devtoolset-4-oprofile devtoolset-4-systemtap \
|
|
|
caec7e |
devtoolset-4-valgrind"
|
|
|
caec7e |
install -d -p -m 755 %{buildroot}%{dockerfiledir}/rhel{6,7}
|
|
|
caec7e |
for d in $collections; do
|
|
|
caec7e |
install -d -p -m 755 %{buildroot}%{dockerfiledir}/rhel{6,7}/$d
|
|
|
caec7e |
cp -a rhscl-dockerfiles-%{dfcommit}/rhel7.$d/* %{buildroot}%{dockerfiledir}/rhel7/$d
|
|
|
caec7e |
cp -a rhscl-dockerfiles-%{dfcommit}/rhel6.$d/* %{buildroot}%{dockerfiledir}/rhel6/$d
|
|
|
caec7e |
done
|
|
|
caec7e |
|
|
|
caec7e |
# BZ#1194557: Don't ship systemtap container for RHEL6.
|
|
|
caec7e |
rm -rf %{buildroot}%{dockerfiledir}/rhel6/devtoolset-4-systemtap
|
|
|
caec7e |
%endif
|
|
|
caec7e |
|
|
|
caec7e |
# Install generated man page.
|
|
|
caec7e |
install -d -m 755 %{buildroot}%{_mandir}/man7
|
|
|
caec7e |
install -p -m 644 %{?scl_name}.7 %{buildroot}%{_mandir}/man7/
|
|
|
caec7e |
|
|
|
caec7e |
%files
|
|
|
caec7e |
%doc README
|
|
|
caec7e |
%{_mandir}/man7/%{?scl_name}.*
|
|
|
caec7e |
|
|
|
caec7e |
%files runtime
|
|
|
caec7e |
%scl_files
|
|
|
caec7e |
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_sysconfdir}/selinux-equiv.created
|
|
|
caec7e |
%{_sysconfdir}/ivy
|
|
|
caec7e |
%{_sysconfdir}/java
|
|
|
caec7e |
%dir %{_scl_root}/etc/alternatives
|
|
|
4171e2 |
%dir %{_datadir}/appdata
|
|
|
4171e2 |
%dir %{_scl_root}/usr/lib/java
|
|
|
4171e2 |
%dir %{_datadir}/maven-metadata
|
|
|
4171e2 |
%dir %{_datadir}/maven-poms
|
|
|
caec7e |
|
|
|
caec7e |
%files build
|
|
|
caec7e |
%{_root_sysconfdir}/rpm/macros.%{scl}*
|
|
|
caec7e |
|
|
|
caec7e |
%files toolchain
|
|
|
caec7e |
|
|
|
caec7e |
%files ide
|
|
|
caec7e |
|
|
|
caec7e |
%files perftools
|
|
|
caec7e |
|
|
|
caec7e |
%if 0%{?rhel} >= 7
|
|
|
caec7e |
%files dockerfiles
|
|
|
caec7e |
%{dockerfiledir}
|
|
|
caec7e |
%endif
|
|
|
caec7e |
|
|
|
caec7e |
%post runtime
|
|
|
caec7e |
if [ ! -f %{_sysconfdir}/selinux-equiv.created ]; then
|
|
|
caec7e |
/usr/sbin/semanage fcontext -a -e / %{_scl_root}
|
|
|
caec7e |
restorecon -R %{_scl_root}
|
|
|
caec7e |
touch %{_sysconfdir}/selinux-equiv.created
|
|
|
caec7e |
fi
|
|
|
caec7e |
|
|
|
caec7e |
%preun runtime
|
|
|
caec7e |
[ $1 = 0 ] && rm -f %{_sysconfdir}/selinux-equiv.created || :
|
|
|
caec7e |
|
|
|
caec7e |
%postun runtime
|
|
|
caec7e |
if [ $1 = 0 ]; then
|
|
|
caec7e |
/usr/sbin/semanage fcontext -d %{_scl_root}
|
|
|
caec7e |
[ -d %{_scl_root} ] && restorecon -R %{_scl_root} || :
|
|
|
caec7e |
fi
|
|
|
caec7e |
|
|
|
caec7e |
%changelog
|
|
|
4171e2 |
* Tue Mar 29 2016 Marek Polacek <polacek@redhat.com> - 4.1-3
|
|
|
4171e2 |
- Update IDE requires to include new Eclipse components (#1319297)
|
|
|
4171e2 |
|
|
|
4171e2 |
* Thu Feb 11 2016 Marek Polacek <polacek@redhat.com> - 4.1-2
|
|
|
4171e2 |
- Require gcc for dockerfiles (#1276365)
|
|
|
4171e2 |
|
|
|
4171e2 |
* Thu Jan 21 2016 Mat Booth <mat.booth@redhat.com> - 4.1-1
|
|
|
4171e2 |
- Update IDE requires to include new Eclipse components
|
|
|
4171e2 |
- Fix some directory ownership issues
|
|
|
4171e2 |
- rhbz#1301003
|
|
|
4171e2 |
|
|
|
caec7e |
* Mon Oct 26 2015 Marek Polacek <polacek@redhat.com> - 4.0-9
|
|
|
caec7e |
- Ship RHEL6 Dockerfiles on RHEL7 (#1265118)
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Sep 23 2015 Marek Polacek <polacek@redhat.com> - 4.0-8
|
|
|
caec7e |
- Update rhscl-dockerfiles from git (#1265118)
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Sep 22 2015 Marek Polacek <polacek@redhat.com> - 4.0-7
|
|
|
caec7e |
- Update rhscl-dockerfiles from git (#1265236)
|
|
|
caec7e |
|
|
|
caec7e |
* Mon Sep 21 2015 Marek Polacek <polacek@redhat.com> - 4.0-6
|
|
|
caec7e |
- Add man page (#1264277)
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Sep 01 2015 Marek Polacek <polacek@redhat.com> - 4.0-5
|
|
|
caec7e |
- Update rhscl-dockerfiles from git (#1223302)
|
|
|
caec7e |
|
|
|
caec7e |
* Mon Jul 20 2015 Mat Booth <mat.booth@redhat.com> - 4.0-4
|
|
|
caec7e |
- Rebuild for all arches
|
|
|
caec7e |
|
|
|
caec7e |
* Mon Jul 20 2015 Mat Booth <mat.booth@redhat.com> - 4.0-3
|
|
|
caec7e |
- Update IDE requires to include new packages
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Jun 10 2015 Mat Booth <mat.booth@redhat.com> - 4.0-2
|
|
|
caec7e |
- Drop unnecessary Rs on eclipse sdk packages.
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Jun 10 2015 Mat Booth <mat.booth@redhat.com> - 4.0-1
|
|
|
caec7e |
- Initial build for devtoolset-4.
|
|
|
caec7e |
|
|
|
caec7e |
* Thu May 07 2015 Marek Polacek <polacek@redhat.com> - 3.1-12
|
|
|
caec7e |
- Update rhscl-dockerfiles from git (#1194663)
|
|
|
caec7e |
|
|
|
caec7e |
* Wed May 06 2015 Mat Booth <mat.booth@redhat.com> - 3.1-11
|
|
|
caec7e |
- Resolves: rhbz#1218605 - Avoid BR on javapackages-tools
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Apr 15 2015 Marek Polacek <polacek@redhat.com> - 3.1-10
|
|
|
caec7e |
- Bump Release to mollify #1211655
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Apr 8 2015 Marek Polacek <polacek@redhat.com> - 3.1-9
|
|
|
caec7e |
- Add Obsoletes (#1208867)
|
|
|
caec7e |
|
|
|
caec7e |
* Mon Feb 23 2015 Marek Polacek <polacek@redhat.com> - 3.1-8
|
|
|
caec7e |
- Don't ship devtoolset-3-dockerfiles subpackage on RHEL6 (#1194558)
|
|
|
caec7e |
|
|
|
caec7e |
* Fri Feb 20 2015 Marek Polacek <polacek@redhat.com> - 3.1-7
|
|
|
caec7e |
- Don't ship systemtap container for RHEL6 (#1194557)
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Feb 11 2015 Marek Polacek <polacek@redhat.com> - 3.1-6
|
|
|
caec7e |
- Add devtoolset-3-{dyninst,elfutils,valgrind,oprofile,systemtap}
|
|
|
caec7e |
dockerfiles (#1180659)
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Feb 10 2015 Marek Polacek <polacek@redhat.com> - 3.1-5
|
|
|
caec7e |
- Add devtoolset-3-dockerfiles (#1180657)
|
|
|
caec7e |
|
|
|
caec7e |
* Fri Jan 23 2015 Alexander Kurtakov <akurtako@redhat.com> 3.1-4
|
|
|
caec7e |
- Include root /usr/share and /usr/local/share to prevent gsettings crash.
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Jan 13 2015 Mat Booth <mat.booth@redhat.com> - 3.1-3
|
|
|
caec7e |
- Resolves: rhbz#1178915 - Rebuild to get correct disttag
|
|
|
caec7e |
- Add BR to Fix unexpanded java dir macros in java.conf
|
|
|
caec7e |
- Don't enable maven30 SCL, as recommended by maven30 maintainer
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Jan 07 2015 Mat Booth <mat.booth@redhat.com> - 3.1-2
|
|
|
caec7e |
- Resolves: rhbz#1178915
|
|
|
caec7e |
- Add missing xmvn resolver setting for metadata repo.
|
|
|
caec7e |
- Make package archful to make sure lib64 dirs are owned.
|
|
|
caec7e |
- Only require java-common and maven30 SCLs when on x86_64.
|
|
|
caec7e |
|
|
|
caec7e |
* Thu Dec 18 2014 Mat Booth <mat.booth@redhat.com> - 3.1-1
|
|
|
caec7e |
- Resolves: rhbz#1178915 - Initial build for DTS 3.1
|
|
|
caec7e |
- Add build-time deps on java-common and mvn30 SCLs
|
|
|
caec7e |
- Update xmvn and ivy config for latest javapackages/xmvn
|
|
|
caec7e |
- Fix file listed twice warning for xmvn/config.xml
|
|
|
caec7e |
|
|
|
caec7e |
* Fri Jun 20 2014 Roland Grunberg <rgrunber@redhat.com> - 3.0-16
|
|
|
caec7e |
- Add macro for enablement of osgi auto-{provides,requires}.
|
|
|
caec7e |
|
|
|
caec7e |
* Wed Jun 04 2014 Marek Polacek <polacek@redhat.com> 3.0-15
|
|
|
caec7e |
- Drop the -vc subpackage (#1104342)
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Jun 03 2014 Mat Booth <mat.booth@redhat.com> - 3.0-14
|
|
|
caec7e |
- Prevent premature command substitution (#1102796)
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Jun 03 2014 Marek Polacek <polacek@redhat.com> 3.0-13
|
|
|
caec7e |
- Create alternatives directories (#1101246)
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Jun 03 2014 Mat Booth <mat.booth@redhat.com> - 3.0-12
|
|
|
caec7e |
- Fix MANPATH variable (#1102741)
|
|
|
caec7e |
|
|
|
caec7e |
* Fri May 30 2014 Alexander Kurtakov <akurtako@redhat.com> 3.0-11
|
|
|
caec7e |
- Re enable mylyn-docs-epub.
|
|
|
caec7e |
|
|
|
caec7e |
* Tue May 27 2014 Alexander Kurtakov <akurtako@redhat.com> 3.0-10
|
|
|
caec7e |
- Comment mylyn-epub as the new version has huge dependency chain.
|
|
|
caec7e |
|
|
|
caec7e |
* Tue May 27 2014 Alexander Kurtakov <akurtako@redhat.com> 3.0-9
|
|
|
caec7e |
- Drop eclipse-xsd as it's no longer part of emf.
|
|
|
caec7e |
- Drop eclipse-rpmstubby as it's merged into rpm-editor.
|
|
|
caec7e |
|
|
|
caec7e |
* Wed May 21 2014 Mat Booth <mat.booth@redhat.com> - 3.0-8
|
|
|
caec7e |
- Revert ant_home fix temporarily
|
|
|
caec7e |
|
|
|
caec7e |
* Mon May 19 2014 Marek Polacek <polacek@redhat.com> 3.0-7
|
|
|
caec7e |
- Require ltrace (#1098247, #1098249)
|
|
|
caec7e |
- Properly set ANT_HOME (#1087654)
|
|
|
caec7e |
|
|
|
caec7e |
* Fri May 16 2014 Mat Booth <mat.booth@redhat.com> - 3.0-6
|
|
|
caec7e |
- Drop maven30 collection bits (we can use base OS maven on rhel7)
|
|
|
caec7e |
|
|
|
caec7e |
* Fri May 16 2014 Mat Booth <mat.booth@redhat.com> - 3.0-5
|
|
|
caec7e |
- Require newest version of scl-utils
|
|
|
caec7e |
|
|
|
caec7e |
* Fri May 16 2014 Mat Booth <mat.booth@redhat.com> - 3.0-4
|
|
|
caec7e |
- Conditionally enable maven30 collection
|
|
|
caec7e |
- Add maven scl macros for other packages to use
|
|
|
caec7e |
|
|
|
caec7e |
* Thu May 15 2014 Mat Booth <mat.booth@redhat.com> - 3.0-3
|
|
|
caec7e |
- Add collection-specific maven, java, ivy configuration
|
|
|
caec7e |
|
|
|
caec7e |
* Thu May 15 2014 Alexander Kurtakov <akurtako@redhat.com> 3.0-2
|
|
|
caec7e |
- Build subpackage should R: scl-utils.
|
|
|
caec7e |
|
|
|
caec7e |
* Tue Mar 4 2014 Marek Polacek <polacek@redhat.com> 3.0-1
|
|
|
caec7e |
- Initial package
|