Blob Blame History Raw
Name:       fbterm
Version:    1.5
Release:    1%{?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}-1.3-setcap.patch
#Patch2:    %{name}-1.4-iminput.patch
Patch3:    %{name}-1.5-rpmpack.patch
Summary:    A frame buffer terminal emulator
Summary(zh_CN): 运行在帧缓冲的快速终端仿真器
Summary(zh_TW): 運行在Framebuffer的快速終端模擬機


BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: autoconf, automake
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 .setcap
#%patch2 -p0 -b .iminput
%patch3 -p0 -b .rpmpack

%build
autoreconf -iv
%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

%if 0%{?fedora} >= 9
%post
setcap 'cap_sys_tty_config+ep' %{_bindir}/%{name}
%endif


%files 
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%if 0%{?fedora} >= 9
%{_bindir}/%{name}
%else
%attr(4755,root,root) %{_bindir}/%{name}
%endif
%{_mandir}/man1/%{name}.1.gz


%changelog
* Fri May 15 2009 Ding-Yi Chen <dchen at redhat dot com> - 1.5-1
- Upstream update:  
  1. added support for text rendering with backround image 
  2. added command-line arguments to customize command executed in sub-window 
  3. added Alt-Fn and all FbTerm's shortcuts support when input method is actived 
  4. added option "-v/--verbose" to show some useful information 
  5. fixed some text color issues with version 1.4 
  6. fixed encoding selection error when locale is C/POSIX 
  7. fixed a bug where screen is cleared on startup even in inactive tty 
  8. fixed a bug where variable HOME is not defined
- rpmpack.patch is to allow rpm buildable for non-root account.

* Mon Mar 23 2009 Ding-Yi Chen <dchen at redhat dot com> - 1.4-1
- Upstream update:
  1. improved text rendering performence 
  2. added private escape sequences for 256 color mode support 
  3. added a option "font-width" to adjust character cell width 
  4. added support for older 2.2/2.4 kernel 
  5. fixed a crash bug with bitmap fonts 
  6. fixed a configure failure in cross-compiling environment
- Note: iminput.patch is applied.

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  
* Tue Jan 06 2009 Ding-Yi Chen <dchen at redhat dot com> - 1.3-1
- SUID fbterm for el5, as it does not have libcap.

* 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.