File rxvt-unicode.spec of Package rxvt-unicode
#
# spec file for package rxvt-unicode (Version 9.07)
#
# 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/
#
# norootforbuild
Name: rxvt-unicode
Version: 9.07
Release: 1
#
License: LGPLv2.1+
Group: System/X11/Terminals
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: freetype2-devel gcc-c++ pkgconfig
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 920
BuildRequires: XFree86-devel
%else
BuildRequires: xorg-x11-devel
%endif
# for tic
BuildRequires: ncurses-devel
Provides: locale(xorg-x11:ja;ko;zh)
#
%define with_terminfo_files 0
# FIXME: this should be < 1011 but the number isnt bumped yet
%if %{suse_version} <= 1010
%define with_terminfo_files 1
%define _terminfo /usr/share/terminfo
%endif
%if ! 0%{?with_terminfo_files}
Requires: terminfo
%endif
%requires_eq perl
#
Url: http://software.schmorp.de/#rxvt-unicode
Source: http://dist.schmorp.de/%{name}/%{name}-%{version}.tar.bz2
Source1: rxvt-unicode-rpmlintrc
Source2: rxvt-unicode.README.SuSE
Patch1: rxvt-unicode-9.02-CVE-2008-1142-DISPLAY.patch
#
Summary: Rxvt X Terminal with Unicode Support
%description
rxvt-unicode is a clone of the well-known terminal emulator rxvt,
modified to store text in Unicode (either UCS-2 or UCS-4) and to use
locale-correct input and output. It also supports mixing multiple fonts
at the same time, including Xft fonts.
Authors:
--------
Marc Lehmann <rxvt@schmorp.de>
%prep
%setup -q
%patch1
find -type d -name CVS -print0 | xargs -r0 %__rm -r
%{__install} -m 0644 %{S:2} README.SuSE
%build
#./autogen.sh
# cant use the configure macro here ...
# the script handles prefix in a not so nice manner
%if %{suse_version} < 1011
%define _prefix %{_usr}/X11R6
%define _mandir %{_usr}/share/man/
%endif
#
export CFLAGS="%{optflags} -fno-strict-aliasing -Wno-unused -DXPM_INC_X11=1"
export CXXFLAGS="$CFLAGS"
%configure \
--with-term="%{name}" \
--enable-shared \
--disable-strings \
--enable-xft \
--enable-font-styles \
--enable-unicode3 \
--enable-combining \
--with-codesets=all \
--enable-utmp \
--enable-wtmp \
--enable-lastlog \
--enable-xpm-background \
--enable-transparency \
--enable-tinting \
--enable-fading \
--enable-menubar \
--enable-next-scroll \
--enable-rxvt-scroll \
--enable-xterm-scroll \
--enable-plain-scroll \
--enable-half-shadow \
--enable-perl \
--enable-xgetdefault \
--enable-xim \
--enable-ttygid \
--enable-fallback \
--enable-linespace \
--enable-24bit \
--enable-keepscrolling \
--enable-selectionscrolling \
--enable-mousewheel \
--enable-slipwheeling \
--enable-smart-resize \
--enable-iso14755 \
--enable-cursor-blink \
--enable-text-blink \
--enable-pointer-blank \
--enable-8bitctrls \
--enable-frills \
%if %{?suse_version} >= 1010
--with-xpm-includes=%{_prefix}/include \
--with-xpm-library=%{_prefix}/%{_lib} \
%endif
--with-xpm
%__make %{?jobs:-j%{jobs}}
%install
%if %with_terminfo_files
# no longer install the terminfo file as it is part of the terminfo package now
%{__install} -Dd -m 0755 "%{buildroot}%{_terminfo}/r"
TERMINFO="%{buildroot}%{_terminfo}" %makeinstall
%else
%makeinstall
%endif
#
%{__mkdir} examples/
%{__cp} -av doc/embed* doc/rxvt-tabbed doc/pty-fd examples/
%clean
%{__rm} -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc Changes README* doc/README* doc/changes.txt
%doc doc/etc
%doc examples/
%{_bindir}/urxvt*
%if %with_terminfo_files
%dir %{_terminfo}/r
%{_terminfo}/r/%{name}
%endif
%{_mandir}/man1/urxvt*
%{_mandir}/man3/urxvt*
%{_mandir}/man7/urxvt*
%dir %{_libdir}/urxvt/
%dir %{_libdir}/urxvt/perl
%{_libdir}/urxvt/urxvt.pm
%{_libdir}/urxvt/perl/digital-clock
%{_libdir}/urxvt/perl/example-refresh-hooks
%{_libdir}/urxvt/perl/selection
%{_libdir}/urxvt/perl/block-graphics-to-ascii
%{_libdir}/urxvt/perl/matcher
%{_libdir}/urxvt/perl/option-popup
%{_libdir}/urxvt/perl/searchable-scrollback
%{_libdir}/urxvt/perl/selection-autotransform
%{_libdir}/urxvt/perl/selection-popup
%{_libdir}/urxvt/perl/urxvt-popup
%{_libdir}/urxvt/perl/selection-pastebin
%{_libdir}/urxvt/perl/readline
%{_libdir}/urxvt/perl/tabbed
%{_libdir}/urxvt/perl/remote-clipboard
%{_libdir}/urxvt/perl/xim-onthespot
%{_libdir}/urxvt/perl/kuake
%{_libdir}/urxvt/perl/macosx-clipboard
%{_libdir}/urxvt/perl/overlay-osc
%changelog