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