Mule-UCS-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
  3. %define _libdir %{_prefix}/lib
  4. %define origver 0.85
  5. %define release 1%{?_dist_release}
  6. %define emacs emacs
  7. %define origname Mule-UCS
  8. Summary: MULE-UCS is a coding system and character code translator system.
  9. Name: %{origname}
  10. Version: %{origver}
  11. Release: %{release}
  12. License: distributable
  13. Group: Applications/Editors/Emacs
  14. #Source: ftp://ftp.m17n.org/pub/mule/Mule-UCS/%{origname}-%{version}.tar.gz
  15. Source: ftp://ftp.m17n.org/pub/mule/Mule-UCS/test/%{origname}-current.tar.gz
  16. Source1: %{origname}-install.sh
  17. Source2: %{origname}-remove.sh
  18. Patch1: x0213-cdef.diff
  19. Patch100: Mule-UCS-0.84-emacs21.2-un-define.diff
  20. BuildArch: noarch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Conflicts: Mule-UCS-emacs, Mule-UCS-el
  23. PreReq: emacsen, gzip
  24. %prereq_ge emacsen-common
  25. BuildRequires: emacsen-common
  26. Packager: Satoshi MACHINO <machino@vinelinux.org>
  27. Distribution: Vine Linux
  28. Vendor: Project Vine
  29. %description
  30. MULE-UCS is a character code translator. This has an universal ability to
  31. translate from any character sets to any, and constract new coding systems
  32. easily.
  33. And MULE-UCS have a package to translate between MULE INTERNAL CODE and
  34. ISO-10646, So you can handle ISO-10646 based coding systems on
  35. Emacs/Mule(But can't work on 20.2, this version have no extended CCL), Mule
  36. 3.0 and Meadow.
  37. %description -l ja
  38. MULE-UCS は文字コードの変換ツールで、容易に文字コードを万国的に変換できます。
  39. MULE-UCS はさらに、MULE 内部コード(MULE INTERNAL CODE)と ISO-10646 間の変換
  40. が出来ます。
  41. Emacs/Mule(20.2 はextended CCL がないので動きません)や Mule 3.0 や Meadow 上で
  42. ISO-10646 を扱うことができます。
  43. Emacs(20, 21) では、~/.emacs.el に
  44. (require 'un-define)
  45. (require 'jisx0213)
  46. などを追加してから Emacs を起動してください。
  47. XEmacs-21.4 で UTF-8 を使うには、~/.xemacs/init.el に
  48. (require 'un-define)
  49. (set-coding-priority-list '(utf-8))
  50. (set-coding-category-system 'utf-8 'utf-8)
  51. などを追加してから XEmacs-21.4 を起動して下さい。
  52. 注1) XEmacs-21.4 では 現在 (require 'jisx0213)は使用できません。
  53. 注2) XEmacs-21.1.14 では Mule-UCS(当パッケージ)は使用できません。
  54. %prep
  55. #%setup -n %{origname}-%{version}
  56. %setup -n %{origname}-current
  57. #%patch1 -p1
  58. #%patch100 -p1
  59. %install
  60. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  61. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  62. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/%{origname}
  63. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/install
  64. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/emacsen-common/packages/remove
  65. cp -r *.el lisp ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
  66. #
  67. # install script( bytecompile el and install elc , remove )
  68. #
  69. %_installemacsenscript %{origname} %{SOURCE1}
  70. %_removeemacsenscript %{origname} %{SOURCE2}
  71. %post
  72. #
  73. # bytecompile and install
  74. #
  75. if [ "$1" = 2 ]; then
  76. %_emacsenPackageRemove %{origname}
  77. fi
  78. %_addemacsenlist %{origname}
  79. %_emacsenPackageInstall %{origname}
  80. %preun
  81. if [ "$1" = 0 ]; then
  82. %_emacsenPackageRemove %{origname}
  83. %_removeemacsenlist %{origname}
  84. fi
  85. %clean
  86. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  87. %files
  88. %defattr(-,root,root)
  89. %doc COPYING* ChangeLog* doc lisp
  90. %{_datadir}/emacs/site-lisp/%{origname}
  91. %{_libdir}/emacsen-common/packages/install/%{origname}
  92. %{_libdir}/emacsen-common/packages/remove/%{origname}
  93. %changelog
  94. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 0.85-1vl5
  95. - applied new versioning policy, spec in utf-8
  96. - added %%define _libdir %%{_prefix}/lib
  97. * Mon Sep 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.85-0vl2
  98. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  99. - s/Copyright/License/
  100. * Sat Apr 12 2003 IWAI Masaharu <iwai@alib.jp> 0.85-0vl1
  101. - update Mule-UCS-install.sh ( fix [VineSeed:07674] )
  102. * Wed Mar 26 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.85-0vl0
  103. - update to Mule-UCS-0.85rc
  104. * Sun Nov 17 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.84-0vl10
  105. - Modified %Patch100([vine-users:055763])
  106. * Fri Nov 15 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.84-0vl9
  107. - Add %PreReq gzip
  108. - Modified %description -l ja ([vine-users:055680])
  109. - Add %Patch100(Thanks Toshiyasu KOJIMA <t_kojima@ps.ksky.ne.jp>)
  110. (http://tsukuba.m17n.org/mule-archive/2002-3/msg00000.html + [vine-users:055729])
  111. * Sun Nov 3 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.84-0vl8
  112. - not support xemacs-21.1.14
  113. - Modified Mule-UCS-install.sh for xemacs-21.4.*
  114. * Tue Aug 27 2002 IWAI Masaharu <iwai@alib.jp> 0.84-0vl7
  115. - modified Mule-UCS-install.sh
  116. deleting .elc files after byte compile in ELDIR
  117. * Mon Aug 26 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.84-0vl6
  118. - Modified Mule-UCS-install.sh for xemacs21.4-21.4.9
  119. * Sun Jul 28 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.84-0vl5
  120. - Modified Mule-UCS-install.sh for xemacs21.4-21.4.8-0vl1
  121. * Sat Jan 26 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.84-0vl4
  122. - Modified Mule-UCS-install.sh for xemacs21.4-21.4.6-0vl1
  123. * Sun Dec 30 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.84-0vl3
  124. - Mule-UCS-el -> Mule-UCS again
  125. * Sat Dec 08 2001 Satoshi MACHINO <machino@vinelinux.org> 0.84-0vl2
  126. - fixed install/remove scripts
  127. * Fri Dec 07 2001 Satoshi MACHINO <machino@vinelinux.org> 0.84-0vl1
  128. - emacsenize
  129. - changed Package Name
  130. * Tue Oct 23 2001 Satoshi MACHINO <machino@vinelinux.org> 0.84-0vl0.4
  131. - updated emacs-beta(emacs-21.0)
  132. * Wed Sep 12 2001 Satoshi MACHINO <machino@vinelinux.org> 0.84-0vl0.3
  133. - updated emacs-beta(emacs-21.0.104)
  134. * Sun May 20 2001 Satoshi MACHINO <machino@vinelinux.org> 0.84-0vl0.2
  135. - updated emacs-beta(emacs-21.0.103)
  136. * Fri Apr 20 2001 Satoshi MACHINO <machino@vinelinux.org> 0.84-0vl0.1
  137. - updated Mule-USC-0.84
  138. * Mon Jan 22 2001 Satoshi MACHINO <machino@vinelinux.org> 0.83-0vl2.1
  139. - updated emacs-21.0.95.2
  140. * Tue Dec 19 2000 Satoshi MACHINO <machino@vinelinux.org> 0.83-0vl2
  141. - updated emacs-21.0.93.2
  142. * Fri Dec 15 2000 Satoshi MACHINO <machino@vinelinux.org> 0.83-0vl1
  143. - updates
  144. - used rpmmacro
  145. * Mon Jul 03 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  146. - 0.81-0vl1
  147. - updated Mule-UCS-0.81
  148. * Mon Jun 19 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  149. - 0.80-0vl2
  150. - added elisp files (jisx0213 big5conv)
  151. * Thu Jun 15 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  152. - 0.80-0vl1
  153. * Tue Apr 25 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  154. - 0.74-1vl3
  155. - for emacs-20.6
  156. * Thu Apr 06 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  157. - 0.74-1vl2
  158. - changed mucs-comp.el (mule-usc.vine.patch)
  159. * Mon Apr 03 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  160. - 0.74-1vl1
  161. * Mon Feb 28 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  162. - 0.72-1vl1
  163. - added %description -l ja
  164. * Tue Feb 15 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  165. - 0.63-1vl1
  166. - rebuild for Vine Linux
  167. * Thu Dec 30 1999 SAKA Toshihide <saka@yugen.org>
  168. - First release.