1 | #% global svnrevision 773 |
---|
2 | #% global templates_japanese 1 |
---|
3 | %global templates_japanese_version 20110626 |
---|
4 | |
---|
5 | %global _qt4_qmake %{_libdir}/qt4/bin/qmake |
---|
6 | |
---|
7 | ## Summary/Description adopted from Debian with modification |
---|
8 | |
---|
9 | Name: texworks |
---|
10 | Version: 0.4.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/texworks-0.4.5-r1281.tar.gz |
---|
20 | # Desktop file adopted from Debian with modification |
---|
21 | Source1: %{name}.desktop |
---|
22 | |
---|
23 | ## vine |
---|
24 | Source10: texworks-snapshot.sh |
---|
25 | %if 0%{?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 | Patch0: texworks-0.4.5-ptex2pdf.patch |
---|
33 | Patch1: texworks-0.4.5-pdfplatex-vine.patch |
---|
34 | |
---|
35 | BuildRequires: hunspell-devel |
---|
36 | BuildRequires: dbus-devel |
---|
37 | BuildRequires: poppler-qt4-devel |
---|
38 | BuildRequires: desktop-file-utils |
---|
39 | |
---|
40 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
41 | |
---|
42 | Distribution: Vine |
---|
43 | Vendor: Project Vine |
---|
44 | Packager: munepi |
---|
45 | |
---|
46 | |
---|
47 | %description |
---|
48 | TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents, |
---|
49 | with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, |
---|
50 | simple interface accessible to casual and non-technical users. |
---|
51 | |
---|
52 | You may install the texlive-* packages to make this program useful. |
---|
53 | |
---|
54 | %description -l ja |
---|
55 | TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。 |
---|
56 | ユニコードベースで編集する TeX に特化したエディタに、 |
---|
57 | PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの |
---|
58 | 簡潔で操作しやすいインタフェースを備えています。 |
---|
59 | |
---|
60 | TeXworks を利用するためには、TeX 環境が必要です。 |
---|
61 | |
---|
62 | |
---|
63 | %prep |
---|
64 | %setup -q |
---|
65 | |
---|
66 | %patch0 -p1 -b .ptex2pdf |
---|
67 | %patch1 -p1 -b .vine |
---|
68 | |
---|
69 | ## added some Japanese templates |
---|
70 | %if 0%{?templates_japanese} |
---|
71 | %__tar xf %{SOURCE50} |
---|
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 |
---|
74 | %endif |
---|
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 | |
---|
105 | %files |
---|
106 | %defattr(-,root,root,-) |
---|
107 | %{_docdir}/%{name}-%{version}/ |
---|
108 | %{_bindir}/%{name} |
---|
109 | %{_bindir}/pdfplatex |
---|
110 | %{_bindir}/pdfeplatex |
---|
111 | %{_datadir}/applications/%{name}.desktop |
---|
112 | %{_datadir}/pixmaps/* |
---|
113 | %dir %{_datadir}/texworks-help |
---|
114 | %{_datadir}/texworks-help/* |
---|
115 | %{_mandir}/man1/texworks.1.gz |
---|
116 | |
---|
117 | %changelog |
---|
118 | * Mon Oct 7 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-1 |
---|
119 | - dropped Requires: texlive-common and BuildRequires: texlive-common |
---|
120 | |
---|
121 | * Sun Mar 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-2 |
---|
122 | - rebuild with hunspell-devel |
---|
123 | |
---|
124 | * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1 |
---|
125 | - new upstream release |
---|
126 | - added BuildRequires: texlive-common |
---|
127 | - added Requires: texlive-common |
---|
128 | |
---|
129 | * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2 |
---|
130 | - added some Japanese templates |
---|
131 | |
---|
132 | * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1 |
---|
133 | - new upstream release |
---|
134 | |
---|
135 | * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1 |
---|
136 | - new upstream release |
---|
137 | |
---|
138 | * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724 |
---|
139 | - source snapshot r724 |
---|
140 | |
---|
141 | * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671 |
---|
142 | - source snapshot r671 |
---|
143 | - dropped obsolete/upstreamed patches |
---|
144 | - added texworks-snapshot.sh |
---|
145 | |
---|
146 | * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1 |
---|
147 | - initial build |
---|
148 | |
---|
149 | * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3 |
---|
150 | - Move to menu category 'Office' |
---|
151 | - License tag revised to 'GPLv2+' |
---|
152 | - Initial import to Fedora repositories |
---|
153 | |
---|
154 | * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2 |
---|
155 | - Fix some strange characters in README |
---|
156 | - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking |
---|
157 | problem |
---|
158 | |
---|
159 | * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1 |
---|
160 | - Initial packaging |
---|