source: projects/specs/trunk/b/bookview/bookview-vl.spec @ 6424

Revision 6424, 3.5 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

Line 
1Summary: BookView is a NDTP client.
2Summary(ja): BookView - NDTP クライアント
3Name: bookview
4Version: 3.2.1
5Release: 1%{?_dist_release}
6Source: ftp://ftp.sra.co.jp/pub/net/ndtp/bookview/%{name}-%{version}.tar.gz
7Source1: %{name}-redhat.tar.gz
8License: GPL
9Group: Applications/Text
10Url: http://www.sra.co.jp/people/m-kasahr/bookview/
11Buildarch: noarch
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13Requires: tcl >= 8.0.5_jp
14Requires: tk >= 8.0.5_jp
15BuildRequires: tcl >= 8.4
16BuildRequires: tk >= 8.4
17%define tkpath %{_datadir}/tk8.4
18%define appsdir /etc/X11/applnk
19%define docpath %{_docdir}/%{name}-%{version}
20
21%description
22BookView is a NDTP (Network Dictionary Transfer Protocol) client
23written 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
29BookView は CD-ROM 書籍を読むための、Tcl/Tkで書かれた NDTP
30(Network Dictionary Transfer Protocol) クライアントです。
31動作させるには Tcl/Tk8.0jp あるいは Tcl/Tk8.3 以上が必要です。
32
33%prep
34rm -rf $RPM_BUILD_ROOT
35
36%setup -q -a 1
37
38%build
39./configure --prefix=%{_prefix}       \
40    --sysconfdir=/etc/%{name}       \
41    --infodir=%{_infodir}
42make
43
44%install
45make DESTDIR=$RPM_BUILD_ROOT install
46install -d $RPM_BUILD_ROOT/etc/%{name}
47install -m 644 %{name}.conf  $RPM_BUILD_ROOT/etc/%{name}
48install -d $RPM_BUILD_ROOT%{_datadir}/pixmaps
49install -m 644 *.xpm  $RPM_BUILD_ROOT%{_datadir}/pixmaps
50install -d $RPM_BUILD_ROOT%{appsdir}/Applications
51install -m 644 *.desktop  $RPM_BUILD_ROOT%{appsdir}/Applications
52
53echo "Categories=Application;Utility;" >> \
54    $RPM_BUILD_ROOT%{appsdir}/Applications/BookView.desktop
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%post
60if [ -x /bin/grep -a -f /etc/services ] ; then
61grep -q "^ndtp" /etc/services || \
62echo "ndtp          2010/tcp       # added by bookview RPM" >>  /etc/services
63fi
64
65if [ -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
74fi
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
Note: See TracBrowser for help on using the repository browser.