fbterm-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. %define udev_rules_dir %{_sysconfdir}/udev/rules.d
  2. Summary: A fast FrameBuffer based TERMinal emulator for linux
  3. Summary(ja): 高速なフレームバッファベースのターミナルエミュレータ
  4. Name: fbterm
  5. Version: 1.7.0
  6. Release: 2%{?_dist_release}
  7. License: GPLv2+
  8. Group: Applications/System
  9. URL: http://code.google.com/p/fbterm/
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Source0: http://fbterm.googlecode.com/files/%name-%version.tar.gz
  13. Patch10: fbterm-1.4-antialias.patch
  14. Patch11: fbterm-1.7.0-default-size.patch
  15. Patch12: fbterm-1.7.0-default-ambiguous-wide.patch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  17. BuildRequires: freetype2-devel
  18. BuildRequires: fontconfig-devel
  19. Requires(post): libcap
  20. %description
  21. FbTerm is a fast terminal emulator for linux with frame buffer. Features
  22. include:
  23. * mostly as fast as terminal of linux kernel while accelerated scrolling
  24. is enabled on framebuffer device
  25. * select font with fontconfig and draw text with freetype2, same as
  26. Qt/Gtk+ based GUI apps
  27. * dynamicly create/destroy up to 10 windows initially running default
  28. shell
  29. * record scrollback history for every window
  30. * auto-detect text encoding with current locale, support double width
  31. scripts like Chinese, Japanese etc
  32. * switch between configurable additional text encodings with hot keys on
  33. the fly
  34. * copy/past selected text between windows with mouse when gpm server is
  35. running
  36. %package udevrules
  37. Summary: udev rules that grant regular user access
  38. Summary(ja):一般ユーザに fb へのアクセス権を与えるためのudevルール
  39. Group: Applications/System
  40. Requires: udev
  41. %description udevrules
  42. Regular users might use some applications that require access to
  43. frame-buffer device.
  44. For example, ibus-fbterm requires access to /dev/fb0.
  45. This sub-package enables regular user for such access.
  46. %prep
  47. %setup -q -n %{name}-1.7
  48. %patch10 -p1
  49. %patch11 -p1
  50. %patch12 -p1
  51. %build
  52. autoreconf -iv
  53. %configure --disable-gpm ||:
  54. %__make %{?_smp_mflags}
  55. %install
  56. rm -rf $RPM_BUILD_ROOT
  57. %__make install DESTDIR=$RPM_BUILD_ROOT
  58. # install udev rules
  59. %__mkdir -p $RPM_BUILD_ROOT/%{udev_rules_dir}
  60. %__cat >>$RPM_BUILD_ROOT/%{udev_rules_dir}/99-fbterm.rules <<EOF
  61. KERNEL=="fb[0-9]*", SUBSYSTEM=="graphics", MODE="0666"
  62. EOF
  63. %clean
  64. rm -rf $RPM_BUILD_ROOT
  65. %post
  66. [ -x /usr/sbin/setcap ] && /usr/sbin/setcap 'cap_sys_tty_config+ep' %{_bindir}/%{name}
  67. %files
  68. %defattr(-, root, root)
  69. %doc AUTHORS ChangeLog README
  70. %{_bindir}/*
  71. %{_mandir}/man1/*
  72. %files udevrules
  73. %defattr(-,root,root,-)
  74. %config(noreplace) %{udev_rules_dir}/99-fbterm.rules
  75. %changelog
  76. * Sun Jul 10 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net>
  77. - build with new toolchain.
  78. * Fri Jul 08 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7-1
  79. - update to 1.7
  80. - add udevrules subpackage to grant regular user access
  81. - rename patch1 to patch10
  82. - add patch11 to change deafult font size
  83. - add patch12 to enable ambiguous-wide by default
  84. * Sat Apr 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4-1
  85. - new upstream release
  86. - add patch1 to use antialiased font.
  87. * Tue Jan 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3-1
  88. - new upstream release
  89. * Fri Sep 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1
  90. - initial build for Vine Linux
  91. * Sat Aug 23 2008 Funda Wang <fundawang@mandriva.org> 1.1-1mdv2009.0
  92. + Revision: 275412
  93. - import fbterm