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