]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without doc # skip (time-consuming) docs generating; intended for speed up test builds | |
4 | %bcond_without emacs # skip building package with ruby-mode for emacs | |
5 | %bcond_without tk # skip building package with Tk bindings | |
6 | %bcond_without batteries # Don't include rubygems, json or rake | |
7 | # | |
8 | %define ruby_ver 1.9 | |
9 | %define stdlibdoc_version 0.10.1 | |
10 | %define patchlevel 290 | |
11 | %define basever 1.9.2 | |
12 | %define rake_ver 0.8.7 | |
13 | %define minitest_ver 1.6.0 | |
14 | %define rdoc_ver 2.5.8 | |
15 | Summary: Ruby - interpreted scripting language | |
16 | Summary(ja.UTF-8): オブジェクト指向言語Rubyインタプリタ | |
17 | Summary(pl.UTF-8): Ruby - interpretowany język skryptowy | |
18 | Summary(pt_BR.UTF-8): Linguagem de script orientada a objeto | |
19 | Summary(zh_CN.UTF-8): ruby - 一种快速高效的面向对象脚本编程语言 | |
20 | Name: ruby | |
21 | Version: %{basever}.%{patchlevel} | |
22 | Release: 6 | |
23 | Epoch: 1 | |
24 | License: The Ruby License | |
25 | Group: Development/Languages | |
26 | Source0: ftp://ftp.ruby-lang.org/pub/ruby/%{name}-%{basever}-p%{patchlevel}.tar.bz2 | |
27 | # Source0-md5: 096758c3e853b839dc980b183227b182 | |
28 | Source1: http://www.ruby-doc.org/download/%{name}-doc-bundle.tar.gz | |
29 | # Source1-md5: ad1af0043be98ba1a4f6d0185df63876 | |
30 | Source2: http://www.ruby-doc.org/download/stdlib/%{name}-doc-stdlib-%{stdlibdoc_version}.tgz | |
31 | # Source2-md5: 5437c281b44e7a4af142d2bd35eba407 | |
32 | Source3: rdoc.1 | |
33 | Source4: testrb.1 | |
34 | Source5: %{name}-mode-init.el | |
35 | Patch0: %{name}-mkmf-shared.patch | |
36 | Patch1: %{name}-lib64.patch | |
37 | Patch2: %{name}-ffs.patch | |
38 | URL: http://www.ruby-lang.org/ | |
39 | BuildRequires: autoconf >= 2.60 | |
40 | BuildRequires: automake | |
41 | BuildRequires: bison | |
42 | BuildRequires: db-devel | |
43 | %{?with_emacs:BuildRequires: emacs} | |
44 | BuildRequires: gdbm-devel >= 1.8.3 | |
45 | BuildRequires: libffi-devel | |
46 | BuildRequires: ncurses-devel | |
47 | BuildRequires: openssl-devel | |
48 | BuildRequires: readline-devel >= 4.2 | |
49 | BuildRequires: yaml-devel | |
50 | BuildRequires: ruby-modules | |
51 | BuildRequires: sed >= 4.0 | |
52 | %if %{with tk} | |
53 | BuildRequires: tk-devel | |
54 | %endif | |
55 | Requires(post,postun): /sbin/ldconfig | |
56 | Provides: ruby(ver) = %{ruby_ver} | |
57 | Obsoletes: rdoc | |
58 | Obsoletes: ruby-REXML | |
59 | Obsoletes: ruby-doc < 1.8.4 | |
60 | Obsoletes: ruby-fastthread | |
61 | %if %{with batteries} | |
62 | Provides: ruby-rake = %{rake_ver} | |
63 | # which versions? | |
64 | Provides: ruby-json | |
65 | Provides: ruby-rubygems | |
66 | Obsoletes: ruby-json | |
67 | Obsoletes: ruby-rake | |
68 | Obsoletes: ruby-rubygems | |
69 | %endif | |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
71 | ||
72 | # bleh, some nasty (gcc or ruby) bug still not fixed | |
73 | # (SEGV or "unexpected break" on miniruby run during build) | |
74 | %define specflags_ia64 -O0 | |
75 | ||
76 | # ruby needs frame pointers for correct exception handling | |
77 | %define specflags_ia32 -fno-omit-frame-pointer | |
78 | ||
79 | %description | |
80 | Ruby is the interpreted scripting language for quick and easy | |
81 | object-oriented programming. It has many features to process text | |
82 | files and to do system management tasks (as in Perl). It is simple, | |
83 | straight-forward, extensible, and portable. | |
84 | ||
85 | This package contains only shared library and ruby interpreter. To get | |
86 | full-functional ruby environment install ruby-modules package. | |
87 | ||
88 | %description -l ja.UTF-8 | |
89 | Rubyはシンプルかつ強力なオブジェクト指向スクリプト言語です.Rubyは最初 | |
90 | から純粋なオブジェクト指向言語として設計されていますから,オブジェクト | |
91 | 指向プログラミングを手軽に行う事が出来ます.もちろん通常の手続き型のプ ログラミングも可能です. | |
92 | ||
93 | %description -l pl.UTF-8 | |
94 | Ruby to interpretowany język skryptowy, w sam raz dla łatwego i | |
95 | szybkiego pisania zorientowanych obiektowo programów. Ma wiele funkcji | |
96 | ułatwiających przetwarzanie plików tekstowych i wykonywanie prac | |
97 | związanych z zarządzaniem systemu (podobnie jak Perl). Jest prosty, | |
98 | rozszerzalny i przenośny. | |
99 | ||
100 | Ten pakiet zawiera tylko bibliotekę dzieloną i interpreter ruby. | |
101 | Zainstaluj pakiet ruby-modules, jeżeli potrzebujesz w pełni | |
102 | funkcjonalnego środowiska ruby. | |
103 | ||
104 | %description -l pt_BR.UTF-8 | |
105 | Ruby é uma linguagem de script interpretada de programação orientada a | |
106 | objeto. Possui diversas características para processamento de texto. É | |
107 | simples, extensível e direta. | |
108 | ||
109 | %package modules | |
110 | Summary: Ruby standard modules and utilities | |
111 | Summary(pl.UTF-8): Standardowe moduły i narzędzia dla języka Ruby | |
112 | Group: Development/Languages | |
113 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
114 | Provides: ruby-modules(ver) = %{ruby_ver} | |
115 | Obsoletes: ruby-minitest | |
116 | ||
117 | %description modules | |
118 | Ruby standard modules and utilities: | |
119 | - erb - Tiny eRuby | |
120 | - rdoc - documentation tool for source code | |
121 | - irb - interactive Ruby | |
122 | - ri - Ruby interactive reference | |
123 | - testrb - automatic runner for Test::Unit of Ruby | |
124 | ||
125 | %description modules -l pl.UTF-8 | |
126 | Standardowe moduły i narzędzia Ruby: | |
127 | - erb - mały eRuby | |
128 | - rdoc - narzędzie do dokumentowania kodu źródłowego | |
129 | - irb - interaktywny Ruby | |
130 | - ri - interaktywna dokumentacja Ruby | |
131 | - testrb - automatyczny runner dla Ruby Test::Unit | |
132 | ||
133 | %package tk | |
134 | Summary: Ruby/Tk bindings | |
135 | Summary(pl.UTF-8): Wiązania Ruby/Tk | |
136 | Group: Development/Languages | |
137 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
138 | ||
139 | %description tk | |
140 | This pachage contains Ruby/Tk bindings. | |
141 | ||
142 | %description tk -l pl.UTF-8 | |
143 | Ten pakiet zawiera wiązania Ruby/Tk. | |
144 | ||
145 | %package devel | |
146 | Summary: Ruby development libraries | |
147 | Summary(pl.UTF-8): Biblioteki programistyczne interpretera języka Ruby | |
148 | Group: Development/Languages | |
149 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
150 | ||
151 | %description devel | |
152 | Ruby development libraries. | |
153 | ||
154 | %description devel -l pl.UTF-8 | |
155 | Biblioteki programistyczne interpretera języka Ruby. | |
156 | ||
157 | %package static | |
158 | Summary: Ruby static libraries | |
159 | Summary(pl.UTF-8): Biblioteki statyczne Ruby | |
160 | Group: Development/Languages | |
161 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
162 | ||
163 | %description static | |
164 | Ruby static libraries. | |
165 | ||
166 | %description static -l pl.UTF-8 | |
167 | Biblioteki statyczne Ruby. | |
168 | ||
169 | %package doc | |
170 | Summary: Ruby HTML documentation | |
171 | Summary(pl.UTF-8): Dokumentacja HTML do Ruby | |
172 | Group: Documentation | |
173 | ||
174 | %description doc | |
175 | Ruby HTML documentation: FAQ, guide, core and standard library. | |
176 | ||
177 | %description doc -l pl.UTF-8 | |
178 | Dokumentacja HTML do Ruby: FAQ, przewodnik, dokumentacja dla core i | |
179 | stdlib. | |
180 | ||
181 | %package doc-ri | |
182 | Summary: Ruby ri documentation | |
183 | Summary(pl.UTF-8): Dokumentacja Ruby w formacie ri | |
184 | Group: Documentation | |
185 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
186 | ||
187 | %description doc-ri | |
188 | Ruby ri documentation. | |
189 | ||
190 | %description doc-ri -l pl.UTF-8 | |
191 | Dokumentacja Ruby w formacie ri. | |
192 | ||
193 | %package examples | |
194 | Summary: Ruby examples | |
195 | Summary(pl.UTF-8): Przykłady dla języka Ruby | |
196 | Group: Development/Languages | |
197 | ||
198 | %description examples | |
199 | Ruby examples. | |
200 | ||
201 | %description examples -l pl.UTF-8 | |
202 | Przykłady programów w języku Ruby. | |
203 | ||
204 | %package emacs-mode | |
205 | Summary: Ruby mode and debugger for Emacs | |
206 | Summary(pl.UTF-8): Tryb Ruby i debugger dla Emacsa | |
207 | Group: Development/Tools | |
208 | Requires: %{name}-modules = %{epoch}:%{version}-%{release} | |
209 | Requires: emacs-common | |
210 | ||
211 | %description emacs-mode | |
212 | Ruby mode and debugger for Emacs. | |
213 | ||
214 | %description emacs-mode -l pl.UTF-8 | |
215 | Tryb Ruby i debugger dla Emacsa. | |
216 | ||
217 | %prep | |
218 | %setup -q -n %{name}-%{basever}-p%{patchlevel} -a1 -a2 | |
219 | %patch0 -p1 | |
220 | %patch1 -p1 | |
221 | %patch2 -p1 | |
222 | ||
223 | find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f | |
224 | ||
225 | find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \ | |
226 | -o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \ | |
227 | | xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,' | |
228 | ||
229 | %build | |
230 | cp -f /usr/share/automake/config.sub . | |
231 | ||
232 | %{__autoconf} | |
233 | %configure \ | |
234 | --enable-shared \ | |
235 | --enable-pthread \ | |
236 | --with-ruby-version=minor | |
237 | ||
238 | %{__make} -j1 | |
239 | ||
240 | %if %{with doc} | |
241 | %{__make} -j1 rdoc | |
242 | %endif | |
243 | ||
244 | %install | |
245 | rm -rf $RPM_BUILD_ROOT | |
246 | install -d $RPM_BUILD_ROOT{%{ruby_rdocdir},%{_examplesdir}/%{name}-%{version}} | |
247 | ||
248 | %{__make} install \ | |
249 | DESTDIR=$RPM_BUILD_ROOT | |
250 | ||
251 | cp -Rf sample/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
252 | cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1 | |
253 | cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1 | |
254 | ||
255 | %if %{without batteries} | |
256 | # packaged separately | |
257 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/{rubygems,rake,json} | |
258 | rm -r $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/*-linux*/json | |
259 | rm $RPM_BUILD_ROOT%{_libdir}/%{name}/%{ruby_ver}/{rake,rubygems,json}.rb | |
260 | rm $RPM_BUILD_ROOT%{_bindir}/{gem,rake} | |
261 | rm $RPM_BUILD_ROOT%{_mandir}/man1/rake* | |
262 | rm -r $RPM_BUILD_ROOT%{_datadir}/ri/%{ruby_ver}/system/JSON | |
263 | %endif | |
264 | ||
265 | # ruby emacs mode - borrowed from FC-4 | |
266 | %if %{with emacs} | |
267 | install -d $RPM_BUILD_ROOT%{_emacs_lispdir}/{%{name}-mode,site-start.d} | |
268 | cp -a misc/*.el $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode | |
269 | rm -f $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/rubydb2x.el* | |
270 | install -p %{SOURCE5} $RPM_BUILD_ROOT%{_emacs_lispdir}/site-start.d | |
271 | cat << 'EOF' > path.el | |
272 | (setq load-path (cons "." load-path) byte-compile-warnings nil) | |
273 | EOF | |
274 | emacs --no-site-file -q -batch -l path.el -f batch-byte-compile $RPM_BUILD_ROOT%{_emacs_lispdir}/%{name}-mode/*.el | |
275 | rm -f path.el* | |
276 | %endif | |
277 | ||
278 | %clean | |
279 | rm -rf $RPM_BUILD_ROOT | |
280 | ||
281 | %post -p /sbin/ldconfig | |
282 | %postun -p /sbin/ldconfig | |
283 | ||
284 | %files | |
285 | %defattr(644,root,root,755) | |
286 | %doc NEWS LEGAL README README.EXT ChangeLog ToDo | |
287 | %attr(755,root,root) %{_bindir}/ruby | |
288 | %if %{with batteries} | |
289 | %attr(755,root,root) %{_bindir}/gem | |
290 | %attr(755,root,root) %{_bindir}/rake | |
291 | %endif | |
292 | %attr(755,root,root) %{_libdir}/libruby.so.*.*.* | |
293 | %attr(755,root,root) %ghost %{_libdir}/libruby.so.1.9 | |
294 | %{_mandir}/man1/ruby.1* | |
295 | %if %{with batteries} | |
296 | %{_mandir}/man1/rake.1* | |
297 | %endif | |
298 | %dir %{_libdir}/%{name} | |
299 | %dir %{_libdir}/%{name}/%{ruby_ver} | |
300 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux* | |
301 | %dir %{_libdir}/%{name}/site_ruby | |
302 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver} | |
303 | %dir %{_libdir}/%{name}/site_ruby/%{ruby_ver}/*-linux* | |
304 | %dir %{_libdir}/%{name}/vendor_ruby | |
305 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver} | |
306 | %dir %{_libdir}/%{name}/vendor_ruby/%{ruby_ver}/*-linux* | |
307 | %dir %{_datadir}/ri | |
308 | %dir %{_datadir}/ri/%{ruby_ver} | |
309 | %dir %{_datadir}/ri/%{ruby_ver}/system | |
310 | %dir %{ruby_rdocdir} | |
311 | ||
312 | %files devel | |
313 | %defattr(644,root,root,755) | |
314 | %attr(755,root,root) %{_libdir}/libruby.so | |
315 | %{_includedir}/%{name}-%{ruby_ver} | |
316 | ||
317 | %files static | |
318 | %defattr(644,root,root,755) | |
319 | %{_libdir}/libruby-static.a | |
320 | ||
321 | %if %{with tk} | |
322 | %files tk | |
323 | %defattr(644,root,root,755) | |
324 | %{_libdir}/%{name}/%{ruby_ver}/tcltk.rb | |
325 | %{_libdir}/%{name}/%{ruby_ver}/tk*.rb | |
326 | %{_libdir}/%{name}/%{ruby_ver}/tk | |
327 | %{_libdir}/%{name}/%{ruby_ver}/tkextlib | |
328 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/t*.so | |
329 | %endif | |
330 | ||
331 | %files modules | |
332 | %defattr(644,root,root,755) | |
333 | %attr(755,root,root) %{_bindir}/erb | |
334 | %attr(755,root,root) %{_bindir}/irb | |
335 | %attr(755,root,root) %{_bindir}/rdoc | |
336 | %attr(755,root,root) %{_bindir}/ri | |
337 | %attr(755,root,root) %{_bindir}/testrb | |
338 | %{_libdir}/%{name}/%{ruby_ver}/bigdecimal | |
339 | %{_libdir}/%{name}/%{ruby_ver}/cgi | |
340 | %{_libdir}/%{name}/%{ruby_ver}/date | |
341 | %{_libdir}/%{name}/%{ruby_ver}/digest | |
342 | %{_libdir}/%{name}/%{ruby_ver}/dl | |
343 | %{_libdir}/%{name}/%{ruby_ver}/drb | |
344 | %{_libdir}/%{name}/%{ruby_ver}/fiddle | |
345 | %{_libdir}/%{name}/%{ruby_ver}/irb | |
346 | %{_libdir}/%{name}/%{ruby_ver}/minitest | |
347 | %{_libdir}/%{name}/%{ruby_ver}/net | |
348 | %{_libdir}/%{name}/%{ruby_ver}/openssl | |
349 | %{_libdir}/%{name}/%{ruby_ver}/optparse | |
350 | %if %{with batteries} | |
351 | %{_libdir}/%{name}/%{ruby_ver}/json | |
352 | %{_libdir}/%{name}/%{ruby_ver}/rake | |
353 | %{_libdir}/%{name}/%{ruby_ver}/rubygems | |
354 | %endif | |
355 | %{_libdir}/%{name}/%{ruby_ver}/psych | |
356 | %{_libdir}/%{name}/%{ruby_ver}/racc | |
357 | %{_libdir}/%{name}/%{ruby_ver}/rbconfig | |
358 | %{_libdir}/%{name}/%{ruby_ver}/rdoc | |
359 | %{_libdir}/%{name}/%{ruby_ver}/rexml | |
360 | %{_libdir}/%{name}/%{ruby_ver}/rinda | |
361 | %{_libdir}/%{name}/%{ruby_ver}/ripper | |
362 | %{_libdir}/%{name}/%{ruby_ver}/rss | |
363 | %{_libdir}/%{name}/%{ruby_ver}/shell | |
364 | %{_libdir}/%{name}/%{ruby_ver}/syck | |
365 | %{_libdir}/%{name}/%{ruby_ver}/test | |
366 | %{_libdir}/%{name}/%{ruby_ver}/uri | |
367 | %{_libdir}/%{name}/%{ruby_ver}/webrick | |
368 | %{_libdir}/%{name}/%{ruby_ver}/xmlrpc | |
369 | %{_libdir}/%{name}/%{ruby_ver}/yaml | |
370 | %{_libdir}/%{name}/%{ruby_ver}/[A-Za-s]*.rb | |
371 | %{_libdir}/%{name}/%{ruby_ver}/tempfile.rb | |
372 | %{_libdir}/%{name}/%{ruby_ver}/thread.rb | |
373 | %{_libdir}/%{name}/%{ruby_ver}/thwait.rb | |
374 | %{_libdir}/%{name}/%{ruby_ver}/time.rb | |
375 | %{_libdir}/%{name}/%{ruby_ver}/timeout.rb | |
376 | %{_libdir}/%{name}/%{ruby_ver}/tmpdir.rb | |
377 | %{_libdir}/%{name}/%{ruby_ver}/tracer.rb | |
378 | %{_libdir}/%{name}/%{ruby_ver}/tsort.rb | |
379 | %{_libdir}/%{name}/%{ruby_ver}/[u-z]*.rb | |
380 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[a-s]*.so | |
381 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/[u-z]*.so | |
382 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest | |
383 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/digest/*.so | |
384 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/dl | |
385 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/dl/callback.so | |
386 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc | |
387 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/*.so | |
388 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/trans | |
389 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/enc/trans/*.so | |
390 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io | |
391 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/io/*.so | |
392 | %if %{with batteries} | |
393 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/json | |
394 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/json/ext | |
395 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/json/ext/*.so | |
396 | %endif | |
397 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/mathn | |
398 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/mathn/*.so | |
399 | %dir %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc | |
400 | %attr(755,root,root) %{_libdir}/%{name}/%{ruby_ver}/*-linux*/racc/*.so | |
401 | %{_libdir}/%{name}/%{ruby_ver}/*-linux*/rbconfig.rb | |
402 | %dir %{_libdir}/%{name}/gems | |
403 | %dir %{_libdir}/%{name}/gems/%{ruby_ver} | |
404 | %dir %{_libdir}/%{name}/gems/%{ruby_ver}/specifications | |
405 | %if %{with batteries} | |
406 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/minitest-%{minitest_ver}.gemspec | |
407 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/rake-%{rake_ver}.gemspec | |
408 | %{_libdir}/%{name}/gems/%{ruby_ver}/specifications/rdoc-%{rdoc_ver}.gemspec | |
409 | %endif | |
410 | %{_mandir}/man1/erb.1* | |
411 | %{_mandir}/man1/irb.1* | |
412 | %{_mandir}/man1/rdoc.1* | |
413 | %{_mandir}/man1/ri.1* | |
414 | %{_mandir}/man1/testrb.1* | |
415 | ||
416 | %files doc | |
417 | %defattr(644,root,root,755) | |
418 | %doc ruby-doc-bundle/* | |
419 | %{?with_doc:%doc ruby-doc-stdlib-%{stdlibdoc_version}/stdlib} | |
420 | ||
421 | %if %{with doc} | |
422 | %files doc-ri | |
423 | %defattr(644,root,root,755) | |
424 | %{_datadir}/ri/%{ruby_ver}/system/* | |
425 | %endif | |
426 | ||
427 | %files examples | |
428 | %defattr(644,root,root,755) | |
429 | %{_examplesdir}/%{name}-%{version} | |
430 | ||
431 | %if %{with emacs} | |
432 | %files emacs-mode | |
433 | %defattr(644,root,root,755) | |
434 | %doc misc/* | |
435 | %dir %{_emacs_lispdir}/%{name}-mode | |
436 | %{_emacs_lispdir}/%{name}-mode/*.elc | |
437 | %{_emacs_lispdir}/site-start.d/*.el | |
438 | %endif |