|
| 1 | +%global scl_name_prefix alice- |
| 2 | +%global scl_name_base o2-full-deps |
| 3 | + |
| 4 | +%global scl %{scl_name_prefix}%{scl_name_base} |
| 5 | + |
| 6 | +# Optional but recommended: define nfsmountable |
| 7 | +%global nfsmountable 1 |
| 8 | + |
| 9 | +%scl_package %scl |
| 10 | +%global _scl_prefix /opt/alice |
| 11 | + |
| 12 | +Summary: Package that installs %scl |
| 13 | +Name: %scl_name |
| 14 | +Version: 1 |
| 15 | +Release: 1%{?dist} |
| 16 | +License: GPLv2+ |
| 17 | +Requires: make rsync glew-devel pigz which git mariadb-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 perl-FindBin environment-modules tk-devel libXinerama-devel libXcursor-devel libXrandr-devel subversion subversion-devel apr-util-devel apr-devel readline-devel bc rdma-core-devel cyrus-sasl-md5 |
| 18 | +BuildRequires: scl-utils-build |
| 19 | + |
| 20 | +%description |
| 21 | +Metapackage which brings in all AliceO2 dependencies |
| 22 | + |
| 23 | +%package runtime |
| 24 | +Summary: Package that handles %scl Software Collection. |
| 25 | +Requires: scl-utils |
| 26 | + |
| 27 | +%description runtime |
| 28 | +Package shipping essential scripts to work with %scl Software Collection. |
| 29 | + |
| 30 | +%package build |
| 31 | +Summary: Package shipping basic build configuration |
| 32 | +Requires: scl-utils-build |
| 33 | + |
| 34 | +%description build |
| 35 | +Package shipping essential configuration macros to build %scl Software Collection. |
| 36 | + |
| 37 | +%prep |
| 38 | +%setup -c -T |
| 39 | + |
| 40 | +%install |
| 41 | +%scl_install |
| 42 | + |
| 43 | +mkdir -p $RPM_BUILD_ROOT%_root_sysconfdir/yum.repos.d |
| 44 | +cat > $RPM_BUILD_ROOT%_root_sysconfdir/yum.repos.d/alisw.repo <<EOF |
| 45 | +[alisw] |
| 46 | +name=ALICE Software - EL10 |
| 47 | +baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/RPMS/el10.$(uname -m)/ |
| 48 | +enabled=0 |
| 49 | +gpgcheck=0 |
| 50 | +EOF |
| 51 | + |
| 52 | +cat > $RPM_BUILD_ROOT%_root_sysconfdir/yum.repos.d/alisw-upd.repo <<EOF |
| 53 | +[alisw-upd] |
| 54 | +name=ALICE Software - EL10 |
| 55 | +baseurl=https://s3.cern.ch/swift/v1/alibuild-repo/UpdRPMS/el10.$(uname -m)/ |
| 56 | +enabled=0 |
| 57 | +gpgcheck=0 |
| 58 | +EOF |
| 59 | + |
| 60 | +mkdir -p %{buildroot}%{_scl_prefix} |
| 61 | +cat >> %{buildroot}%{_scl_scripts}/enable << EOF |
| 62 | +export PATH="%{_bindir}:%{_sbindir}\${PATH:+:\${PATH}}" |
| 63 | +export LD_LIBRARY_PATH="%{_libdir}\${LD_LIBRARY_PATH:+:\${LD_LIBRARY_PATH}}" |
| 64 | +export MANPATH="%{_mandir}:\${MANPATH:-}" |
| 65 | +export PKG_CONFIG_PATH="%{_libdir}/pkgconfig\${PKG_CONFIG_PATH:+:\${PKG_CONFIG_PATH}}" |
| 66 | +EOF |
| 67 | + |
| 68 | +# Install the generated man page |
| 69 | +mkdir -p %{buildroot}%{_mandir}/man7/ |
| 70 | +#install -p -m 644 %{scl_name}.7 %{buildroot}%{_mandir}/man7/ |
| 71 | + |
| 72 | +%files |
| 73 | + |
| 74 | +%files runtime -f filelist |
| 75 | +%scl_files |
| 76 | +%_root_sysconfdir/yum.repos.d/alisw.repo |
| 77 | +%_root_sysconfdir/yum.repos.d/alisw-upd.repo |
| 78 | + |
| 79 | +%files build |
| 80 | +%{_root_sysconfdir}/rpm/macros.%{scl}-config |
| 81 | + |
| 82 | +%changelog |
| 83 | +* Tue Mar 31 2026 Timo Wilken <timo.wilken@cern.ch> 1-1 |
| 84 | +- Initial package |
0 commit comments