xli/xli.spec

163 lines
4.9 KiB
RPMSpec

#
# spec file for package xli (Version 20061110)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# 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: X11/MIT
Group: System/X11/Utilities
Provides: xli115
AutoReqProv: on
Version: 20061110
Release: 125
Summary: X11 Image Loading Utility
Url: http://pantransit.reptiles.org/prog
Source: xli-2006-11-10.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 <GraemeGill@access.net.au>
Smarasderagd <smar@reptiles.org>
%prep
%setup -q -n xli-2006-11-10
%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
%defattr(-,root,root)
%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
* Fri Apr 13 2007 lmichnovic@suse.cz
- update to new snapshot 2006/11/10
* fixing a crash on PGM/PPM images with a maxval > 255,
and various warnings about uninitialized variables.
* Fri Feb 09 2007 aj@suse.de
- Add defattr.
* 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 <varargs.h>." 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