1 | Summary: BookView is a NDTP client. |
---|
2 | Summary(ja): BookView - NDTP クライアント |
---|
3 | Name: bookview |
---|
4 | Version: 3.2.1 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Source: ftp://ftp.sra.co.jp/pub/net/ndtp/bookview/%{name}-%{version}.tar.gz |
---|
7 | Source1: %{name}-redhat.tar.gz |
---|
8 | License: GPL |
---|
9 | Group: Applications/Text |
---|
10 | Url: http://www.sra.co.jp/people/m-kasahr/bookview/ |
---|
11 | Buildarch: noarch |
---|
12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
13 | Requires: tcl >= 8.0.5_jp |
---|
14 | Requires: tk >= 8.0.5_jp |
---|
15 | BuildRequires: tcl >= 8.4 |
---|
16 | BuildRequires: tk >= 8.4 |
---|
17 | %define tkpath %{_datadir}/tk8.4 |
---|
18 | %define appsdir /etc/X11/applnk |
---|
19 | %define docpath %{_docdir}/%{name}-%{version} |
---|
20 | |
---|
21 | %description |
---|
22 | BookView is a NDTP (Network Dictionary Transfer Protocol) client |
---|
23 | written in Tcl /Tk. It requires Tcl/Tk8.0jp or Tcl/Tk8.3 and higher |
---|
24 | (`jp' means `Japanized version'). |
---|
25 | |
---|
26 | #' |
---|
27 | |
---|
28 | %description -l ja |
---|
29 | BookView は CD-ROM 書籍を読むための、Tcl/Tkで書かれた NDTP |
---|
30 | (Network Dictionary Transfer Protocol) クライアントです。 |
---|
31 | 動作させるには Tcl/Tk8.0jp あるいは Tcl/Tk8.3 以上が必要です。 |
---|
32 | |
---|
33 | %prep |
---|
34 | rm -rf $RPM_BUILD_ROOT |
---|
35 | |
---|
36 | %setup -q -a 1 |
---|
37 | |
---|
38 | %build |
---|
39 | ./configure --prefix=%{_prefix} \ |
---|
40 | --sysconfdir=/etc/%{name} \ |
---|
41 | --infodir=%{_infodir} |
---|
42 | make |
---|
43 | |
---|
44 | %install |
---|
45 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
46 | install -d $RPM_BUILD_ROOT/etc/%{name} |
---|
47 | install -m 644 %{name}.conf $RPM_BUILD_ROOT/etc/%{name} |
---|
48 | install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps |
---|
49 | install -m 644 *.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps |
---|
50 | install -d $RPM_BUILD_ROOT%{appsdir}/Applications |
---|
51 | install -m 644 *.desktop $RPM_BUILD_ROOT%{appsdir}/Applications |
---|
52 | |
---|
53 | echo "Categories=Application;Utility;" >> \ |
---|
54 | $RPM_BUILD_ROOT%{appsdir}/Applications/BookView.desktop |
---|
55 | |
---|
56 | %clean |
---|
57 | rm -rf $RPM_BUILD_ROOT |
---|
58 | |
---|
59 | %post |
---|
60 | if [ -x /bin/grep -a -f /etc/services ] ; then |
---|
61 | grep -q "^ndtp" /etc/services || \ |
---|
62 | echo "ndtp 2010/tcp # added by bookview RPM" >> /etc/services |
---|
63 | fi |
---|
64 | |
---|
65 | if [ -f %{tkpath}/kinput.tcl -a -x /bin/grep -a -x /bin/sed ]; then |
---|
66 | if ! grep -q 'set KIStart .*<Shift-space>' %{tkpath}/kinput.tcl; then |
---|
67 | cat %{tkpath}/kinput.tcl | \ |
---|
68 | sed 's/set KIStart "/set KIStart "<Shift-space> /' \ |
---|
69 | > %{tkpath}/kinput.tmp |
---|
70 | mv %{tkpath}/kinput.tcl %{tkpath}/kinput.tcl.rpmsave |
---|
71 | echo Original file is saved as %{tkpath}/kinput.tcl.rpmsave |
---|
72 | mv %{tkpath}/kinput.tmp %{tkpath}/kinput.tcl |
---|
73 | fi |
---|
74 | fi |
---|
75 | |
---|
76 | %files |
---|
77 | %defattr(-,root,root) |
---|
78 | %doc [ACNR]* |
---|
79 | %{_bindir}/* |
---|
80 | %dir /etc/%{name} |
---|
81 | %config(missingok) /etc/%{name}/* |
---|
82 | %{_datadir}/bookview/* |
---|
83 | %{_datadir}/pixmaps/*.xpm |
---|
84 | %config(missingok) %{appsdir}/Applications/*.desktop |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Tue Feb 14 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.1-1 |
---|
88 | - update to 3.2.1 |
---|
89 | - add BuildRequires: tk |
---|
90 | |
---|
91 | * Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 3.2-1vl5 |
---|
92 | - applied new versioning policy, spec in utf-8 |
---|
93 | |
---|
94 | * Sun Dec 5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2-0vl3 |
---|
95 | - fixed .desktop |
---|
96 | |
---|
97 | * Tue Nov 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.2-0vl2 |
---|
98 | - fixed spec file encoding (it was utf-8...) |
---|
99 | - fixed Group to Applications/Text |
---|
100 | |
---|
101 | * Wed Jun 25 2003 Masaki Shinomiya <shino@pos.to> 3.2-0vl1 |
---|
102 | - new upstream release supports Tcl/Tk-8.3 and higher |
---|
103 | - noarch, omit documents for install |
---|
104 | - buildrequire tcl >= 8.4 to prevent to rebuild on Vine 2.x |
---|
105 | - |
---|
106 | - if you want to use this version on Vine 2.x, |
---|
107 | - just install noarch.rpm build with tcl >= 8.4. |
---|
108 | - it may works. |
---|
109 | |
---|
110 | * Sat Jun 14 2003 Masaki Shinomiya <shino@pos.to> 3.1.1-0vl1 |
---|
111 | - post install script to modify services and kinput.tcl |
---|
112 | - configure with specifying sysconfdir and infdir |
---|
113 | - files, add luncher, description ja, requires, bookview.conf |
---|
114 | - requires, buildprereq |
---|
115 | |
---|
116 | * Sun May 20 2001 UECHI Yasumasa <uh@u.dhis.portside.net> |
---|
117 | - 1st release |
---|
118 | |
---|