checked in (request 39242) OBS-URL: https://build.opensuse.org/request/show/39242 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xli?expand=0&rev=6
111 lines
3.1 KiB
RPMSpec
111 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package xli (Version 20061110)
|
|
#
|
|
# Copyright (c) 2010 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: MIT
|
|
Group: System/X11/Utilities
|
|
Provides: xli115
|
|
AutoReqProv: on
|
|
Version: 20061110
|
|
Release: 126
|
|
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
|
|
Patch4: xli-png_check_sig.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
|
|
%patch4
|
|
|
|
%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
|