1 | %define _qt4_qmake %{_libdir}/qt4/bin/qmake |
---|
2 | |
---|
3 | ## Summary/Description adopted from Debian with modification |
---|
4 | |
---|
5 | Name: texworks |
---|
6 | Version: 0.2.3 |
---|
7 | Release: 2%{?_dist_release} |
---|
8 | Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents |
---|
9 | Summary(ja): TeX ドキュメント制作のための総合環境 |
---|
10 | |
---|
11 | Group: Applications/Editors |
---|
12 | License: GPLv2+ |
---|
13 | URL: http://tug.org/texworks/ |
---|
14 | Source0: http://texworks.googlecode.com/files/%{name}-%{version}.tar.gz |
---|
15 | # Desktop file adopted from Debian with modification |
---|
16 | Source1: %{name}.desktop |
---|
17 | |
---|
18 | ## vine |
---|
19 | Source100: pdfplatex.sh |
---|
20 | Source101: pdfeplatex.sh |
---|
21 | |
---|
22 | # Fix some strange characters in README |
---|
23 | # applied in upstream svn629 |
---|
24 | Patch0: texworks-0.2.3-README-UTF8.patch |
---|
25 | |
---|
26 | # Use qmake mechanism to install files and fix DSO linking problem |
---|
27 | # DSO linking related part applied in upstream svn637 |
---|
28 | Patch1: TeXworks-pro-install.patch |
---|
29 | |
---|
30 | ## vine |
---|
31 | Patch100: texworks-0.2.3-ptex-vine.patch |
---|
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 Linux |
---|
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 | %patch0 -p0 -b .fix |
---|
64 | %patch1 -p1 -b .fix |
---|
65 | |
---|
66 | %patch100 -p1 -b .vine |
---|
67 | |
---|
68 | |
---|
69 | %build |
---|
70 | %_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version} |
---|
71 | %__make %{?_smp_mflags} |
---|
72 | |
---|
73 | |
---|
74 | %install |
---|
75 | %__rm -rf %{buildroot} |
---|
76 | %__make install INSTALL_ROOT=%{buildroot} |
---|
77 | |
---|
78 | %__mkdir_p %{buildroot}%{_datadir}/applications |
---|
79 | desktop-file-install \ |
---|
80 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
81 | %{SOURCE1} |
---|
82 | |
---|
83 | ## support platex/eplatex via dvipdfmx |
---|
84 | %__install -m755 -D %{SOURCE100} %{buildroot}%{_bindir}/pdfplatex |
---|
85 | %__install -m755 -D %{SOURCE101} %{buildroot}%{_bindir}/pdfeplatex |
---|
86 | |
---|
87 | |
---|
88 | %clean |
---|
89 | %__rm -rf %{buildroot} |
---|
90 | |
---|
91 | %post |
---|
92 | update-desktop-database &> /dev/null || : |
---|
93 | |
---|
94 | %postun |
---|
95 | update-desktop-database &> /dev/null || : |
---|
96 | |
---|
97 | %files |
---|
98 | %defattr(-,root,root,-) |
---|
99 | %{_docdir}/%{name}-%{version}/ |
---|
100 | %{_bindir}/%{name} |
---|
101 | %{_bindir}/pdfplatex |
---|
102 | %{_bindir}/pdfeplatex |
---|
103 | %{_datadir}/%{name}/ |
---|
104 | %{_datadir}/applications/%{name}.desktop |
---|
105 | %{_datadir}/pixmaps/* |
---|
106 | |
---|
107 | |
---|
108 | %changelog |
---|
109 | * Xxx Yyy Zz 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-2 |
---|
110 | - corrected Summary: and Distribution: |
---|
111 | |
---|
112 | * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1 |
---|
113 | - initial build |
---|
114 | |
---|
115 | * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3 |
---|
116 | - Move to menu category 'Office' |
---|
117 | - License tag revised to 'GPLv2+' |
---|
118 | - Initial import to Fedora repositories |
---|
119 | |
---|
120 | * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2 |
---|
121 | - Fix some strange characters in README |
---|
122 | - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking |
---|
123 | problem |
---|
124 | |
---|
125 | * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1 |
---|
126 | - Initial packaging |
---|