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