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