File rxvt-unicode.spec of Package rxvt-unicode
#
# spec file for package rxvt-unicode
#
# Copyright (c) 2011 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.10
Release: 1
#
License: LGPLv2.1+
Group: System/X11/Terminals
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: freetype2-devel
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: pkgconfig
# for tic
BuildRequires: ncurses-devel
%if 0%{?suse_version} == 0 || 0%{?suse_version} >= 920
BuildRequires: xorg-x11-devel
%else
BuildRequires: XFree86-devel
%endif
Provides: locale(xorg-x11:ja;ko;zh)
BuildRequires: update-desktop-files
#
%define _terminfo /usr/share/terminfo
%if 0%{?suse_version} <= 1010
%define with_terminfo_files 1
%endif
%if 0%{?suse_version} < 1140
%define with_265color_terminfo_files 1
%endif
%if ! 0%{?with_terminfo_files} || ! 0%{?with_265color_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
Source3: rxvt-unicode-256color.desktop
Source4: rxvt-unicode.desktop
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
export COMMON_CONFIGURE_OPTIONS=" --enable-warnings --enable-unicode3 \
--enable-combining \
--enable-xft \
--enable-font-styles \
--enable-pixbuf \
--enable-transparency \
--enable-fading \
--enable-next-scroll \
--enable-rxvt-scroll \
--enable-xterm-scroll \
--enable-perl \
--enable-xim \
--enable-8bitctrls \
--enable-fallback \
--enable-iso14755 \
--enable-frills \
--enable-keepscrolling \
--enable-selectionscrolling \
--enable-mousewheel \
--enable-slipwheeling \
--enable-smart-resize \
--enable-text-blink \
--enable-pointer-blank \
--enable-utmp \
--enable-wtmp \
--enable-lastlog \
--with-codesets=all \
--with-terminfo=%{_terminfo}"
#
export CFLAGS="%{optflags} -fno-strict-aliasing -Wno-unused"
export CXXFLAGS="$CFLAGS"
#
%{__install} -Dd -m 0755 "%{buildroot}%{_terminfo}/r" %{buildroot}%{_datadir}/applications/
# build the 256color version
%configure --enable-256-color ${COMMON_CONFIGURE_OPTIONS}
#
%__make %{?_smp_mflags}
TERMINFO="%{buildroot}%{_terminfo}" %makeinstall
#
for i in %{buildroot}%{_bindir}/* ; do mv ${i} ${i}-256color ; done
%__make distclean
# build the normal 88color version
%configure ${COMMON_CONFIGURE_OPTIONS}
#
%__make %{?_smp_mflags}
TERMINFO="%{buildroot}%{_terminfo}" %makeinstall
%install
for j in %{buildroot}%{_mandir}/man1/* ; do
ln -s $(basename ${j}) ${j%%.1}-256color.1 ;
done
%{__mkdir} examples/
%{__cp} -av doc/embed* doc/rxvt-tabbed doc/pty-fd examples/
%{__rm} -rf %{buildroot}%{_libdir}/urxvt/perl/macosx-clipboard-native
# desktop files
%{__install} -m 0644 %{S:3} %{S:4} %{buildroot}%{_datadir}/applications/
%suse_update_desktop_file rxvt-unicode-256color
%suse_update_desktop_file rxvt-unicode
%clean
%{__rm} -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc Changes README* doc/README* doc/changes.txt
%doc doc/etc
%doc examples/
%{_bindir}/urxvt*
%dir %{_terminfo}/r
%if ! 0%{?with_terminfo_files}
%exclude %{_terminfo}/r/%{name}
%else
%{_terminfo}/r/%{name}
%endif
%if ! 0%{?with_265color_terminfo_files}
%exclude %{_terminfo}/r/rxvt-unicode-256color
%else
%{_terminfo}/r/rxvt-unicode-256color
%endif
%{_mandir}/man1/urxvt*.1%{ext_man}
%{_mandir}/man3/urxvt*.3%{ext_man}
%{_mandir}/man7/urxvt*.7%{ext_man}
%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
%{_libdir}/urxvt/perl/clipboard-osc
%{_libdir}/urxvt/perl/confirm-paste
%{_datadir}/applications/rxvt-unicode-256color.desktop
%{_datadir}/applications/rxvt-unicode.desktop
%changelog