Browse Source

updated auctex-vl.spec: supported TeX Live 2009

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4202 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
64282d9842
1 changed files with 15 additions and 4 deletions
  1. 15 4
      a/auctex/auctex-vl.spec

+ 15 - 4
a/auctex/auctex-vl.spec

@@ -13,7 +13,7 @@
 Summary:	Enhanced TeX modes for Emacsen
 Name:		%{origname}
 Version:	11.86
-Release:	3%{?_dist_release}
+Release:	4%{?_dist_release}
 Group: 		Applications/Editors/Emacs
 License:	GPLv3+
 URL:		http://www.gnu.org/software/auctex/
@@ -28,7 +28,11 @@ Source6:       	%{emacspkg}-remove.sh
 Source7:       	%{emacspkg}-init.el
 Source8:       	vine-default-%{emacspkg}.el
 
-Patch: 		auctex-11.85-vine.patch
+## vine
+## for vl5
+Patch:		auctex-11.86-vine.patch
+## for vl6 or higher
+Patch1:		auctex-11.86-plt09-vine.patch
 
 Requires:       %{emacspkg} = %{version}-%{release}
 BuildRequires:  texinfo
@@ -107,7 +111,11 @@ LaTeX equations right into the editing window where they belong.
 
 %prep
 %setup -q -n %{origname}-%{version}
+%if %{?_dist_release} == "vl5"
 %patch -p1 -b .vine
+%else
+%patch1 -p1 -b .vine
+%endif
 
 %build
 %configure --with-emacs INSTALL_INFO=: --without-texmf-dir
@@ -132,12 +140,12 @@ cat>auctex.el<<EOF
 EOF
 
 ## remove all *.elc
-find . -type f -name "*.elc" -exec rm -f {} ';'
+find . -type f -name "*.elc" -exec %__rm -f {} ';'
 
 
 %install
 
-[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
+[ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
 
 ## install preview package
 pushd preview
@@ -294,6 +302,9 @@ fi
 
 
 %changelog
+* Thu Jun 23 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.86-4
+- supported TeX Live 2009
+
 * Tue Feb 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 11.86-3
 - updated auctex-init.el and preview-latex-init.el
   - output "Loading vine-default-xxxxx ..." to the buffer *Messages*