-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
Gauche.spec.in
297 lines (227 loc) · 7.37 KB
/
Gauche.spec.in
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
# Spec file to build Gauche RPM package
#
# We no longer build RPM files regularly. This file is provided to
# help RPM builders.
#
# The files lists, rpmfiles*.txt, are generated by 'make rpmfiles' from
# the installed Gauche. You have to first build and install Gauche locally,
# then run 'make rpmfiles', then run rpm build.
#
# In order to build different encoding-specific packages (like
# Gauche-euc-jp, etc) from a single source rpm, the actual package
# is created as a subpackage. The command
#
# rpm -ba Gauche.spec
#
# builds three packages:
# Gauche-VERS.ARCH.rpm ;; dummy package (no use; discard it)
# Gauche-ENC-VERS.ARCH.rpm ;; binary package with encoding ENC
# Gauche-VERS.src.rpm ;; source package
%define version @GAUCHE_VERSION@
%define abi_version @GAUCHE_ABI_VERSION@
%define encoding utf8
%define threads pthreads
Summary: Scheme script engine with multibyte character handling
Name: Gauche
Version: %{version}
Release: 3
Source: Gauche-%{version}.tgz
License: revised BSD
Group: Development/Languages
Packager: Shiro Kawai ([email protected])
Buildroot: %{_tmppath}/rpm
URL: https://practical-scheme.net/gauche/
#Prefix: /usr
%description
Gauche is a Scheme engine conforming Revised^7 Report on
Algorithmic Language Scheme. It is designed for rapid development
of daily tools like system management and text processing.
It can handle multibyte character strings natively.
%package %{encoding}
Summary: Scheme script engine with multibyte character handling
Group: Development/Languages
Provides: Gauche libgauche.so
License: revised BSD
Requires: Gauche-common
%description %{encoding}
Gauche is a Scheme engine conforming Revised^7 Report on
Algorithmic Language Scheme. It is designed for rapid development
of daily tools like system management and text processing.
It can handle multibyte character strings natively.
This package is compiled with %{encoding} as the native character encoding.
%package common
Summary: Scheme script engine with multibyte character handling
Group: Development/Languages
License: revised BSD
%description common
Gauche is a Scheme engine conforming Revised^7 Report on
Algorithmic Language Scheme. It is designed for rapid development
of daily tools like system management and text processing.
It can handle multibyte character strings natively.
This package includes common part that is independent from any
native character encoding. You need either Gauche-eucjp or Gauche-utf8
package as well.
%package gdbm-%{encoding}
Summary: gdbm binding for Gauche Scheme system
Group: Development/Languages
License: GPL
Provides: Gauche-gdbm
BuildRequires: gdbm-devel >= 1.8.0
Requires: gdbm >= 1.8.0, Gauche-%{encoding}
%description gdbm-%{encoding}
This package adds gdbm binding to the Gauche Scheme system.
%prep
%setup
%build
./configure --prefix=/usr --mandir='${prefix}/share/man' --infodir='${prefix}/share/info' --enable-threads=%{threads} --enable-multibyte=%{encoding}
%ifarch i386
make OPTFLAGS="-fomit-frame-pointer"
%else
make
%endif
%install
# These dirs are not cleared after rpm -ba --clean. To ensure clean
# install, we remove them.
rm -rf ${RPM_BUILD_ROOT}/usr/lib/gauche-%{abi_version}
rm -rf ${RPM_BUILD_ROOT}/usr/share/gauche-%{abi_version}
rm -rf ${RPM_BUILD_ROOT}/usr/share/man/man1
mkdir -p ${RPM_BUILD_ROOT}/usr
make DESTDIR=${RPM_BUILD_ROOT}/ install-pkg
make DESTDIR=${RPM_BUILD_ROOT}/ install-doc
%clean
%post
%post %{encoding}
# creates slib catalog, if possible.
/usr/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)" > /dev/null 2>&1 || echo
%files common -f rpmfiles-common.txt
%defattr(-,root,root)
%doc COPYING ChangeLog INSTALL.in Gauche.spec
/usr/share/info/
/usr/share/man/man1/
/usr/share/gauche-%{abi_version}/site
/usr/share/aclocal/gauche.m4
%files %{encoding} -f rpmfiles-encoding.txt
%defattr(-,root,root)
/usr/bin/gosh
/usr/bin/gauche-config
/usr/bin/gauche-cesconv
/usr/bin/gauche-install
/usr/bin/gauche-package
/usr/lib/libgauche-%{abi_version}.so
/usr/lib/libgauche-%{abi_version}.so.0
/usr/lib/libgauche-%{abi_version}.so.0.*
/usr/lib/gauche-%{abi_version}/site/
%files gdbm-%{encoding} -f rpmfiles-gdbm.txt
%defattr(-,root,root)
%changelog
* Sat Dec 10 2020 Shiro Kawai
- Gauche release 0.9.10
* Sat Dec 14 2019 Shiro Kawai
- Gauche release 0.9.9
* Tue Jun 15 2019 Shiro Kawai
- Gauche release 0.9.8
* Tue Dec 20 2018 Shiro Kawai
- Gauche release 0.9.7
* Tue Jul 3 2018 Shiro Kawai
- Gauche release 0.9.6
* Tue May 8 2018 Takahiro Kudou - 0.9.5-3
- The package of gdbm-devel was assigned to be required for build.
* Mon May 7 2018 Takahiro Kudou - 0.9.5-2
- Fixed the description of incorrect day names of week in the changelog section.
- The description of files was modified to avoid the error of file not found.
- The doc file list was updated to match the packaged files.
* Sat Oct 8 2016 Shiro Kawai
- Gauche release 0.9.5.
* Sat Jul 19 2014 Shiro Kawai
- Gauche release 0.9.4.
* Wed May 9 2012 Shiro Kawai
- Gauche release 0.9.3.
* Fri Aug 5 2011 Shiro Kawai
- Gauche release 0.9.2.
* Sat Dec 11 2010 Shiro Kawai
- Gauche release 0.9.1.
* Mon Jan 4 2010 Shiro Kawai
- Fix missing micro version of libgauche.so in %files section.
* Sat Nov 21 2009 Shiro Kawai
- Gauche release 0.9.
* Mon Oct 6 2008 Shiro Kawai
- Gauche release 0.8.14.
* Wed Feb 13 2008 Shiro Kawai
- Gauche release 0.8.13.
* Mon Oct 29 2007 Shiro Kawai
- Gauche release 0.8.12.
* Thu Aug 16 2007 Shiro Kawai
- Gauche release 0.8.11.
* Wed Apr 18 2007 Shiro Kawai
- Gauche release 0.8.10.
* Wed Jan 17 2007 Shiro Kawai
- Gauche release 0.8.9.
* Sat Nov 11 2006 Shiro Kawai
- Gauche release 0.8.8.
* Wed Apr 12 2006 Shiro Kawai
- Gauche release 0.8.7.
* Fri Nov 4 2005 Shiro Kawai
- Gauche release 0.8.6.
* Thu Jun 30 2005 Shiro Kawai
- Gauche release 0.8.5.
* Tue May 31 2005 Shiro Kawai
- Gauche release 0.8.4.
* Thu Dec 2 2004 Shiro Kawai
- Gauche release 0.8.3.
* Mon Nov 29 2004 Shiro Kawai
- Gauche release 0.8.2.
* Mon Aug 2 2004 Shiro Kawai
- Gauche release 0.8.1.
* Sat May 22 2004 Shiro Kawai
- Gauche release 0.8.
* Thu Feb 26 2004 Shiro Kawai
- Gauche release 0.7.4.2.
* Wed Feb 4 2004 Shiro Kawai
- Gauche release 0.7.4.1.
* Tue Feb 3 2004 Shiro Kawai
- Gauche release 0.7.4.
* Tue Dec 16 2003 Shiro Kawai
- Gauche release 0.7.3.
* Wed Oct 22 2003 Shiro Kawai
- Fix gdbm package license
* Tue Oct 21 2003 Shiro Kawai
- include aclocal/gauche.m4 in common rpm
* Sat Oct 4 2003 Shiro Kawai
- Gauche release 0.7.2.
Splitted into common, encoding-dependent part, and gdbm package.
* Wed Jul 23 2003 Shiro Kawai
- Gauche release 0.7.1
* Fri May 30 2003 Shiro Kawai
- Gauche release 0.7
* Sun Mar 30 2003 Shiro Kawai
- Gauche release 0.6.8
* Fri Feb 7 2003 Shiro Kawai
- Gauche release 0.6.7.1
* Thu Feb 6 2003 Shiro Kawai
- Gauche release 0.6.7
* Sat Dec 14 2002 Shiro Kawai
- Gauche release 0.6.6
* Fri Nov 15 2002 Shiro Kawai
- Gauche release 0.6.5
* Mon Oct 14 2002 Shiro Kawai
- Gauche release 0.6.4
* Sun Sep 22 2002 Shiro Kawai
- Gauche release 0.6.3
* Mon Sep 2 2002 Shiro Kawai
- Gauche release 0.6.2
* Wed Jul 31 2002 Shiro Kawai
- Gauche release 0.6.1
* Thu Jul 18 2002 Shiro Kawai
- Gauche release 0.6
* Sun Jun 30 2002 Shiro Kawai
- Gauche release 0.5.7
* Fri Jun 14 2002 Shiro Kawai
- Gauche release 0.5.6
* Mon May 27 2002 Shiro Kawai
- Gauche release 0.5.5
* Sun May 5 2002 Shiro Kawai
- Gauche release 0.5.4
* Mon Apr 15 2002 Shiro Kawai
- Gauche release 0.5.3
* Thu Mar 7 2002 Shiro Kawai
- first package release