1 | %define svnrevision 950 |
---|
2 | %define templates_japanese 1 |
---|
3 | %define templates_japanese_version 20110626 |
---|
4 | |
---|
5 | %define _qt4_qmake %{_libdir}/qt4/bin/qmake |
---|
6 | |
---|
7 | ## Summary/Description adopted from Debian with modification |
---|
8 | |
---|
9 | Name: texworks |
---|
10 | Version: 0.5 |
---|
11 | Release: 1%{?svnrevision:.svn%svnrevision}%{?_dist_release} |
---|
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/ |
---|
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 |
---|
20 | # Desktop file adopted from Debian with modification |
---|
21 | Source1: %{name}.desktop |
---|
22 | |
---|
23 | ## vine |
---|
24 | Source10: texworks-snapshot.sh |
---|
25 | %if %{templates_japanese} |
---|
26 | Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz |
---|
27 | %endif |
---|
28 | Source100: pdfplatex.sh |
---|
29 | Source101: pdfeplatex.sh |
---|
30 | |
---|
31 | ## vine |
---|
32 | Patch100: texworks-0.4.1-ptex-vine-vl6.patch |
---|
33 | Patch101: texworks-0.5.svn950-vine-vl7.patch |
---|
34 | |
---|
35 | BuildRequires: hunspell-devel |
---|
36 | BuildRequires: dbus-devel |
---|
37 | BuildRequires: poppler-qt4-devel |
---|
38 | BuildRequires: desktop-file-utils |
---|
39 | BuildRequires: texlive-common |
---|
40 | Requires: texlive-common |
---|
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 | |
---|
68 | %if %{?_dist_release} == "vl6" |
---|
69 | %patch100 -p1 -b .vine |
---|
70 | %endif |
---|
71 | %if %{?_dist_release} == "vl7" |
---|
72 | %patch101 -p1 -b .vine |
---|
73 | %endif |
---|
74 | |
---|
75 | ## added some Japanese templates |
---|
76 | %if %{templates_japanese} |
---|
77 | %__tar xf %{SOURCE50} |
---|
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 |
---|
80 | %endif |
---|
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 |
---|
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) |
---|
96 | %__install -m755 -D %{SOURCE100} %{buildroot}%{_bindir}/pdfplatex |
---|
97 | %if %{?_dist_release} == "vl6" |
---|
98 | %__install -m755 -D %{SOURCE101} %{buildroot}%{_bindir}/pdfeplatex |
---|
99 | %endif |
---|
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 |
---|
116 | %if %{?_dist_release} == "vl6" |
---|
117 | %{_bindir}/pdfeplatex |
---|
118 | %endif |
---|
119 | %{_datadir}/applications/%{name}.desktop |
---|
120 | %{_datadir}/pixmaps/* |
---|
121 | # %dir %{_datadir}/texworks-help |
---|
122 | # %{_datadir}/texworks-help/* |
---|
123 | %{_mandir}/man1/texworks.1.gz |
---|
124 | |
---|
125 | %changelog |
---|
126 | * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950 |
---|
127 | - source snapshot r950 |
---|
128 | - updated pdfplatex.sh |
---|
129 | - support SyncTeX |
---|
130 | - TeX Live 2011 |
---|
131 | |
---|
132 | * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1 |
---|
133 | - new upstream release |
---|
134 | - added BuildRequires: texlive-common |
---|
135 | - added Requires: texlive-common |
---|
136 | |
---|
137 | * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2 |
---|
138 | - added some Japanese templates |
---|
139 | |
---|
140 | * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1 |
---|
141 | - new upstream release |
---|
142 | |
---|
143 | * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1 |
---|
144 | - new upstream release |
---|
145 | |
---|
146 | * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724 |
---|
147 | - source snapshot r724 |
---|
148 | |
---|
149 | * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671 |
---|
150 | - source snapshot r671 |
---|
151 | - dropped obsolete/upstreamed patches |
---|
152 | - added texworks-snapshot.sh |
---|
153 | |
---|
154 | * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1 |
---|
155 | - initial build |
---|
156 | |
---|
157 | * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3 |
---|
158 | - Move to menu category 'Office' |
---|
159 | - License tag revised to 'GPLv2+' |
---|
160 | - Initial import to Fedora repositories |
---|
161 | |
---|
162 | * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2 |
---|
163 | - Fix some strange characters in README |
---|
164 | - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking |
---|
165 | problem |
---|
166 | |
---|
167 | * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1 |
---|
168 | - Initial packaging |
---|