# # spec file for package xli (Version 20050904) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: xli BuildRequires: libjpeg-devel libpng-devel xorg-x11-devel %define ver 2005-09-04 License: Other License(s), see package, X11/MIT Group: System/X11/Utilities Provides: xli115 Autoreqprov: on Version: 20050904 Release: 17 Summary: X11 Image Loading Utility URL: http://pantransit.reptiles.org/prog Source: xli-1.17.0-%{version}.tar.bz2 Patch0: xli-1.17.0.patch Patch1: xli-1.17.0-overflow.patch Patch2: xli-1.17.0-8bit_palette.patch Patch3: xli-1.17.0-configfile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if "%(xft-config --prefix)" == "/usr" %define _xorg7libs %_lib %define _xorg7libs32 lib %define _xorg7bin bin %define _xorg7_mandir %_mandir %define _xorg7pixmaps include %define _xorg7libshare share %define _xorg7_xkb /usr/share/X11/xkb %define _xorg7_termcap /usr/lib/X11/etc %define _xorg7_serverincl /usr/include/xorg %define _xorg7_fonts /usr/share/fonts #%define _xorg7_config /usr/share/X11/config #use libshare macro %define _xorg7_prefix /usr %else %define _xorg7libs X11R6/%_lib %define _xorg7libs32 X11R6/lib %define _xorg7bin X11R6/bin %define _xorg7_mandir /usr/X11R6/man %define _xorg7pixmaps X11R6/include %define _xorg7libshare X11R6/lib/ %define _xorg7_xkb /etc/X11/xkb %define _xorg7_termcap /usr/X11R6/lib/X11/etc %define _xorg7_serverincl /usr/X11R6/lib/Server/include %define _xorg7_fonts /usr/X11R6/lib/X11/fonts #%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro %define _xorg7_prefix /usr/X11R6 %endif %description xli is a version of xloadimage. This utility will view several types of images under X11, or load images onto the X11 root window. Authors: -------- Graeme Gill Smarasderagd %prep %setup -q -n xli-%{ver} %patch0 %patch1 %patch2 %patch3 %build xmkmf -a make %{?jobs:-j%jobs} all CCOPTIONS="$RPM_OPT_FLAGS -fstack-protector" %install mkdir -p $RPM_BUILD_ROOT/usr/lib/X11 make BINDIR=$RPM_BUILD_ROOT/usr/%{_xorg7bin} install make DESTDIR=$RPM_BUILD_ROOT install.man %clean rm -rf $RPM_BUILD_ROOT %files %doc README* ABOUTGAMMA %doc %{_xorg7_mandir}/man1/xli.1x.gz %doc %{_xorg7_mandir}/man1/xlito.1x.gz /usr/%{_xorg7bin}/xli /usr/%{_xorg7bin}/xlito /usr/%{_xorg7bin}/xsetbg /usr/%{_xorg7bin}/xview /usr/lib/X11/Xli %changelog -n xli * Thu Jul 27 2006 - lmichnovic@suse.cz - building with X.org 7.x: detects version of X.org instead of suse_version * Sat Jul 22 2006 - lmichnovic@suse.cz - create config file in /usr/lib/X11/Xli as sugested in man page (configfile.patch) - now builds also with new X.org 7.x * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Jan 12 2006 - lmichnovic@suse.cz - added -fstack-protector into CCOPTIONS in specfile * Fri Oct 14 2005 - lmichnovic@suse.cz - fixed buffer overflow which can be misused to execute arbitrary code (#121922) - added support 8bit color images with palette. * Thu Sep 08 2005 - ltinkl@suse.cz - update to snapshot 2005-09-04 which incorporates fixes for the previous security bug (#66139) and fullscreen handling (#115258) * Fri Jun 10 2005 - meissner@suse.de - use RPM_OPT_FLAGS * Wed Apr 20 2005 - ltinkl@suse.de - fix buffer overflow (#66139) * Thu Jul 01 2004 - bg@suse.de - fix Imakefile for hppa * Tue Feb 24 2004 - schwab@suse.de - Fix bad unsigned division [#25778]. * Wed Jun 04 2003 - mjancar@suse.cz - added URL * Wed Nov 13 2002 - jderfina@suse.cz - fixed "GCC no longer implements ." error. * Thu Sep 26 2002 - max@suse.de - New version 1.17.0. - Now supports PNG and progressive JPEG. * Tue Sep 04 2001 - nadvornik@suse.cz - fixed copyright tag - removed Provides: xli * Fri Jul 20 2001 - nadvornik@suse.cz - fixed possible buffer overflow * Fri Apr 13 2001 - schwab@suse.de - Fix missing declarations. - Fix unaligned access. * Fri May 12 2000 - nadvornik@suse.cz - added BuildRoot - removed Makefile.Linux * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Mon Jun 09 1997 - fehr@suse.de - make all smlinks relative