|
@@ -1,5 +1,9 @@
|
|
%define _noVersionedDependencies 1
|
|
%define _noVersionedDependencies 1
|
|
-%define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
|
|
+%define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'Requires(post):%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
|
|
|
|
+
|
|
|
|
+## To build wl-2.14.0, we use emacs-23.X
|
|
|
|
+%define __emacs %(rpm -q --queryformat "%%{name}-%%{version}" emacs | grep "emacs-23")
|
|
|
|
+
|
|
|
|
|
|
%define origname wl
|
|
%define origname wl
|
|
%define origver 2.14.0
|
|
%define origver 2.14.0
|
|
@@ -11,7 +15,7 @@ Summary: IMAP-capable mail/news reader for emacsen
|
|
Summary(ja): (X)Emacs 用IMAP に対応したメール/ニュースリーダ
|
|
Summary(ja): (X)Emacs 用IMAP に対応したメール/ニュースリーダ
|
|
Name: %{origname}
|
|
Name: %{origname}
|
|
Version: %{origver}
|
|
Version: %{origver}
|
|
-Release: 3%{?_dist_release}
|
|
+Release: 4%{?_dist_release}
|
|
|
|
|
|
Source0: ftp://ftp.gohome.org/%{origname}/stable/%{origname}-%{origver}.tar.gz
|
|
Source0: ftp://ftp.gohome.org/%{origname}/stable/%{origname}-%{origver}.tar.gz
|
|
Source1: %{origname}-install.sh
|
|
Source1: %{origname}-install.sh
|
|
@@ -25,14 +29,14 @@ Patch10: wl-2.8.1-texi-ja.diff
|
|
Patch11: wl-2.8.1-install-utils.diff
|
|
Patch11: wl-2.8.1-install-utils.diff
|
|
|
|
|
|
|
|
|
|
-License: GPL2
|
|
+License: GPLv2
|
|
Group: Applications/Editors/Emacs
|
|
Group: Applications/Editors/Emacs
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Obsoletes: wl-el, Wanderlust, Wanderlust-xemacs
|
|
Obsoletes: wl-el, Wanderlust, Wanderlust-xemacs
|
|
-PreReq: emacsen
|
|
+Requires(post): emacsen
|
|
%prereq_ge emacsen-common
|
|
%prereq_ge emacsen-common
|
|
%prereq_ge semi
|
|
%prereq_ge semi
|
|
%prereq_ge w3m-el
|
|
%prereq_ge w3m-el
|
|
@@ -41,7 +45,7 @@ BuildRequires: emacsen-common, semi, w3m-el
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
-Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
|
|
+Packager: shaolin, munepi
|
|
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -64,6 +68,16 @@ Other detailed information can be available at:
|
|
(sorry, much detailed info is currently available only in Japanese)
|
|
(sorry, much detailed info is currently available only in Japanese)
|
|
|
|
|
|
|
|
|
|
|
|
+If you install both wl and wl-beta packages on your system,
|
|
|
|
+you may add the following configure in your emacs init file
|
|
|
|
+%if %{?_dist_release} == "vl5"
|
|
|
|
+~/.emacs.el:
|
|
|
|
+%else
|
|
|
|
+~/.emacs.d/emacsXX-vine-default.el (XX: emacs major version):
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+;; I use wl.
|
|
|
|
+(setq vine-default-wl-beta nil)
|
|
|
|
|
|
|
|
|
|
%description -l ja
|
|
%description -l ja
|
|
@@ -114,9 +128,23 @@ Wanderlust は、elisp のみで実装された IMAP 対応のメール/ニュ
|
|
を見て下さい。
|
|
を見て下さい。
|
|
|
|
|
|
|
|
|
|
|
|
+wl と wl-beta パッケージの両方をインストールする場合、
|
|
|
|
+%if %{?_dist_release} == "vl5"
|
|
|
|
+~/.emacs.el:
|
|
|
|
+%else
|
|
|
|
+~/.emacs.d/emacsXX-vine-default.el (XX: emacs のメジャーバージョン)
|
|
|
|
+%endif
|
|
|
|
+に以下の設定を追加するとよいでしょう。
|
|
|
|
+
|
|
|
|
+;; wl を使う
|
|
|
|
+(setq vine-default-wl-beta nil)
|
|
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
|
|
+## we use emacs-23.X to build wl-2.14.0
|
|
|
|
+[ -z "%__emacs" ] && exit 1
|
|
|
|
+
|
|
|
|
+%__rm -rf ${RPM_BUILD_DIR}/%{origname}-%{origver}
|
|
%setup -q -n %{origname}-%{origver}
|
|
%setup -q -n %{origname}-%{origver}
|
|
|
|
|
|
%patch1 -p1
|
|
%patch1 -p1
|
|
@@ -132,27 +160,27 @@ touch doc/*.texi
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
|
|
|
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/etc
|
|
+%__mkdir_p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/etc
|
|
-#mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install
|
|
+#%__mkdir_p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install
|
|
-#mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove
|
|
+#%__mkdir_p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
|
|
+%__mkdir_p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
|
|
+%__mkdir_p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_infodir}
|
|
+%__mkdir_p ${RPM_BUILD_ROOT}%{_infodir}
|
|
|
|
|
|
|
|
|
|
#
|
|
#
|
|
# install el files
|
|
# install el files
|
|
#
|
|
#
|
|
|
|
|
|
-cp -a WL-* Makefile wl %{SOURCE3} %{SOURCE4} \
|
|
+%__cp -a WL-* Makefile wl %{SOURCE3} %{SOURCE4} \
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
-cp -a utils elmo \
|
|
+%__cp -a utils elmo \
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
-cp -a etc/icons \
|
|
+%__cp -a etc/icons \
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/etc/.
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}/etc/.
|
|
|
|
|
|
# 2004.12.13 add Irokawa
|
|
# 2004.12.13 add Irokawa
|
|
-cp -a NEWS* \
|
|
+%__cp -a NEWS* \
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
|
|
|
|
|
|
|
|
|
|
@@ -161,8 +189,8 @@ cp -a NEWS* \
|
|
# build & install info
|
|
# build & install info
|
|
#
|
|
#
|
|
|
|
|
|
-make EMACS=emacs info
|
|
+yes | %__sed -e "s/y/\n/g" | %__make EMACS=%__emacs info
|
|
-make EMACS=emacs INFODIR=${RPM_BUILD_ROOT}%{_infodir} install-info
|
|
+%__make EMACS=%__emacs INFODIR=${RPM_BUILD_ROOT}%{_infodir} install-info
|
|
|
|
|
|
|
|
|
|
#
|
|
#
|
|
@@ -216,7 +244,7 @@ fi
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
+[ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
@@ -236,6 +264,13 @@ fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Feb 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.14.0-4
|
|
|
|
+- defined %%__emacs
|
|
|
|
+ - use emacs-23.X to build wl-2.14.0
|
|
|
|
+- updated wl-init.el
|
|
|
|
+ - output "Loading vine-default-wl ..." to the buffer *Messages*
|
|
|
|
+- changed from PreReq: emacsen to Requires(post): emacsen
|
|
|
|
+
|
|
* Tue Apr 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.14.0-3
|
|
* Tue Apr 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.14.0-3
|
|
- fixed wl-init.el
|
|
- fixed wl-init.el
|
|
|
|
|