Browse Source

updated texworks-vl.spec

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4222 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 13 years ago
parent
commit
acba701581
1 changed files with 20 additions and 4 deletions
  1. 20 4
      t/texworks/texworks-vl.spec

+ 20 - 4
t/texworks/texworks-vl.spec

@@ -1,12 +1,13 @@
 #% define svnrevision 773
+%define templates_japanese 1
 
 %define _qt4_qmake		%{_libdir}/qt4/bin/qmake
 
 ## Summary/Description adopted from Debian with modification
 
 Name:           texworks
-Version:        0.4.0
-Release:        1%{?svnrevision:.svn%svnrevision}%{?_dist_release}
+Version:        0.4.1
+Release:        2%{?svnrevision:.svn%svnrevision}%{?_dist_release}
 Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
 Summary(ja):    TeX ドキュメント制作のための総合環境
 
@@ -14,17 +15,20 @@ 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}-r759.tar.gz
+Source0:        http://texworks.googlecode.com/files/%{name}-%{version}-r829.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
+%endif
 Source100:      pdfplatex.sh
 Source101:      pdfeplatex.sh
 
 ## vine
-Patch100:       texworks-0.4-ptex-vine.patch
+Patch100:       texworks-0.4.1-ptex-vine.patch
 
 BuildRequires:  hunspell-devel
 BuildRequires:  dbus-devel
@@ -59,6 +63,12 @@ TeXworks を利用するためには、TeX 環境が必要です。
 
 %patch100 -p1 -b .vine
 
+## 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
+%endif
 
 %build
 %_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
@@ -99,6 +109,12 @@ update-desktop-database &> /dev/null || :
 %{_mandir}/man1/texworks.1.gz
 
 %changelog
+* Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
+- added some Japanese templates
+
+* Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
+- new upstream release
+
 * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
 - new upstream release