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