source: projects/specs/trunk/t/texworks/texworks-vl.spec @ 5258

Revision 5258, 5.1 KB checked in by munepi, 12 years ago (diff)

updated texworks: TeX Live 2011

Line 
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
9Name:           texworks
10Version:        0.5
11Release:        1%{?svnrevision:.svn%svnrevision}%{?_dist_release}
12Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
13Summary(ja):    TeX ドキュメント制作のための総合環境
14
15Group:          Applications/Editors
16License:        GPLv2+
17URL:            http://tug.org/texworks/
18Source0:        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
21Source1:        %{name}.desktop
22
23## vine
24Source10:       texworks-snapshot.sh
25%if %{templates_japanese}
26Source50:       texworks-templates-japanese-%{templates_japanese_version}.tar.xz
27%endif
28Source100:      pdfplatex.sh
29Source101:      pdfeplatex.sh
30
31## vine
32Patch100:       texworks-0.4.1-ptex-vine-vl6.patch
33Patch101:       texworks-0.5.svn950-vine-vl7.patch
34
35BuildRequires:  hunspell-devel
36BuildRequires:  dbus-devel
37BuildRequires:  poppler-qt4-devel
38BuildRequires:  desktop-file-utils
39BuildRequires:  texlive-common
40Requires:       texlive-common
41
42BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
43
44Distribution:   Vine
45Vendor:         Project Vine
46Packager:       munepi
47
48
49%description
50TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents,
51with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
52simple interface accessible to casual and non-technical users.
53
54You may install the texlive-* packages to make this program useful.
55
56%description -l ja
57TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。
58ユニコードベースで編集する TeX に特化したエディタに、
59PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの
60簡潔で操作しやすいインタフェースを備えています。
61
62TeXworks を利用するためには、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
79patch -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
106update-desktop-database &> /dev/null || :
107
108%postun
109update-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
Note: See TracBrowser for help on using the repository browser.