Debian Codegraph @

Gauche.spec.in

raw
1 # Spec file to build Gauche RPM package
2 #
3 # We no longer build RPM files regularly. This file is provided to
4 # help RPM builders.
5 #
6 # The files lists, rpmfiles*.txt, are generated by 'make rpmfiles' from
7 # the installed Gauche. You have to first build and install Gauche locally,
8 # then run 'make rpmfiles', then run rpm build.
9 #
10 # In order to build different encoding-specific packages (like
11 # Gauche-euc-jp, etc) from a single source rpm, the actual package
12 # is created as a subpackage. The command
13 #
14 # rpm -ba Gauche.spec
15 #
16 # builds three packages:
17 # Gauche-VERS.ARCH.rpm ;; dummy package (no use; discard it)
18 # Gauche-ENC-VERS.ARCH.rpm ;; binary package with encoding ENC
19 # Gauche-VERS.src.rpm ;; source package
20
21 %define version @GAUCHE_VERSION@
22 %define abi_version @GAUCHE_ABI_VERSION@
23 %define encoding utf8
24 %define threads pthreads
25
26 Summary: Scheme script engine with multibyte character handling
27 Name: Gauche
28 Version: %{version}
29 Release: 3
30 Source: Gauche-%{version}.tgz
31 License: revised BSD
32 Group: Development/Languages
33 Packager: Shiro Kawai ([email protected])
34 Buildroot: %{_tmppath}/rpm
35 URL: https://practical-scheme.net/gauche/
36 #Prefix: /usr
37
38 %description
39 Gauche is a Scheme engine conforming Revised^7 Report on
40 Algorithmic Language Scheme. It is designed for rapid development
41 of daily tools like system management and text processing.
42 It can handle multibyte character strings natively.
43
44 %package %{encoding}
45 Summary: Scheme script engine with multibyte character handling
46 Group: Development/Languages
47 Provides: Gauche libgauche.so
48 License: revised BSD
49 Requires: Gauche-common
50 %description %{encoding}
51 Gauche is a Scheme engine conforming Revised^7 Report on
52 Algorithmic Language Scheme. It is designed for rapid development
53 of daily tools like system management and text processing.
54 It can handle multibyte character strings natively.
55 This package is compiled with %{encoding} as the native character encoding.
56
57 %package common
58 Summary: Scheme script engine with multibyte character handling
59 Group: Development/Languages
60 License: revised BSD
61 %description common
62 Gauche is a Scheme engine conforming Revised^7 Report on
63 Algorithmic Language Scheme. It is designed for rapid development
64 of daily tools like system management and text processing.
65 It can handle multibyte character strings natively.
66 This package includes common part that is independent from any
67 native character encoding. You need either Gauche-eucjp or Gauche-utf8
68 package as well.
69
70 %package gdbm-%{encoding}
71 Summary: gdbm binding for Gauche Scheme system
72 Group: Development/Languages
73 License: GPL
74 Provides: Gauche-gdbm
75 BuildRequires: gdbm-devel >= 1.8.0
76 Requires: gdbm >= 1.8.0, Gauche-%{encoding}
77 %description gdbm-%{encoding}
78 This package adds gdbm binding to the Gauche Scheme system.
79
80 %prep
81 %setup
82
83 %build
84 ./configure --prefix=/usr --mandir='${prefix}/share/man' --infodir='${prefix}/share/info' --enable-threads=%{threads} --enable-multibyte=%{encoding}
85 %ifarch i386
86 make OPTFLAGS="-fomit-frame-pointer"
87 %else
88 make
89 %endif
90
91
92 %install
93 # These dirs are not cleared after rpm -ba --clean. To ensure clean
94 # install, we remove them.
95 rm -rf ${RPM_BUILD_ROOT}/usr/lib/gauche-%{abi_version}
96 rm -rf ${RPM_BUILD_ROOT}/usr/share/gauche-%{abi_version}
97 rm -rf ${RPM_BUILD_ROOT}/usr/share/man/man1
98 mkdir -p ${RPM_BUILD_ROOT}/usr
99 make DESTDIR=${RPM_BUILD_ROOT}/ install-pkg
100 make DESTDIR=${RPM_BUILD_ROOT}/ install-doc
101
102 %clean
103
104 %post
105
106 %post %{encoding}
107 # creates slib catalog, if possible.
108 /usr/bin/gosh -u slib -e "(require 'logical)" -e "(exit 0)" > /dev/null 2>&1 || echo
109
110 %files common -f rpmfiles-common.txt
111 %defattr(-,root,root)
112 %doc COPYING ChangeLog INSTALL.in Gauche.spec
113 /usr/share/info/
114 /usr/share/man/man1/
115 /usr/share/gauche-%{abi_version}/site
116 /usr/share/aclocal/gauche.m4
117
118 %files %{encoding} -f rpmfiles-encoding.txt
119 %defattr(-,root,root)
120 /usr/bin/gosh
121 /usr/bin/gauche-config
122 /usr/bin/gauche-cesconv
123 /usr/bin/gauche-install
124 /usr/bin/gauche-package
125 /usr/lib/libgauche-%{abi_version}.so
126 /usr/lib/libgauche-%{abi_version}.so.0
127 /usr/lib/libgauche-%{abi_version}.so.0.*
128 /usr/lib/gauche-%{abi_version}/site/
129
130 %files gdbm-%{encoding} -f rpmfiles-gdbm.txt
131 %defattr(-,root,root)
132
133 %changelog
134 * Sat Dec 10 2020 Shiro Kawai
135 - Gauche release 0.9.10
136
137 * Sat Dec 14 2019 Shiro Kawai
138 - Gauche release 0.9.9
139
140 * Tue Jun 15 2019 Shiro Kawai
141 - Gauche release 0.9.8
142
143 * Tue Dec 20 2018 Shiro Kawai
144 - Gauche release 0.9.7
145
146 * Tue Jul 3 2018 Shiro Kawai
147 - Gauche release 0.9.6
148
149 * Tue May 8 2018 Takahiro Kudou - 0.9.5-3
150 - The package of gdbm-devel was assigned to be required for build.
151
152 * Mon May 7 2018 Takahiro Kudou - 0.9.5-2
153 - Fixed the description of incorrect day names of week in the changelog section.
154 - The description of files was modified to avoid the error of file not found.
155 - The doc file list was updated to match the packaged files.
156
157 * Sat Oct 8 2016 Shiro Kawai
158 - Gauche release 0.9.5.
159
160 * Sat Jul 19 2014 Shiro Kawai
161 - Gauche release 0.9.4.
162
163 * Wed May 9 2012 Shiro Kawai
164 - Gauche release 0.9.3.
165
166 * Fri Aug 5 2011 Shiro Kawai
167 - Gauche release 0.9.2.
168
169 * Sat Dec 11 2010 Shiro Kawai
170 - Gauche release 0.9.1.
171
172 * Mon Jan 4 2010 Shiro Kawai
173 - Fix missing micro version of libgauche.so in %files section.
174
175 * Sat Nov 21 2009 Shiro Kawai
176 - Gauche release 0.9.
177
178 * Mon Oct 6 2008 Shiro Kawai
179 - Gauche release 0.8.14.
180
181 * Wed Feb 13 2008 Shiro Kawai
182 - Gauche release 0.8.13.
183
184 * Mon Oct 29 2007 Shiro Kawai
185 - Gauche release 0.8.12.
186
187 * Thu Aug 16 2007 Shiro Kawai
188 - Gauche release 0.8.11.
189
190 * Wed Apr 18 2007 Shiro Kawai
191 - Gauche release 0.8.10.
192
193 * Wed Jan 17 2007 Shiro Kawai
194 - Gauche release 0.8.9.
195
196 * Sat Nov 11 2006 Shiro Kawai
197 - Gauche release 0.8.8.
198
199 * Wed Apr 12 2006 Shiro Kawai
200 - Gauche release 0.8.7.
201
202 * Fri Nov 4 2005 Shiro Kawai
203 - Gauche release 0.8.6.
204
205 * Thu Jun 30 2005 Shiro Kawai
206 - Gauche release 0.8.5.
207
208 * Tue May 31 2005 Shiro Kawai
209 - Gauche release 0.8.4.
210
211 * Thu Dec 2 2004 Shiro Kawai
212 - Gauche release 0.8.3.
213
214 * Mon Nov 29 2004 Shiro Kawai
215 - Gauche release 0.8.2.
216
217 * Mon Aug 2 2004 Shiro Kawai
218 - Gauche release 0.8.1.
219
220 * Sat May 22 2004 Shiro Kawai
221 - Gauche release 0.8.
222
223 * Thu Feb 26 2004 Shiro Kawai
224 - Gauche release 0.7.4.2.
225
226 * Wed Feb 4 2004 Shiro Kawai
227 - Gauche release 0.7.4.1.
228
229 * Tue Feb 3 2004 Shiro Kawai
230 - Gauche release 0.7.4.
231
232 * Tue Dec 16 2003 Shiro Kawai
233 - Gauche release 0.7.3.
234
235 * Wed Oct 22 2003 Shiro Kawai
236 - Fix gdbm package license
237
238 * Tue Oct 21 2003 Shiro Kawai
239 - include aclocal/gauche.m4 in common rpm
240
241 * Sat Oct 4 2003 Shiro Kawai
242 - Gauche release 0.7.2.
243 Splitted into common, encoding-dependent part, and gdbm package.
244
245 * Wed Jul 23 2003 Shiro Kawai
246 - Gauche release 0.7.1
247
248 * Fri May 30 2003 Shiro Kawai
249 - Gauche release 0.7
250
251 * Sun Mar 30 2003 Shiro Kawai
252 - Gauche release 0.6.8
253
254 * Fri Feb 7 2003 Shiro Kawai
255 - Gauche release 0.6.7.1
256
257 * Thu Feb 6 2003 Shiro Kawai
258 - Gauche release 0.6.7
259
260 * Sat Dec 14 2002 Shiro Kawai
261 - Gauche release 0.6.6
262
263 * Fri Nov 15 2002 Shiro Kawai
264 - Gauche release 0.6.5
265
266 * Mon Oct 14 2002 Shiro Kawai
267 - Gauche release 0.6.4
268
269 * Sun Sep 22 2002 Shiro Kawai
270 - Gauche release 0.6.3
271
272 * Mon Sep 2 2002 Shiro Kawai
273 - Gauche release 0.6.2
274
275 * Wed Jul 31 2002 Shiro Kawai
276 - Gauche release 0.6.1
277
278 * Thu Jul 18 2002 Shiro Kawai
279 - Gauche release 0.6
280
281 * Sun Jun 30 2002 Shiro Kawai
282 - Gauche release 0.5.7
283
284 * Fri Jun 14 2002 Shiro Kawai
285 - Gauche release 0.5.6
286
287 * Mon May 27 2002 Shiro Kawai
288 - Gauche release 0.5.5
289
290 * Sun May 5 2002 Shiro Kawai
291 - Gauche release 0.5.4
292
293 * Mon Apr 15 2002 Shiro Kawai
294 - Gauche release 0.5.3
295
296 * Thu Mar 7 2002 Shiro Kawai
297 - first package release