source: projects/emacsen-common/branches/0.4.x/doc/spec-alternative @ 7238

Revision 7238, 1.6 KB checked in by daisuke, 11 years ago (diff)

import emacsen-common

Line 
1MEMO
2
3
4el ¤Ï/usr/share/emacs/site-lisp/%{name} ¤ËÆþ¤ì¤è.
5
6installscript ¤Ï /usr/lib/emacsen-common/packages/install/%{origname}
7removescript ¤Ï /usr/lib/emacsen-common/packages/remove/%{origname}
8
9
10rpmmacros
11
12%installemacsenscript %{origname} %{SOURCE1}
13        el ¤Î compile install ¤ò¹Ô¤¦¥¹¥¯¥ê¥×¥È¤Îinstall
14
15%installemacsenscript %{origname} %{SOURCE2}
16        install  ¤µ¤ì¤¿ elc ¤Îºï½ü
17
18 
19%emacsen-package-install %{origname}
20        install script ¤ò¸Æ¤Ó½Ð¤¹.
21
22%emacsen-package-remove %{origname}
23        remove script ¤ò¸Æ¤Ó½Ð¤¹.
24
25
26
27
28default ¤Îflavor ¤Ë¤Ä¤¤¤Æ¡£(update-alternatives »ÈÍÑ) 
29
30#       /var/lib/emacsen-common/default-flavor ¤òºî¤ë¡£
31
32
33    20.4 install »þ
34        find  $RPM_BIILD_DIR  --name "*.packagename" > list
35        ¤òÅǤ¤¤Æ¤ª¤¯ /var/lib/emacs/alternative-filelist
36     
37       %post (emacsen-common ¤Î emacs-install ¤Ç¤¹¤Ù¤­
38       
39         update-atlternatives --install /usr/bin/emacs emacs /usr/bin/emacs.20-1
40         --slave /usr/emacs1 /usr/emacs1.emacs ¤È¤¤¤¦¤«¤ó¤¸¤ÇÎóµó
41        ( install ¤Î¹àÌÜ¤Ï ÀèƬ ¤Î¤â¤Î¤½¤ì°Ê³°¤Ï¸å)
42       
43       °ì»þŪ¤Ë flavor ¤Î¸½ºß¤¢¤¿¤¨¤é¤ì¤¿flavor ¤ËÊѹ¹¤¹¤ë.
44
45        ( .%{package}\n ¤Çgrep ¤·¤¿ ^[\*\+ ]+([1-9]+) |
46         update-atlternatives --config emacs  )
47 
48       el byte-compile
49
50         update-alternatives --auto emacs
51
52      20.5
53          ¾å¤ÎÍÑ¤Ë emacs-install ¤ò¼Â¹Ô       
54               
55
56
57      20.4 remove »þ
58         ³Æel Á´Éôremove
59         installed-flavors ¤«¤éºï½ü
60           
61
62
63#  new command ¤Ë¤Ä¤¤¤Æ
64#     /usr/bin/default-emacsen package-name
65#     package-name ¤«¤éflavor ¤ò¼è¤ê¤À¤¹
66#     change-default-flavor.rb ¤ÇÊѹ¹
67
68         
69
70¤Ï¤¢¤Ï¤¢
71¼ÂÁõ¤·¤Æ¤ß¤ë¤«
72
73
74
Note: See TracBrowser for help on using the repository browser.