File: suikyo.spec

package info (click to toggle)
suikyo 2.1.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 904 kB
  • ctags: 115
  • sloc: ruby: 1,160; sh: 548; lisp: 165; makefile: 112
file content (157 lines) | stat: -rw-r--r-- 3,584 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%define ruby_libdir %(ruby -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')

%define name		suikyo
%define version		2.1.0
%define release		1
%define	e_sitedir 	%{_datadir}/emacs/site-lisp
%define e_startdir	%{e_sitedir}/site-start.d
%define	xe_sitedir	%{_datadir}/xemacs/site-lisp
%define xe_startdir	%{_datadir}/xemacs/site-packages/lisp/site-start.d
%define	sitepdir	%{_datadir}/xemacs/xemacs-packages

Summary: Romaji Hiragana conversion library
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
URL: http://taiyaki.org/suikyo/
Source: http://taiyaki.org/suikyo/src/%{name}-%{version}.tar.gz
Group: Development/Libraries
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: ruby, xemacs
BuildRequires: emacs

%package emacs
Summary: emacs binding of suikyo
Group: Applications/Editors
Requires: suikyo
Requires: emacs

%package xemacs
Summary: xemacs binding of suikyo
Group: Applications/Editors
Requires: xemacs, %{name} = %{version}

%package ruby
Summary: ruby binding of suikyo
Group: Development/Libraries
Requires: ruby, %{name} = %{version}

%description
Suikyo is a Romaji Hiragana conversion library based on
DFA (Deterministic finate state) automaton.

%description emacs
suikyo-emacs is a emacs binding of suikyo.

%description xemacs
suikyo-xemacs is a xemacs binding of suikyo.

%description ruby
suikyo-ruby is a ruby binding of suikyo.

%prep
rm -rf %{buildroot}

%setup -q

%build
%configure rubydir=%{ruby_libdir}
make

cd elisp/src

emacs -no-site-file -q -batch -f batch-byte-compile *.el
for i in *.el; do
  cp $i $i.emacs
done
for i in *.elc; do
  mv $i $i.emacs
done

xemacs -no-site-file -q -batch -f batch-byte-compile *.el
for i in *.elc; do
  mv $i $i.xemacs
done

cd ../..

%install
(cd conv-table && make SUIKYO_TABLE_DIR=%{buildroot}%{_datadir}/suikyo/conv-table install)
(cd ruby && echo "install:" > doc/Makefile && make prefix=%{buildroot}%{_prefix} rubydir=%{buildroot}%{ruby_libdir} install)

cd elisp/src

mkdir -p %{buildroot}%{e_sitedir}/suikyo

for i in *.el*.emacs; do
  install -c -m 0644 $i %{buildroot}%{e_sitedir}/suikyo/${i%%.emacs}
done

mkdir -p %{buildroot}%{e_startdir}
install -c -m 0644 ../etc/init-suikyo.el %{buildroot}%{e_startdir}

mkdir -p %{buildroot}%{sitepdir}/lisp/suikyo

cd ../..
%configure --with-emacs-sitelispdir=%{sitepdir}/lisp/suikyo \
  --with-emacs-initdir=%{xe_startdir}
make
cd elisp/src

install -c -m 0644 *.el %{buildroot}%{sitepdir}/lisp/suikyo
for i in *.elc.xemacs; do
  install -c -m 0644 $i %{buildroot}%{sitepdir}/lisp/suikyo/${i%%.xemacs}
done

mkdir -p %{buildroot}%{xe_startdir}
install -c -m 0644 ../etc/init-suikyo.el %{buildroot}%{xe_startdir}

cd ../..

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/suikyo
%doc ChangeLog
%doc contrib/uniq.rb
%doc doc/index.html

%files emacs
%{e_sitedir}/suikyo
%{e_startdir}/init-suikyo.el
%doc elisp/ChangeLog

%files xemacs
%{sitepdir}/lisp/suikyo
%{xe_startdir}/init-suikyo.el
%doc elisp/ChangeLog

%files ruby
%{_libdir}/ruby/*/*
%doc ruby/ChangeLog
%doc ruby/doc/index.html

%changelog
* Tue Dec 16 2003 Masaki Yatsu <yatsu@digital-genes.com>
- (1.2.0-1)
- version up.

* Wed May 28 2003 Masaki Yatsu <yatsu@borogrammers.net>
- (1.1.2-2 / 1.1.2-0pa2)
- make suikyo sub directory in Emacs-Lisp directory

* Sun May 18 2003 Masaki Yatsu <yatsu@borogrammers.net>
- (1.1.2-1 / 1.1.2-0pa1)
- version up

* Tue May 13 2003 Masaki Yatsu <yatsu@borogrammers.net>
- (1.1.1-0pa2)
- correct suikyo-table-path

* Tue May 13 2003 Masaki Yatsu <yatsu@borogrammers.net>
- (1.1.1-0pa1)
- first build