Name: x11iraf Version: 2.2 Release: 5%{?dist} Summary: GUI applications developed by the IRAF Project License: IRAF URL: https://iraf-community.github.io/x11iraf.html Source0: https://github.com/iraf-community/x11iraf/archive/refs/tags/v2.2.tar.gz Source1: XGterm.xresources Source2: xgterm.desktop Patch1: fix_wcspix.patch Patch10: epel10-fix.patch BuildRequires: gcc BuildRequires: make BuildRequires: bison flex BuildRequires: libXaw-devel BuildRequires: Xaw3d-devel BuildRequires: ncurses-devel BuildRequires: ncurses BuildRequires: desktop-file-utils %if 0%{?fedora} BuildRequires: tcl8-devel %else BuildRequires: tcl-devel %endif Requires: x11iraf-xgterm = %{version}-%{release} Requires: x11iraf-ximtool = %{version}-%{release} %description This package contains X11/GUI development utilities and applications developed by the IRAF Project, National Optical Astronomy Observatories, since 1994. It provides the following programs: * XGterm provides a Tek 4012 compatible graphics terminal emulation * XImtool is an image display server %package xgterm Summary: Terminal emulator to work with IRAF License: IRAF Requires: xorg-x11-fonts-misc %description xgterm XGterm provides a Tek 4012 compatible graphics terminal emulation for IRAF, plus a datastream driven widget server capability using the Object Manager to provide full access to the underlying toolkit and widget set. The Gterm graphics window operates almost identically to the xterm Tek window, however there are extensions for implementing full-screen cursors, imaging, area fills, colors, graphics erasure, a "status line" and so on. %package ximtool Summary: Interactive image display program for the X Window System License: IRAF Requires: xorg-x11-fonts-misc %description ximtool Ximtool provides an image display capability to remote client applications for IRAF using the standard imtool/iis image display protocol. The image display server allows a number of image frame buffers to be created and displayed. The client can read and write data in these frame buffers. Any frame or combination of frames can be displayed. Various display options are provided, e.g., zoom and pan, flip about either axis, frame blink, windowing of the display, and colortable enhancement. %prep %autosetup -N %autopatch -M 9 -p1 %if 0%{?rhel} == 10 %patch -P10 -p1 %endif %build %if 0%{?rhel} <= 9 %set_build_flags %endif OSI_COMPLIANT=YES export OSI_COMPLIANT make %{?_smp_mflags} %install make install prefix=/usr DESTDIR=%{buildroot} mkdir -p %{buildroot}/%{_datadir}/terminfo tic -v1 xgterm/xgterm.terminfo -o %{buildroot}/%{_datadir}/terminfo # mkdir -p %{buildroot}/%{_datadir}/X11/app-defaults/ cp %{SOURCE1} %{buildroot}/%{_datadir}/X11/app-defaults/XGterm desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2} %files %doc README.md %license LICENSES %files xgterm %{_bindir}/xgterm %{_mandir}/man1/xgterm.1.gz %{_datadir}/terminfo/x/xgterm %{_datadir}/X11/app-defaults/XGterm %{_datadir}/applications/xgterm.desktop %files ximtool %{_bindir}/xgterm %{_bindir}/ximtool %{_mandir}/man1/ximtool.1.gz %changelog * Wed Mar 04 2026 Sergio Pascual - 2.2-5 - Make x11iraf metapackage * Tue Mar 03 2026 Sergio Pascual - 2.2-4 - Add desktop entry for xgterm - Apply correctly the epel10 patch * Mon Mar 02 2026 Sergio Pascual - 2.2-2 - New upstream source (2.2) * Thu Oct 07 2021 Sergio Pascual - 2.1-1 - New upstream source (2.1)