Browse Source

updated texworks

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4257 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
fb180e2a62

+ 12 - 12
t/texworks/texworks-0.4-ptex-vine.patch → t/texworks/texworks-0.4.1-ptex-vine.patch

@@ -1,19 +1,19 @@
-diff -up texworks-0.4.0/src/TWApp.cpp.vine texworks-0.4.0/src/TWApp.cpp
---- texworks-0.4.0/src/TWApp.cpp.vine	2011-03-10 04:02:40.000000000 +0900
-+++ texworks-0.4.0/src/TWApp.cpp	2011-03-30 14:38:50.198095360 +0900
+diff -up texworks-0.4.1/src/TWApp.cpp.vine texworks-0.4.1/src/TWApp.cpp
+--- texworks-0.4.1/src/TWApp.cpp.vine	2011-05-27 14:30:46.000000000 +0900
++++ texworks-0.4.1/src/TWApp.cpp	2011-06-18 19:00:11.782546333 +0900
 @@ -835,6 +835,8 @@ void TWApp::setDefaultEngineList()
- 	else
- 		engineList->clear();
  	*engineList
-+		<< Engine("pdfpLaTeX", "pdfplatex" EXE, QStringList("$basename"), true)
-+		<< Engine("pdfepLaTeX", "pdfeplatex" EXE, QStringList("$basename"), true)
  		<< Engine("LaTeXmk", "latexmk" EXE, QStringList("-e") << 
  				  "$pdflatex=q/pdflatex -synctex=1 %O %S/" << "-pdf" << "$fullname", true)
++		<< Engine("pdfpLaTeX", "pdfplatex" EXE, QStringList("$basename"), true)
++		<< Engine("pdfepLaTeX", "pdfeplatex" EXE, QStringList("$basename"), true)
  		<< Engine("pdfTeX", "pdftex" EXE, QStringList("$synctexoption") << "$fullname", true)
-@@ -843,7 +845,9 @@ void TWApp::setDefaultEngineList()
- 		<< Engine("XeLaTeX", "xelatex" EXE, QStringList("$synctexoption") << "$fullname", true)
- 		<< Engine("ConTeXt (MKII)", "texmfstart" EXE, QStringList("texexec") << "--synctex" << "$fullname", true)
- 		<< Engine("XeConTeXt (MKII)", "texmfstart" EXE, QStringList("texexec") << "--xtx" << "--synctex" << "$fullname", true)
+ 		<< Engine("pdfLaTeX", "pdflatex" EXE, QStringList("$synctexoption") << "$fullname", true)
+ 		<< Engine("XeTeX", "xetex" EXE, QStringList("$synctexoption") << "$fullname", true)
+@@ -842,7 +844,9 @@ void TWApp::setDefaultEngineList()
+ 		<< Engine("ConTeXt (LuaTeX)", "context" EXE, QStringList("--synctex") << "$fullname", true)
+ 		<< Engine("ConTeXt (pdfTeX)", "texexec" EXE, QStringList("--synctex") << "$fullname", true)
+ 		<< Engine("ConTeXt (XeTeX)", "texexec" EXE, QStringList("--synctex") << "--xtx" << "$fullname", true)
 +		<< Engine("pBibTeX", "pbibtex" EXE, QStringList("$basename"), false)
  		<< Engine("BibTeX", "bibtex" EXE, QStringList("$basename"), false)
 +		<< Engine("Mendex", "mendex" EXE, QStringList("$basename"), false)
@@ -21,4 +21,4 @@ diff -up texworks-0.4.0/src/TWApp.cpp.vine texworks-0.4.0/src/TWApp.cpp
  	defaultEngineIndex = 1;
  }
 
-Diff finished.  Wed Mar 30 14:38:58 2011
+Diff finished.  Sat Jun 18 19:04:18 2011

BIN
t/texworks/texworks-templates-japanese-20110626.tar.xz


+ 16 - 6
t/texworks/texworks-vl.spec

@@ -1,13 +1,14 @@
 #% define svnrevision 773
 %define templates_japanese 1
+%define templates_japanese_version 20110626
 
 %define _qt4_qmake		%{_libdir}/qt4/bin/qmake
 
 ## Summary/Description adopted from Debian with modification
 
 Name:           texworks
-Version:        0.4.1
-Release:        2%{?svnrevision:.svn%svnrevision}%{?_dist_release}
+Version:        0.4.3
+Release:        1%{?svnrevision:.svn%svnrevision}%{?_dist_release}
 Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
 Summary(ja):    TeX ドキュメント制作のための総合環境
 
@@ -15,14 +16,14 @@ Group:          Applications/Editors
 License:        GPLv2+
 URL:            http://tug.org/texworks/
 #Source0:        http://texworks.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
-Source0:        http://texworks.googlecode.com/files/%{name}-%{version}-r829.tar.gz
+Source0:        http://texworks.googlecode.com/files/%{name}-%{version}-r858.tar.gz
 # Desktop file adopted from Debian with modification
 Source1:        %{name}.desktop
 
 ## vine
 Source10:       texworks-snapshot.sh
 %if %{templates_japanese}
-Source50:       texworks-templates-japanese-20110626.tar.xz
+Source50:       texworks-templates-japanese-%{templates_japanese_version}.tar.xz
 %endif
 Source100:      pdfplatex.sh
 Source101:      pdfeplatex.sh
@@ -34,6 +35,8 @@ BuildRequires:  hunspell-devel
 BuildRequires:  dbus-devel
 BuildRequires:  poppler-qt4-devel
 BuildRequires:  desktop-file-utils
+BuildRequires:  texlive-common
+Requires:       texlive-common
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -66,8 +69,8 @@ TeXworks を利用するためには、TeX 環境が必要です。
 ## added some Japanese templates
 %if %{templates_japanese}
 %__tar xf %{SOURCE50}
-%__cp -ra "texworks-templates-japanese-20110626/Japanese documents" res/resfiles/templates/ || exit 1
-patch -p1 -b -z .vine < texworks-templates-japanese-20110626/texworks-0.4.1-templates-japanese.patch || exit 1
+%__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1
+patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1
 %endif
 
 %build
@@ -106,9 +109,16 @@ update-desktop-database &> /dev/null || :
 %{_bindir}/pdfeplatex
 %{_datadir}/applications/%{name}.desktop
 %{_datadir}/pixmaps/*
+%dir %{_datadir}/texworks-help
+%{_datadir}/texworks-help/*
 %{_mandir}/man1/texworks.1.gz
 
 %changelog
+* Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
+- new upstream release
+- added BuildRequires: texlive-common
+- added Requires: texlive-common
+
 * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
 - added some Japanese templates