source: projects/specs/trunk/n/navi2ch/navi2ch-vl.spec @ 7410

Revision 7410, 6.9 KB checked in by iwaim, 10 years ago (diff)

navi2ch 2.0.0-5.cvs20101224

Line 
1%define         _noVersionedDependencies        1
2%define         prereq_ge()  %(LC_ALL="C" rpm -q --queryformat 'Requires:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
3
4%define         emacsver        %(rpm -q emacs | cut -d - -f 2)
5%define         Version         2.0.0
6%define         Name            navi2ch
7%define         origver         %{Version}
8%define         origname        %{Name}
9%define         rel             5
10%define         cvsdate         20101224
11%define         cvsrel          1
12
13Summary:        2ch client on Emacsen
14Summary(ja):    (X)Emacsで動く2ちゃんねるクライアントです
15Name:           %{Name}
16Version:        %{Version}
17Release:        %{rel}.cvs%{cvsdate}%{?_dist_release}
18License:        GPL
19Group:          Applications/Editors/Emacs
20#Source:        http://prdownloads.sourceforge.net/%{Name}/%{Name}-%{Version}.tar.gz
21Source:         http://navi2ch.sourceforge.net/snapshot/%{name}-cvs_0.0.%{cvsdate}-%{cvsrel}.tar.gz
22Source1:        navi2ch-install.sh
23Source2:        navi2ch-remove.sh
24Source3:        vine-default-navi2ch.el
25Source4:        navi2ch-init.el
26BuildRoot:      %{_tmppath}/%{Name}-%{Version}-root
27URL:            http://navi2ch.sourceforge.net/
28BuildArch:      noarch
29
30BuildRequires:  emacs
31Requires:       emacsen make gzip texinfo
32%prereq_ge      emacsen-common
33Provides:       %{origname} = %{origver}
34
35%description
362ch client on Emacsen.
37
38%description -l ja
39(X)Emacsで動く2ちゃんねるクライアントです。
40
41navi2chの特徴
42・(X)Emacsで動く。:-)
43・データファイルを直接読み込むのでブラウザで見るより速い。
44・その他(募集中)。
45
46キーバインドについては、info を参照して下さい。
47
48monafont を使いたい場合は、~/.navi2ch/init.el に、
49(setq navi2ch-mona-enable t)
50を記述して下さい。
51
52%prep
53#%setup -q -n %{Name}-%{Version}
54%setup -q -n %{name}-cvs-%{cvsdate}
55
56%build
57
58%install
59#rm -rf $RPM_BUILD_ROOT
60#make lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/navi2ch install
61
62[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
63[ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
64
65mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{origname}
66mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacsen-common/packages/install
67mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacsen-common/packages/remove
68
69#
70# install el files
71#
72
73#cp Makefile *.el ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
74cp -a * %{SOURCE3} %{SOURCE4} ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
75
76#
77# install  script( bytecompile el and install elc , remove )
78#
79
80%_installemacsenscript %{origname} %{SOURCE1}
81
82%_removeemacsenscript  %{origname} %{SOURCE2}
83
84#
85# install info file
86#
87
88cd doc
89# makeinfo navi2ch.texi
90emacs -q -batch -l ./batch-texi2info.el -f batch-texi2info navi2ch.texi
91gzip navi2ch.info
92cd ..
93mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
94install -m 644 doc/*.info*  ${RPM_BUILD_ROOT}%{_infodir}
95
96%post
97
98#
99# bytecompile and install
100#
101
102if [ "$1" = 2 ]; then
103
104%_emacsenPackageRemove %{origname}
105
106fi
107
108%_addemacsenlist %{origname}
109
110%_emacsenPackageInstall %{origname}
111
112/sbin/install-info %{_infodir}/navi2ch.info.gz %{_infodir}/dir \
113    --entry="* Navi2ch:(navi2ch) .  2ch Client On Emacsen" --section="Navi2ch"
114
115%preun
116
117if [ "$1" = 0 ]; then
118
119%_emacsenPackageRemove %{origname}
120
121%_removeemacsenlist %{origname}
122
123/sbin/install-info --delete %{_infodir}/navi2ch.info.gz %{_infodir}/dir \
124    --entry="* Navi2ch: (navi2ch).  2ch Client On Emacsen" --section="Navi2ch"
125
126fi
127
128
129%clean
130#rm -rf $RPM_BUILD_ROOT
131
132[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
133
134rm -rf ${RPM_BUILD_DIR}/%{Name}-%{Version}
135
136
137
138%files
139%defattr(-, root, root)
140%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
141#%{_datadir}/emacs/site-lisp/navi2ch
142/usr/share/emacs/site-lisp/%{origname}/
143/usr/lib/emacsen-common/packages/install/%{origname}
144/usr/lib/emacsen-common/packages/remove/%{origname}
145%{_infodir}/navi2ch.info*
146
147
148%changelog
149* Tue Jan 22 2013 IWAI, Masaharu <iwai@alib.jp> 2.0.0-5.cvs20101224
150- update to snapshot 0.0.20101224-1
151- replace PreReq to Requires: prereq is deprecated
152
153* Tue Dec  7 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-5.cvs20101116vl6
154- update install.sh (Source1) for Emacs 24
155
156* Wed Dec  1 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-4.cvs20101116
157- update to snapshot 0.0.20101116-1
158
159* Fri May 14 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-3.cvs20100415
160- update to snapshot 0.0.20100415-1
161- drop unnecessary machibbs patch (Patch1)
162- drop unused Emacs22 patch (Patch10)
163- add BuildRequires: emacs
164
165* Mon Dec 21 2009 IWAI, Masaharu <iwai@alib.jp> 2.0.0-2
166- apply vine-default
167  - rename navi2ch-init.el to vine-default-navi2ch.el (Source3)
168  - add navi2ch-init.el (Source4)
169  - update nav2ch-install.sh
170- add navi2ch-machibbs.el-r1.32.patch (Patch1) :fixed <BTS:VineLinux:860>
171- refactoring for nav2ch-install.sh
172
173* Tue Sep 29 2008 Hiroaki Irokawa <irorinrin @ terra.dti.ne.jp> 2.0.0-1vl5
174- Sync with cvs trunk(20080929)
175
176* Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.7.5-1vl5
177- applied new versioning policy, spec in utf-8
178- changed %%{_libdir} to %%{_prefix}/lib
179
180* Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl8
181- Sync with CVS Snapshot(20070724)
182- rebuilt for VineSeed
183
184* Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl7
185- Sync with CVS Snapshot(20070724)
186
187* Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl6
188- rebuilt for VineSeed
189
190* Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl5
191- Sync with CVS Snapshot(20070424)
192- Add Compile for emacs-21
193
194* Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.5-0vl4
195- changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
196
197* Tue Jun  6 2006 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl3
198- Sync with CVS Snapshot(20060529) because not work on XEmacs.
199- Not Support for emacs-20,21(compile error)
200
201* Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.5-0vl2
202- add Patch10 to use assoc-string instead of assoc-ignore-case for emacs22.
203
204* Sun Oct 17 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl1
205- update
206
207* Tue Aug 31 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.4-0vl1
208- update
209- Copyright -> License
210
211* Fri May  7 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.3-0vl1
212- update
213
214* Mon Apr  5 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.2-0vl1
215- update
216
217* Mon Sep 29 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.1-0vl1
218- update
219
220* Tue Jul 22 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7-0vl1
221- update
222- include %SOURCE3
223
224* Thu Mar  6 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
225- navi2ch-1.6.1-0vl4.
226- rebuilt.
227
228* Mon Dec 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
229- navi2ch-1.6.1-0vl1.
230- update.
231
232* Sun Jul 28 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
233- navi2ch-1.6.0-0vl1.
234- update.
235
236* Sun Jun 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
237- navi2ch-1.5.2-0vl1.
238- update.
239
240* Sat Jan 26 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
241- navi2ch-1.5.1-0vl1.
242- update.
243* Sat Jan 12 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
244 - navi2ch-1.4-0vl1.
245 - update.
246* Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
247 - 01.11.28-1vl2.
248 - emacsenized.
249* Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
250 - 01.11.28-1vl1.
Note: See TracBrowser for help on using the repository browser.