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