Browse Source

updated texworks-vl.spec

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

+ 0 - 32
t/texworks/TeXworks-pro-install.patch

@@ -1,32 +0,0 @@
---- texworks-0.2.3/TeXworks.pro	2009-10-09 02:03:52.000000000 +0800
-+++ texworks-0.2.3.new/TeXworks.pro	2010-04-24 10:36:17.876647486 +0800
-@@ -75,6 +75,8 @@
- 	# Qt/dbus config on Debian is broken, hence the lines below
- 	LIBS		+= -lQtDBus
- 	INCLUDEPATH	+= /usr/include/qt4/QtDBus
-+	# need for change of DSO linking on Fedora
-+	LIBS		+= -lz
- }
- 
- openbsd-g++ {
-@@ -172,3 +174,20 @@
- 					trans/TeXworks_tr.ts \
- 					trans/TeXworks_zh_CN.ts
- 
-+unix:!macx { # installation on Unix-ish platforms
-+	isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr/local
-+	isEmpty(BIN_DIR):BIN_DIR = $$INSTALL_PREFIX/bin
-+	isEmpty(DATA_DIR):DATA_DIR = $$INSTALL_PREFIX/share
-+	isEmpty(TRANSLATIONS_DIR):TRANSLATIONS_DIR = $$DATA_DIR/texworks/translations
-+	isEmpty(DOCS_DIR):DOCS_DIR = $$DATA_DIR/doc/texworks
-+	isEmpty(ICON_DIR):ICON_DIR = $$DATA_DIR/pixmaps
-+
-+	target.path = $$BIN_DIR
-+	documentation.files = COPYING README
-+	documentation.path = $$DOCS_DIR
-+	translation.files = trans/TeXworks_*.qm
-+	translation.path = $$TRANSLATIONS_DIR
-+	icon.files = res/images/TeXworks.png
-+	icon.path = $$ICON_DIR
-+	INSTALLS = target documentation translation icon
-+}

+ 0 - 11
t/texworks/texworks-0.2.3-README-UTF8.patch

@@ -1,11 +0,0 @@
---- README	2009-10-02 20:07:47.000000000 +0800
-+++ README.new	2010-04-22 17:12:40.310582005 +0800
-@@ -5,7 +5,7 @@
- Distributed under the terms of the GNU General Public License, version 2 or (at your option) any later version.
- See the file COPYING for details.
- 
--The SyncTeX code is copyright (c) 2008, 2009 by JŽr™me Laurens; see synctex_parser.c for license details.
-+The SyncTeX code is copyright (c) 2008, 2009 by Jérôme Laurens; see synctex_parser.c for license details.
- 
- 
- Building TeXworks

+ 0 - 23
t/texworks/texworks-0.2.3-ptex-vine.patch

@@ -1,23 +0,0 @@
-diff -up texworks-0.2.3/src/TWApp.cpp.vine texworks-0.2.3/src/TWApp.cpp
---- texworks-0.2.3/src/TWApp.cpp.vine	2009-10-09 03:03:52.000000000 +0900
-+++ texworks-0.2.3/src/TWApp.cpp	2010-08-07 15:42:22.722994261 +0900
-@@ -536,13 +536,17 @@ void TWApp::setDefaultEngineList()
- 	else
- 		engineList->clear();
- 	*engineList
-+		<< Engine("pdfpLaTeX", "pdfplatex" EXE, QStringList("$basename"), true)
-+		<< Engine("pdfepLaTeX", "pdfeplatex" EXE, QStringList("$basename"), true)
- 		<< Engine("pdfTeX", "pdftex" EXE, QStringList("$synctexoption") << "$fullname", true)
- 		<< Engine("pdfLaTeX", "pdflatex" EXE, QStringList("$synctexoption") << "$fullname", true)
- 		<< Engine("XeTeX", "xetex" EXE, QStringList("$synctexoption") << "$fullname", true)
- 		<< Engine("XeLaTeX", "xelatex" EXE, QStringList("$synctexoption") << "$fullname", true)
- 		<< Engine("ConTeXt", "texmfstart" EXE, QStringList("texexec") << "$fullname", true)
- 		<< Engine("XeConTeXt", "texmfstart" EXE, QStringList("texexec") << "--xtx" << "$fullname", true)
-+		<< Engine("pBibTeX", "pbibtex" EXE, QStringList("$basename"), false)
- 		<< Engine("BibTeX", "bibtex" EXE, QStringList("$basename"), false)
-+		<< Engine("Mendex", "mendex" EXE, QStringList("$basename"), false)
- 		<< Engine("MakeIndex", "makeindex" EXE, QStringList("$basename"), false);
- 	defaultEngineIndex = 1;
- }
-
-Diff finished.  Sat Aug  7 15:44:12 2010

+ 8 - 8
t/texworks/texworks-0.3-ptex-vine.patch → t/texworks/texworks-0.4-ptex-vine.patch

@@ -1,7 +1,7 @@
-diff -up texworks-0.3/src/TWApp.cpp\~ texworks-0.3/src/TWApp.cpp
---- texworks-0.3/src/TWApp.cpp~	2010-10-02 10:38:03.000000000 +0900
-+++ texworks-0.3/src/TWApp.cpp	2010-10-02 10:47:37.874000067 +0900
-@@ -810,6 +810,8 @@ void TWApp::setDefaultEngineList()
+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
+@@ -835,6 +835,8 @@ void TWApp::setDefaultEngineList()
  	else
  		engineList->clear();
  	*engineList
@@ -10,10 +10,10 @@ diff -up texworks-0.3/src/TWApp.cpp\~ texworks-0.3/src/TWApp.cpp
  		<< Engine("LaTeXmk", "latexmk" EXE, QStringList("-e") << 
  				  "$pdflatex=q/pdflatex -synctex=1 %O %S/" << "-pdf" << "$fullname", true)
  		<< Engine("pdfTeX", "pdftex" EXE, QStringList("$synctexoption") << "$fullname", true)
-@@ -818,7 +820,9 @@ void TWApp::setDefaultEngineList()
+@@ -843,7 +845,9 @@ void TWApp::setDefaultEngineList()
  		<< Engine("XeLaTeX", "xelatex" EXE, QStringList("$synctexoption") << "$fullname", true)
- 		<< Engine("ConTeXt", "texmfstart" EXE, QStringList("texexec") << "$fullname", true)
- 		<< Engine("XeConTeXt", "texmfstart" EXE, QStringList("texexec") << "--xtx" << "$fullname", true)
+ 		<< Engine("ConTeXt (MKII)", "texmfstart" EXE, QStringList("texexec") << "--synctex" << "$fullname", true)
+ 		<< Engine("XeConTeXt (MKII)", "texmfstart" EXE, QStringList("texexec") << "--xtx" << "--synctex" << "$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.3/src/TWApp.cpp\~ texworks-0.3/src/TWApp.cpp
  	defaultEngineIndex = 1;
  }
 
-Diff finished.  Sat Oct  2 10:47:40 2010
+Diff finished.  Wed Mar 30 14:38:58 2011

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

@@ -1,11 +1,11 @@
-%define svnrevision 671
+#% define svnrevision 773
 
 %define _qt4_qmake		%{_libdir}/qt4/bin/qmake
 
 ## Summary/Description adopted from Debian with modification
 
 Name:           texworks
-Version:        0.3
+Version:        0.4.0
 Release:        1%{?svnrevision:.svn%svnrevision}%{?_dist_release}
 Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
 Summary(ja):    TeX ドキュメント制作のための総合環境
@@ -13,7 +13,8 @@ Summary(ja):    TeX ドキュメント制作のための総合環境
 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}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:bz2}%{!?svnrevision:gz}
+Source0:        http://texworks.googlecode.com/files/%{name}-%{version}-r759.tar.gz
 # Desktop file adopted from Debian with modification
 Source1:        %{name}.desktop
 
@@ -23,7 +24,7 @@ Source100:      pdfplatex.sh
 Source101:      pdfeplatex.sh
 
 ## vine
-Patch100:       texworks-0.3-ptex-vine.patch
+Patch100:       texworks-0.4-ptex-vine.patch
 
 BuildRequires:  hunspell-devel
 BuildRequires:  dbus-devel
@@ -98,6 +99,12 @@ update-desktop-database &> /dev/null || :
 %{_mandir}/man1/texworks.1.gz
 
 %changelog
+* Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
+- new upstream release
+
+* Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
+- source snapshot r724
+
 * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
 - source snapshot r671
   - dropped obsolete/upstreamed patches

+ 0 - 126
t/texworks/texworks-vl5.spec

@@ -1,126 +0,0 @@
-%define _qt4_qmake		%{_libdir}/qt4/bin/qmake
-
-## Summary/Description adopted from Debian with modification
-
-Name:           texworks
-Version:        0.2.3
-Release:        2%{?_dist_release}
-Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
-Summary(ja):     TeX ドキュメント制作のための総合環境
-
-Group:          Applications/Editors
-License:        GPLv2+
-URL:            http://tug.org/texworks/
-Source0:        http://texworks.googlecode.com/files/%{name}-%{version}.tar.gz
-# Desktop file adopted from Debian with modification
-Source1:        %{name}.desktop
-
-## vine
-Source100:      pdfplatex.sh
-Source101:      pdfeplatex.sh
-
-# Fix some strange characters in README
-# applied in upstream svn629
-Patch0:         texworks-0.2.3-README-UTF8.patch
-
-# Use qmake mechanism to install files and fix DSO linking problem
-# DSO linking related part applied in upstream svn637
-Patch1:         TeXworks-pro-install.patch
-
-## vine
-Patch100:       texworks-0.2.3-ptex-vine.patch
-
-BuildRequires:  hunspell-devel
-BuildRequires:  dbus-devel
-BuildRequires:  poppler-qt4-devel
-BuildRequires:  desktop-file-utils
-
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
-
-Distribution:	Vine Linux
-Vendor:		Project Vine
-Packager:	munepi
-
-
-%description
-TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents, 
-with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, 
-simple interface accessible to casual and non-technical users.
-
-You may install the texlive-* packages to make this program useful.
-
-%description -l ja
-TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。
-ユニコードベースで編集する TeX に特化したエディタに、
-PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの
-簡潔で操作しやすいインタフェースを備えています。
-
-TeXworks を利用するためには、TeX 環境が必要です。
-
-
-%prep
-%setup -q
-%patch0 -p0 -b .fix
-%patch1 -p1 -b .fix
-
-%patch100 -p1 -b .vine
-
-
-%build
-%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
-%__make %{?_smp_mflags}
-
-
-%install
-%__rm -rf %{buildroot}
-%__make install INSTALL_ROOT=%{buildroot}
-
-%__mkdir_p %{buildroot}%{_datadir}/applications
-desktop-file-install \
-    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
-    %{SOURCE1}
-
-## support platex/eplatex via dvipdfmx
-%__install -m755 -D %{SOURCE100} %{buildroot}%{_bindir}/pdfplatex
-%__install -m755 -D %{SOURCE101} %{buildroot}%{_bindir}/pdfeplatex
-
-
-%clean
-%__rm -rf %{buildroot}
-
-%post
-update-desktop-database &> /dev/null || :
-
-%postun
-update-desktop-database &> /dev/null || :
-
-%files
-%defattr(-,root,root,-)
-%{_docdir}/%{name}-%{version}/
-%{_bindir}/%{name}
-%{_bindir}/pdfplatex
-%{_bindir}/pdfeplatex
-%{_datadir}/%{name}/
-%{_datadir}/applications/%{name}.desktop
-%{_datadir}/pixmaps/*
-
-
-%changelog
-* Xxx Yyy Zz 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-2
-- corrected Summary: and Distribution:
-
-* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
-- initial build
-
-* Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
-- Move to menu category 'Office'
-- License tag revised to 'GPLv2+'
-- Initial import to Fedora repositories
-
-* Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
-- Fix some strange characters in README
-- Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
-  problem
-
-* Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
-- Initial packaging

+ 0 - 12
t/texworks/texworks.desktop

@@ -1,12 +0,0 @@
-[Desktop Entry]
-Version=1.0
-Name=TeXworks
-GenericName=Simple TeX IDE
-Comment=A simple IDE for authoring TeX documents
-Exec=texworks
-Icon=TeXworks
-Terminal=false
-Type=Application
-StartupNotify=false
-Categories=Qt;Office;
-MimeType=application/x-latex;text/x-bibtex;text/x-tex;