source: projects/specs/trunk/M/Mule-UCS/Mule-UCS-vl.spec @ 521

Revision 521, 6.9 KB checked in by daisuke, 12 years ago (diff)

import VineSeed package specs

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