%undefine _debugsource_packages Summary: Unified Grahics System Name: topdrawer Version: 1.4e Release: 1%{?dist} License: Free Source: ftp://ftp.riken.jp/iris/topdrawer/topdrawer.tar.gz #Patch: ugs-24bit-color.patch Patch: topdrawer_OSX_fix.patch Prefix: %{_prefix} BuildRequires: f2c ugs imake gcc-gfortran libX11-devel libXt-devel libX11 libXt libSM libICE libXext libSM-devel libICE-devel libXext-devel Requires: libX11 libXt libSM libICE libXext ugs %description Unified Graphics System developed at SLAC. Currently only PostScript, X Window System, and Tektronics 4010 are supported. %prep %setup -n topdrawer -q %patch -p1 %build xmkmf -a make clean %if %{?fedora}%{!?fedora:0} >= 31 make FC='gfortran -std=legacy -fallow-argument-mismatch -fallow-invalid-boz' UGS=/usr/%_lib/libugs.a %else make FC='gfortran -std=legacy ' UGS=/usr/%_lib/libugs.a %endif %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/bin cp -a td $RPM_BUILD_ROOT/usr/bin %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/* %doc README doc %changelog * Thu Nov 23 2017 Andrii Verbytskyi andrii.verbytskyi@mpp.mpg.de - 1.4e for RedHat7