Name: ucsc-kent-utils Version: 492 Release: 1%{?dist} Summary: UCSC Genome Browser command-line utilities License: MIT URL: https://github.com/ucscGenomeBrowser/kent-core Source0: https://github.com/ucscGenomeBrowser/kent-core/archive/v%{version}/kent-core-%{version}.tar.gz Patch0: ucsc-kent-utils-skip-broken-tools.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: zlib-devel BuildRequires: libpng-devel BuildRequires: mariadb-connector-c-devel BuildRequires: openssl-devel BuildRequires: libuuid-devel BuildRequires: libcurl-devel BuildRequires: xz-devel BuildRequires: bzip2-devel BuildRequires: python3-devel %description A collection of command-line utilities for manipulating genomic data formats used by the UCSC Genome Browser, including bigWig, bigBed, liftOver, and others. This package contains the MIT-licensed portions of the UCSC Kent source tree, extracted from the kent-core repository. %prep %autosetup -n kent-core-%{version} -p1 %build # The Kent build system is very sensitive to MACHTYPE export MACHTYPE=$(uname -m | sed 's/-.*//') export BINDIR=$(pwd)/bin mkdir -p $BINDIR # Explicitly set MySQL/MariaDB paths for the build # Fedora's mariadb-connector-c-devel puts headers in /usr/include/mysql export MYSQLINC=/usr/include/mysql export MYSQLLIBS="-lmariadb -lz -lpthread -lm -lssl -lcrypto" # The Kent build system is NOT parallel-safe # Use -j1 and pass variables directly make -j1 BINDIR=$BINDIR MYSQLINC=$MYSQLINC MYSQLLIBS="$MYSQLLIBS" %check export MACHTYPE=$(uname -m | sed 's/-.*//') export BINDIR=$(pwd)/bin # Some tests might fail or require network, but let's try # make -j1 test BINDIR=$BINDIR || true %install mkdir -p %{buildroot}%{_bindir} install -m 0755 bin/* %{buildroot}%{_bindir}/ # Fix ambiguous python shebangs for Fedora policy find %{buildroot}%{_bindir} -type f | xargs grep -lE '^#!.*python' | xargs sed -i '1s|#!.*python.*|#!%{__python3}|' # Also fix perl shebangs just in case find %{buildroot}%{_bindir} -type f | xargs grep -lE '^#!.*perl' | xargs sed -i '1s|#!.*perl|#!%{__perl}|' %files %license LICENSE %{_bindir}/* %changelog * Tue May 19 2026 Gemini CLI - 492-1 - Initial package for Fedora.