Name: fbterm
Version: 1.3
Release: 0%{?dist}
License: GPLv2+
Group: Applications/System
URL: http://code.google.com/p/fbterm/
Source0: http://fbterm.googlecode.com/files/%{name}-%{version}.tar.gz
#Patch0: %{name}-1.2-kernel-header.patch
Patch1: %{name}-%{version}-setcap.patch
Summary: A frame buffer terminal emulator
Summary(zh_CN): 运行在帧缓冲的快速终端仿真器
Summary(zh_TW): 運行在Framebuffer的快速終端模擬機
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fontconfig-devel gpm-devel
Requires: fontconfig
%description
FbTerm is a fast terminal emulator for linux with frame buffer device.
Features include:
- mostly as fast as terminal of linux kernel while accelerated scrolling
is enabled on framebuffer device
- select font with fontconfig and draw text with freetype2, same as
Qt/Gtk+ based GUI apps
- dynamicly create/destroy up to 10 windows initially running default
shell
- record scrollback history for every window
- auto-detect text encoding with current locale, support double width
scripts like Chinese, Japanese etc
- switch between configurable additional text encodings with hot keys
on the fly
- copy/past selected text between windows with mouse when gpm server
is running
%prep
%setup -q
#%patch0 -p0 -b .kernel-header
%patch1 -p0 -b .signalfd
%build
%configure --disable-static --disable-rpath
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
chmod 755 $RPM_BUILD_ROOT/%{_bindir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
setcap 'cap_sys_tty_config+ep' %{_bindir}/%{name}
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%changelog
* Mon Jan 05 2009 Ding-Yi Chen <dchen at redhat dot com> - 1.3-0
- Upstream update:
1. added command line arguments to change option values
2. added client-server based input method framework
3. added screen rotation support
4. added support for visual type DIRECTCOLOR used by ATI cards
(thanks for Witek's patch)
5. fixed a bug that user can't input some unicode characters
6. fixed a bug of maybe not restore original console state after
FbTerm exited
7. fixed several trivial bugs
8. added using filesystem capability attributes offered by kernel
2.6.27, instead of setting set-user-ID bit on FbTerm
9. decreased memory usage of every shell instance by changing size
of the struct saving every charater's attribute from 4 to 2 bytes
* Thu Dec 11 2008 Ding-Yi Chen <dchen at redhat dot com> - 1.2-2
- Summary simplified.
* Fri Nov 21 2008 Ding-Yi Chen <dchen at redhat dot com> - 1.2-2
- Upstream update, see
http://code.google.com/p/fbterm/
for details.
* Fri Oct 16 2008 Ding-Yi Chen <dchen at redhat dot com> - 1.1-3
- Add gpm support.
* Thu Oct 16 2008 Ding-Yi Chen <dchen at redhat dot com> - 1.1-2
- Fix the kernel-header build problem in F-10.
* Thu Aug 07 2008 Ding-Yi Chen <dchen at redhat dot com> - 1.1-1
- Unset the SUID flag, as it does not need it.
* Thu Aug 07 2008 Ding-Yi Chen <dchen at redhat dot com> - 1.1-0
- The first version.