-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish system dependencies for Alma/RHEL 9
EL9 needs at least aliBuild v1.15.0, since that uses tarballs from S3 by default on slc9.
- Loading branch information
1 parent
669bee4
commit ed1936b
Showing
2 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
%global scl_name_prefix alice- | ||
%global scl_name_base o2-full-deps | ||
|
||
%global scl %{scl_name_prefix}%{scl_name_base} | ||
|
||
# Optional but recommended: define nfsmountable | ||
%global nfsmountable 1 | ||
|
||
%scl_package %scl | ||
%global _scl_prefix /opt/alice | ||
|
||
Summary: Package that installs %scl | ||
Name: %scl_name | ||
Version: 1 | ||
Release: 1%{?dist} | ||
License: GPLv2+ | ||
Requires: make rsync glew-devel pigz which git mysql-devel curl curl-devel bzip2 bzip2-devel unzip autoconf automake texinfo gettext gettext-devel libtool freetype freetype-devel libpng libpng-devel sqlite sqlite-devel ncurses-devel mesa-libGLU-devel libX11-devel libXpm-devel libXext-devel libXft-devel libXi-devel libxml2 libxml2-devel motif motif-devel kernel-devel pciutils-devel kmod-devel bison flex perl-ExtUtils-Embed environment-modules tk-devel libXinerama-devel libXcursor-devel libXrandr-devel subversion-devel apr-util-devel apr-devel | ||
BuildRequires: scl-utils-build | ||
|
||
%description | ||
Metapackage which brings in all AliceO2 dependencies | ||
|
||
%package runtime | ||
Summary: Package that handles %scl Software Collection. | ||
Requires: scl-utils | ||
|
||
%description runtime | ||
Package shipping essential scripts to work with %scl Software Collection. | ||
|
||
%package build | ||
Summary: Package shipping basic build configuration | ||
Requires: scl-utils-build | ||
|
||
%description build | ||
Package shipping essential configuration macros to build %scl Software Collection. | ||
|
||
%prep | ||
%setup -c -T | ||
|
||
%install | ||
%scl_install | ||
|
||
# There are currently no published RPMs for el9, so to avoid error messages | ||
# from "yum update", don't install the .repo files. | ||
#mkdir -p $RPM_BUILD_ROOT%_root_sysconfdir/yum.repos.d | ||
#cat > $RPM_BUILD_ROOT%_root_sysconfdir/yum.repos.d/alisw.repo <<EOF | ||
#[alisw] | ||
#name=ALICE Software - EL9 | ||
#baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/RPMS/el9.x86_64/ | ||
#enabled=0 | ||
#gpgcheck=0 | ||
#EOF | ||
# | ||
#cat > $RPM_BUILD_ROOT%_root_sysconfdir/yum.repos.d/alisw-upd.repo <<EOF | ||
#[alisw-upd] | ||
#name=ALICE Software - EL9 | ||
#baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/UpdRPMS/el9.x86_64/ | ||
#enabled=0 | ||
#gpgcheck=0 | ||
#EOF | ||
|
||
mkdir -p %{buildroot}%{_scl_prefix} | ||
cat >> %{buildroot}%{_scl_scripts}/enable << EOF | ||
export PATH="%{_bindir}:%{_sbindir}\${PATH:+:\${PATH}}" | ||
export LD_LIBRARY_PATH="%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}" | ||
export MANPATH="%{_mandir}:\${MANPATH:-}" | ||
export PKG_CONFIG_PATH="%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}" | ||
EOF | ||
|
||
# Install the generated man page | ||
mkdir -p %{buildroot}%{_mandir}/man7/ | ||
#install -p -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/ | ||
|
||
%files | ||
|
||
%files runtime -f filelist | ||
%scl_files | ||
#%_root_sysconfdir/yum.repos.d/alisw-el8.repo | ||
#%_root_sysconfdir/yum.repos.d/alisw-upd-el8.repo | ||
|
||
%files build | ||
%{_root_sysconfdir}/rpm/macros.%{scl}-config | ||
|
||
%changelog | ||
* Fri Nov 02 2023 Timo Wilken <[email protected]> 1-1 | ||
- Initial package | ||
|