%{!?scl:%global scl mysql55} %scl_package %scl Summary: Package that installs %scl Name: %scl_name Version: 1 Release: 1%{?dist} BuildArch: noarch License: GPLv2+ Group: Applications/File Requires: scl-utils Requires: %{scl_prefix}mysql BuildRequires: scl-utils-build BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description This is the main package for %scl Software Collection. %package runtime Summary: Package that handles %scl Software Collection. Group: Applications/File Requires: scl-utils %description runtime Package shipping essential scripts to work with %scl Software Collection. %package build Summary: Package shipping basic build configuration Group: Applications/File %description build Package shipping essential configuration macros to build %scl Software Collection. %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_scl_scripts}/root # During the build of this package, we don't know which architecture it is # going to be used on, so if we build on 64-bit system and use it on 32-bit, # the %{_libdir} would stay expanded to '.../lib64'. This way we determine # architecture everytime the 'scl enable ...' is run and set the # LD_LIBRARY_PATH accordingly cat >> %{buildroot}%{_scl_scripts}/enable << EOF export PATH=%{_bindir}:\$PATH export LIBRARY_PATH=%{_scl_root}`rpm -E %%_libdir`:\$LIBRARY_PATH export LD_LIBRARY_PATH=%{_scl_root}`rpm -E %%_libdir`:\$LD_LIBRARY_PATH EOF %scl_install %files %files runtime %scl_files %files build %{_root_sysconfdir}/rpm/macros.%{scl}-config %changelog * Thu Oct 04 2012 Honza Horak 1-2 - rename collection to mysql55 * Tue Mar 20 2012 Honza Horak 1-1 - initial packaging