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