[7954] | 1 | %global svnrevision 1302 |
---|
| 2 | %global templates_japanese 0 |
---|
| 3 | %global templates_japanese_version 20110626 |
---|
[1977] | 4 | |
---|
| 5 | ## Summary/Description adopted from Debian with modification |
---|
| 6 | |
---|
| 7 | Name: texworks |
---|
[5258] | 8 | Version: 0.5 |
---|
[7954] | 9 | Release: 4%{?svnrevision:.svn%svnrevision}%{?_dist_release} |
---|
[1977] | 10 | Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents |
---|
| 11 | Summary(ja): TeX ドキュメント制作のための総合環境 |
---|
| 12 | |
---|
| 13 | Group: Applications/Editors |
---|
| 14 | License: GPLv2+ |
---|
| 15 | URL: http://tug.org/texworks/ |
---|
[7813] | 16 | Source0: http://texworks.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:xz}%{!?svnrevision:gz} |
---|
[5258] | 17 | #Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r858.tar.gz |
---|
[1977] | 18 | # Desktop file adopted from Debian with modification |
---|
| 19 | Source1: %{name}.desktop |
---|
| 20 | |
---|
| 21 | ## vine |
---|
| 22 | Source10: texworks-snapshot.sh |
---|
[4222] | 23 | %if %{templates_japanese} |
---|
[4257] | 24 | Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz |
---|
[4222] | 25 | %endif |
---|
[1977] | 26 | |
---|
| 27 | ## vine |
---|
[7813] | 28 | Patch100: texworks-0.5-r1302-ptex2pdf.patch |
---|
[1977] | 29 | |
---|
[7813] | 30 | |
---|
| 31 | BuildRequires: lua-devel |
---|
[1977] | 32 | BuildRequires: hunspell-devel |
---|
| 33 | BuildRequires: dbus-devel |
---|
| 34 | BuildRequires: poppler-qt4-devel |
---|
| 35 | BuildRequires: desktop-file-utils |
---|
| 36 | |
---|
| 37 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 38 | |
---|
| 39 | Distribution: Vine |
---|
| 40 | Vendor: Project Vine |
---|
| 41 | Packager: munepi |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %description |
---|
| 45 | TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents, |
---|
| 46 | with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, |
---|
| 47 | simple interface accessible to casual and non-technical users. |
---|
| 48 | |
---|
| 49 | You may install the texlive-* packages to make this program useful. |
---|
| 50 | |
---|
| 51 | %description -l ja |
---|
| 52 | TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。 |
---|
| 53 | ユニコードベースで編集する TeX に特化したエディタに、 |
---|
| 54 | PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの |
---|
| 55 | 簡潔で操作しやすいインタフェースを備えています。 |
---|
| 56 | |
---|
| 57 | TeXworks を利用するためには、TeX 環境が必要です。 |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %prep |
---|
| 61 | %setup -q |
---|
| 62 | |
---|
| 63 | %patch100 -p1 -b .vine |
---|
| 64 | |
---|
[4222] | 65 | ## added some Japanese templates |
---|
| 66 | %if %{templates_japanese} |
---|
| 67 | %__tar xf %{SOURCE50} |
---|
[4257] | 68 | %__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1 |
---|
| 69 | patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1 |
---|
[4222] | 70 | %endif |
---|
[1977] | 71 | |
---|
| 72 | %build |
---|
| 73 | %_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version} |
---|
| 74 | %__make %{?_smp_mflags} |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %install |
---|
| 78 | %__rm -rf %{buildroot} |
---|
| 79 | %__make install INSTALL_ROOT=%{buildroot} |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %clean |
---|
| 83 | %__rm -rf %{buildroot} |
---|
| 84 | |
---|
| 85 | %post |
---|
| 86 | update-desktop-database &> /dev/null || : |
---|
| 87 | |
---|
| 88 | %postun |
---|
| 89 | update-desktop-database &> /dev/null || : |
---|
| 90 | |
---|
| 91 | %files |
---|
| 92 | %defattr(-,root,root,-) |
---|
| 93 | %{_docdir}/%{name}-%{version}/ |
---|
| 94 | %{_bindir}/%{name} |
---|
| 95 | %{_datadir}/applications/%{name}.desktop |
---|
| 96 | %{_datadir}/pixmaps/* |
---|
| 97 | %{_mandir}/man1/texworks.1.gz |
---|
| 98 | |
---|
| 99 | %changelog |
---|
[7954] | 100 | * Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302 |
---|
| 101 | - dropped R/BR: texlive |
---|
| 102 | |
---|
[7813] | 103 | * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302 |
---|
| 104 | - source snapshot r1302 |
---|
| 105 | - added BuildRequires: lua-devel |
---|
| 106 | |
---|
[5872] | 107 | * Fri Mar 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950 |
---|
| 108 | - rebuild with hunspell-devel |
---|
| 109 | |
---|
[5258] | 110 | * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950 |
---|
| 111 | - source snapshot r950 |
---|
| 112 | - updated pdfplatex.sh |
---|
| 113 | - support SyncTeX |
---|
| 114 | - TeX Live 2011 |
---|
| 115 | |
---|
[4257] | 116 | * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1 |
---|
| 117 | - new upstream release |
---|
| 118 | - added BuildRequires: texlive-common |
---|
| 119 | - added Requires: texlive-common |
---|
| 120 | |
---|
[4222] | 121 | * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2 |
---|
| 122 | - added some Japanese templates |
---|
| 123 | |
---|
| 124 | * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[3231] | 127 | * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1 |
---|
| 128 | - new upstream release |
---|
| 129 | |
---|
| 130 | * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724 |
---|
| 131 | - source snapshot r724 |
---|
| 132 | |
---|
[1977] | 133 | * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671 |
---|
| 134 | - source snapshot r671 |
---|
| 135 | - dropped obsolete/upstreamed patches |
---|
| 136 | - added texworks-snapshot.sh |
---|
| 137 | |
---|
| 138 | * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1 |
---|
| 139 | - initial build |
---|
| 140 | |
---|
| 141 | * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3 |
---|
| 142 | - Move to menu category 'Office' |
---|
| 143 | - License tag revised to 'GPLv2+' |
---|
| 144 | - Initial import to Fedora repositories |
---|
| 145 | |
---|
| 146 | * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2 |
---|
| 147 | - Fix some strange characters in README |
---|
| 148 | - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking |
---|
| 149 | problem |
---|
| 150 | |
---|
| 151 | * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1 |
---|
| 152 | - Initial packaging |
---|