Name: elan Version: 7.0 Release: 1%{?dist} Summary: ELAN linguistic annotator for audio and video License: GPL-3.0-only AND Apache-2.0 AND BSD-3-Clause AND LGPL-3.0-only AND LGPL-2.1-only AND EPL-1.0 URL: https://archive.mpi.nl/tla/elan Source0: https://www.mpi.nl/tools/elan/ELAN_7-0_linux.tar.gz AutoReqProv: no Requires: libX11 Requires: libXext Requires: libXi Requires: libXrender Requires: libXtst Requires: alsa-lib Requires: freetype Requires: fontconfig BuildRequires: patchelf # Document bundled components Provides: bundled(xerces-j2) = 2.11.0 Provides: bundled(xalan-j2) = 2.4.1 Provides: bundled(hsqldb) = 2.7.2 Provides: bundled(vlcj) = 4.2.0 Provides: bundled(javafx) = 18.0.1 Provides: bundled(openjdk) = 21 Provides: bundled(jna) = 5.12.1 # Disable debug package generation for pre-compiled binaries %global debug_package %{nil} %global _enable_debug_package 0 %global __os_install_post %{nil} %description ELAN is an annotation tool for audio and video recordings. %prep %autosetup -n ELAN_%{version} %build # Nothing to build, pre-compiled with bundled JRE %install mkdir -p %{buildroot}/opt/elan mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/pixmaps cp -r bin lib %{buildroot}/opt/elan/ find %{buildroot}/opt/elan/lib/app/nativelib -type f -name "*.so" | while read lib; do patchelf --remove-rpath "$lib" || : done # Create launcher script cat > %{buildroot}%{_bindir}/elan << 'EOF' #!/bin/bash # ELAN launcher script export JAVA_HOME="/opt/elan/lib/runtime" export PATH="$JAVA_HOME/bin:$PATH" exec /opt/elan/bin/ELAN_7.0 "$@" EOF chmod +x %{buildroot}%{_bindir}/elan # Desktop integration cat > %{buildroot}%{_datadir}/applications/elan.desktop << 'EOF' [Desktop Entry] Name=ELAN Comment=Linguistic annotation tool for audio and video Exec=elan %F Icon=elan Terminal=false Type=Application Categories=AudioVideo;Audio;Video;Education;Science; MimeType=text/xml;application/x-eaf+xml; Keywords=annotation;linguistics;transcription;video;audio; EOF # Copy icon if it exists if [ -f lib/ELAN_7.0.png ]; then cp lib/ELAN_7.0.png %{buildroot}%{_datadir}/pixmaps/elan.png fi %files %license lib/LICENSES.txt /opt/elan/ %{_bindir}/elan %{_datadir}/applications/elan.desktop %{_datadir}/pixmaps/elan.png %changelog * Tue Nov 25 2025 seeji - 7.0-1 - Initial