|
@@ -1,33 +1,31 @@
|
|
|
%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 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
|
|
|
+
|
|
|
+%if %{?_dist_release} <= "vl5"
|
|
|
+exit 1
|
|
|
+%endif
|
|
|
|
|
|
Name: yatex
|
|
|
-Version: 1.75
|
|
|
-Release: 1%{?_dist_release}
|
|
|
+Version: 1.76
|
|
|
+Release: 1.20120511%{?_dist_release}
|
|
|
License: Distributable
|
|
|
-Source0: http://www.yatex.org/yatex%{version}.tar.gz
|
|
|
-#Source0: http://www.yatex.org/yatex10203151806.tar.gz
|
|
|
+#Source0: http://www.yatex.org/yatex%{version}.tar.gz
|
|
|
+Source0: http://www.gentei.org/~yuuji/tmp/yatex11205111805.tar.gz
|
|
|
Source1: %{name}-install.sh
|
|
|
Source2: %{name}-remove.sh
|
|
|
Source3: %{name}-init.el
|
|
|
Source4: vine-default-%{name}.el
|
|
|
Source5: vine-default-yahtml.el
|
|
|
|
|
|
-## pre-formatted info files here
|
|
|
-Source10: yatexe
|
|
|
-Source11: yatexj
|
|
|
-Source12: yahtmle
|
|
|
-Source13: yahtmlj
|
|
|
-
|
|
|
## Vine Patch(es)
|
|
|
-Patch0: yatex-info.diff
|
|
|
Patch1: yatexhlp-emacs.diff
|
|
|
Patch2: yatex-make.diff
|
|
|
# based on a patch at http://www.nekolinux.2y.net/nekomemo/yahtml01.html
|
|
|
# and modified to suit 1.70 release
|
|
|
Patch3: yahtml-1.70-timestamp.patch
|
|
|
|
|
|
-Patch10: yatex-1.74-vine-vl7.patch
|
|
|
+Patch10: yatex-1.76-vine-vl7.patch
|
|
|
+Patch11: yatex-1.76-vine-vl6.patch
|
|
|
|
|
|
URL: http://www.yatex.org/
|
|
|
Group: Applications/Editors/Emacs
|
|
@@ -36,10 +34,11 @@ Summary: YaTeX - Yet Another TeX mode for Emacs
|
|
|
Summary(ja): 野鳥(YaTeX) - Yet Another TeX mode for Emacs
|
|
|
BuildArch: noarch
|
|
|
|
|
|
-PreReq: emacsen
|
|
|
-%prereq_ge emacsen-common
|
|
|
+Requires(post): emacsen
|
|
|
+Requires(post): emacsen-common
|
|
|
Requires(post): make
|
|
|
BuildRequires: emacsen-common
|
|
|
+BuildRequires: nkf perl
|
|
|
Obsoletes: yatex-xemacs
|
|
|
|
|
|
Distribution: Vine Linux
|
|
@@ -53,13 +52,9 @@ your efforts of composing LaTeX source on GNU Emacs.
|
|
|
|
|
|
If you are YaTeX user and you install both yatex and auctex 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 am YaTeX user!!!
|
|
|
+;; I am a YaTeX user!!!
|
|
|
(setq vine-default-auctex nil
|
|
|
vine-default-preview-latex nil)
|
|
|
|
|
@@ -70,11 +65,7 @@ YaTeX(野鳥)とは、EmacsでLaTeXソースを書くときに生ずる手間を
|
|
|
|
|
|
|
|
|
yatex と auctex パッケージの両方をインストールする場合、
|
|
|
-%if %{?_dist_release} == "vl5"
|
|
|
-~/.emacs.el:
|
|
|
-%else
|
|
|
~/.emacs.d/emacsXX-vine-default.el (XX: emacs のメジャーバージョン)
|
|
|
-%endif
|
|
|
に以下の設定を追加するとよいでしょう。
|
|
|
|
|
|
;; YaTeX ユーザです!!!
|
|
@@ -84,23 +75,29 @@ yatex と auctex パッケージの両方をインストールする場合、
|
|
|
|
|
|
%prep
|
|
|
%setup -n yatex%{version}
|
|
|
-%patch0 -p1
|
|
|
%patch1 -p1
|
|
|
%patch2 -p1
|
|
|
%patch3 -p1
|
|
|
|
|
|
%if %{?_dist_release} == "vl7"
|
|
|
%patch10 -p1 -b .vine
|
|
|
+%elseif %{?_dist_release} == "vl6"
|
|
|
+%patch11 -p1 -b .vine
|
|
|
%endif
|
|
|
|
|
|
-%build
|
|
|
-
|
|
|
(cd docs
|
|
|
+ # change permissions
|
|
|
chmod 644 *
|
|
|
- %__install -v -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} .
|
|
|
+
|
|
|
+ # encode as utf-8 (LF)
|
|
|
+ # NOTE: This changes needs to entry info files to Info DIR
|
|
|
+ for i in yatexj yatexe yahtmlj yahtmle; do nkf --unix -w --overwrite $i; done
|
|
|
)
|
|
|
|
|
|
|
|
|
+%build
|
|
|
+
|
|
|
+
|
|
|
%install
|
|
|
|
|
|
[ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
|
|
@@ -156,15 +153,10 @@ fi
|
|
|
|
|
|
%_emacsenPackageInstall %{name}
|
|
|
|
|
|
-
|
|
|
-/sbin/install-info %{_infodir}/yatexe.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
-/sbin/install-info %{_infodir}/yatexj.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
-/sbin/install-info %{_infodir}/yahtmle.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
-/sbin/install-info %{_infodir}/yahtmlj.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
+for i in yatexe yatexj yahtmle yahtmlj; do
|
|
|
+ /sbin/install-info --dir-file %{_infodir}/dir --section="Emacs" \
|
|
|
+ %{_infodir}/${i}.gz
|
|
|
+done
|
|
|
|
|
|
|
|
|
%preun
|
|
@@ -175,14 +167,10 @@ if [ "$1" = 0 ]; then
|
|
|
|
|
|
%_removeemacsenlist %{name}
|
|
|
|
|
|
-/sbin/install-info --delete %{_infodir}/yatexe.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
-/sbin/install-info --delete %{_infodir}/yatexj.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
-/sbin/install-info --delete %{_infodir}/yahtmle.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
-/sbin/install-info --delete %{_infodir}/yahtmlj.gz %{_infodir}/dir \
|
|
|
- --section="Emacs"
|
|
|
+for i in yatexe yatexj yahtmle yahtmlj; do
|
|
|
+ /sbin/install-info --delete --dir-file %{_infodir}/dir --section="Emacs" \
|
|
|
+ %{_infodir}/${i}.gz
|
|
|
+done
|
|
|
|
|
|
fi
|
|
|
|
|
@@ -193,12 +181,33 @@ fi
|
|
|
%doc docs
|
|
|
|
|
|
%{_datadir}/emacs/site-lisp/yatex/
|
|
|
-%{_infodir}/*
|
|
|
+%{_infodir}/yahtmle*
|
|
|
+%{_infodir}/yahtmlj*
|
|
|
+%{_infodir}/yatexe*
|
|
|
+%{_infodir}/yatexj*
|
|
|
%{emacsen_pkgdir}/install/%{name}
|
|
|
%{emacsen_pkgdir}/remove/%{name}
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat May 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.76-1.20120511
|
|
|
+- source snapshot 20120511: testing version 1.76 development
|
|
|
+- dropped obsoleted/upstreamed patches
|
|
|
+- applied yatex-1.76-vine-vl{6,7}.patch
|
|
|
+
|
|
|
+* Fri May 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.75-3
|
|
|
+- added BuildRequires: nkf perl
|
|
|
+- updated yatex-1.74-vine.patch as yatex-1.75-vine-vl{6,7}.patch
|
|
|
+- dropped pre-formatted info files
|
|
|
+- use original info files
|
|
|
+ - encode info files as utf-8
|
|
|
+ - add INFO-DIR-ENTRY
|
|
|
+
|
|
|
+* Thu May 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.75-2
|
|
|
+- fixed vine-default-yatex.el
|
|
|
+- applied yatex-1.74-vine.patch for vl6
|
|
|
+- updated yatex-1.74-vine.patch: support some extensions for \includegraphics
|
|
|
+
|
|
|
* Thu Feb 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.75-1
|
|
|
- new upstream release
|
|
|
- updated vine-default-yatex.el
|