123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- %define _noVersionedDependencies 1
- %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
- %define emacsver %(rpm -q emacs | cut -d - -f 2)
- %define Version 2.0.0
- %define Name navi2ch
- %define origver %{Version}
- %define origname %{Name}
- %define rel 5
- %define cvsdate 20101116
- %define cvsrel 1
- Summary: 2ch client on Emacsen
- Summary(ja): (X)Emacsで動く2ちゃんねるクライアントです
- Name: %{Name}
- Version: %{Version}
- Release: %{rel}.cvs%{cvsdate}%{?_dist_release}
- License: GPL
- Group: Applications/Editors/Emacs
- #Source: http://prdownloads.sourceforge.net/%{Name}/%{Name}-%{Version}.tar.gz
- Source: http://navi2ch.sourceforge.net/snapshot/%{name}-cvs_0.0.%{cvsdate}-%{cvsrel}.tar.gz
- Source1: navi2ch-install.sh
- Source2: navi2ch-remove.sh
- Source3: vine-default-navi2ch.el
- Source4: navi2ch-init.el
- BuildRoot: %{_tmppath}/%{Name}-%{Version}-root
- URL: http://navi2ch.sourceforge.net/
- BuildArch: noarch
- BuildRequires: emacs
- PreReq: emacsen make gzip texinfo
- %prereq_ge emacsen-common
- Provides: %{origname} = %{origver}
- %description
- 2ch client on Emacsen.
- %description -l ja
- (X)Emacsで動く2ちゃんねるクライアントです。
- navi2chの特徴
- ・(X)Emacsで動く。:-)
- ・データファイルを直接読み込むのでブラウザで見るより速い。
- ・その他(募集中)。
- キーバインドについては、info を参照して下さい。
- monafont を使いたい場合は、~/.navi2ch/init.el に、
- (setq navi2ch-mona-enable t)
- を記述して下さい。
- %prep
- #%setup -q -n %{Name}-%{Version}
- %setup -q -n %{name}-cvs-%{cvsdate}
- %build
- %install
- #rm -rf $RPM_BUILD_ROOT
- #make lispdir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/navi2ch install
- [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
- [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{origname}
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacsen-common/packages/install
- mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/emacsen-common/packages/remove
- #
- # install el files
- #
- #cp Makefile *.el ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
- cp -a * %{SOURCE3} %{SOURCE4} ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
- #
- # install script( bytecompile el and install elc , remove )
- #
- %_installemacsenscript %{origname} %{SOURCE1}
- %_removeemacsenscript %{origname} %{SOURCE2}
- #
- # install info file
- #
- cd doc
- # makeinfo navi2ch.texi
- emacs -q -batch -l ./batch-texi2info.el -f batch-texi2info navi2ch.texi
- gzip navi2ch.info
- cd ..
- mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
- install -m 644 doc/*.info* ${RPM_BUILD_ROOT}%{_infodir}
- %post
- #
- # bytecompile and install
- #
- if [ "$1" = 2 ]; then
- %_emacsenPackageRemove %{origname}
- fi
- %_addemacsenlist %{origname}
- %_emacsenPackageInstall %{origname}
- /sbin/install-info %{_infodir}/navi2ch.info.gz %{_infodir}/dir \
- --entry="* Navi2ch:(navi2ch) . 2ch Client On Emacsen" --section="Navi2ch"
- %preun
- if [ "$1" = 0 ]; then
- %_emacsenPackageRemove %{origname}
- %_removeemacsenlist %{origname}
- /sbin/install-info --delete %{_infodir}/navi2ch.info.gz %{_infodir}/dir \
- --entry="* Navi2ch: (navi2ch). 2ch Client On Emacsen" --section="Navi2ch"
- fi
- %clean
- #rm -rf $RPM_BUILD_ROOT
- [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
- rm -rf ${RPM_BUILD_DIR}/%{Name}-%{Version}
- %files
- %defattr(-, root, root)
- %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
- #%{_datadir}/emacs/site-lisp/navi2ch
- /usr/share/emacs/site-lisp/%{origname}/
- /usr/lib/emacsen-common/packages/install/%{origname}
- /usr/lib/emacsen-common/packages/remove/%{origname}
- %{_infodir}/navi2ch.info*
- %changelog
- * Tue Dec 7 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-5.cvs20101116vl6
- - update install.sh (Source1) for Emacs 24
- * Wed Dec 1 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-4.cvs20101116
- - update to snapshot 0.0.20101116-1
- * Fri May 14 2010 IWAI, Masaharu <iwai@alib.jp> 2.0.0-3.cvs20100415
- - update to snapshot 0.0.20100415-1
- - drop unnecessary machibbs patch (Patch1)
- - drop unused Emacs22 patch (Patch10)
- - add BuildRequires: emacs
- * Mon Dec 21 2009 IWAI, Masaharu <iwai@alib.jp> 2.0.0-2
- - apply vine-default
- - rename navi2ch-init.el to vine-default-navi2ch.el (Source3)
- - add navi2ch-init.el (Source4)
- - update nav2ch-install.sh
- - add navi2ch-machibbs.el-r1.32.patch (Patch1) :fixed <BTS:VineLinux:860>
- - refactoring for nav2ch-install.sh
- * Tue Sep 29 2008 Hiroaki Irokawa <irorinrin @ terra.dti.ne.jp> 2.0.0-1vl5
- - Sync with cvs trunk(20080929)
- * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.7.5-1vl5
- - applied new versioning policy, spec in utf-8
- - changed %%{_libdir} to %%{_prefix}/lib
- * Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl8
- - Sync with CVS Snapshot(20070724)
- - rebuilt for VineSeed
- * Tue Jul 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl7
- - Sync with CVS Snapshot(20070724)
- * Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl6
- - rebuilt for VineSeed
- * Tue Apr 24 2007 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl5
- - Sync with CVS Snapshot(20070424)
- - Add Compile for emacs-21
- * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.7.5-0vl4
- - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
- * Tue Jun 6 2006 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl3
- - Sync with CVS Snapshot(20060529) because not work on XEmacs.
- - Not Support for emacs-20,21(compile error)
- * Tue Sep 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.5-0vl2
- - add Patch10 to use assoc-string instead of assoc-ignore-case for emacs22.
- * Sun Oct 17 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.5-0vl1
- - update
- * Tue Aug 31 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.4-0vl1
- - update
- - Copyright -> License
- * Fri May 7 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.3-0vl1
- - update
- * Mon Apr 5 2004 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.2-0vl1
- - update
- * Mon Sep 29 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7.1-0vl1
- - update
- * Tue Jul 22 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 1.7-0vl1
- - update
- - include %SOURCE3
- * Thu Mar 6 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - navi2ch-1.6.1-0vl4.
- - rebuilt.
- * Mon Dec 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - navi2ch-1.6.1-0vl1.
- - update.
- * Sun Jul 28 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - navi2ch-1.6.0-0vl1.
- - update.
- * Sun Jun 16 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - navi2ch-1.5.2-0vl1.
- - update.
- * Sat Jan 26 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - navi2ch-1.5.1-0vl1.
- - update.
- * Sat Jan 12 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - navi2ch-1.4-0vl1.
- - update.
- * Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - 01.11.28-1vl2.
- - emacsenized.
- * Mon Dec 24 2001 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
- - 01.11.28-1vl1.
|