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

Revision 7813, 4.6 KB checked in by munepi, 11 years ago (diff)

source snapshot r1302

Line 
1%define svnrevision 1302
2%define templates_japanese 0
3%define templates_japanese_version 20110626
4
5## Summary/Description adopted from Debian with modification
6
7Name:           texworks
8Version:        0.5
9Release:        3%{?svnrevision:.svn%svnrevision}%{?_dist_release}
10Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
11Summary(ja):    TeX ドキュメント制作のための総合環境
12
13Group:          Applications/Editors
14License:        GPLv2+
15URL:            http://tug.org/texworks/
16Source0:        http://texworks.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:xz}%{!?svnrevision:gz}
17#Source0:        http://texworks.googlecode.com/files/%{name}-%{version}-r858.tar.gz
18# Desktop file adopted from Debian with modification
19Source1:        %{name}.desktop
20
21## vine
22Source10:       texworks-snapshot.sh
23%if %{templates_japanese}
24Source50:       texworks-templates-japanese-%{templates_japanese_version}.tar.xz
25%endif
26
27## vine
28Patch100:       texworks-0.5-r1302-ptex2pdf.patch
29
30
31BuildRequires:  lua-devel
32BuildRequires:  hunspell-devel
33BuildRequires:  dbus-devel
34BuildRequires:  poppler-qt4-devel
35BuildRequires:  desktop-file-utils
36#BuildRequires:  texlive >= 2013
37Requires:       texlive >= 2013
38
39BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
40
41Distribution:   Vine
42Vendor:         Project Vine
43Packager:       munepi
44
45
46%description
47TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents,
48with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
49simple interface accessible to casual and non-technical users.
50
51You may install the texlive-* packages to make this program useful.
52
53%description -l ja
54TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。
55ユニコードベースで編集する TeX に特化したエディタに、
56PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの
57簡潔で操作しやすいインタフェースを備えています。
58
59TeXworks を利用するためには、TeX 環境が必要です。
60
61
62%prep
63%setup -q
64
65%patch100 -p1 -b .vine
66
67## added some Japanese templates
68%if %{templates_japanese}
69%__tar xf %{SOURCE50}
70%__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1
71patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1
72%endif
73
74%build
75%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
76%__make %{?_smp_mflags}
77
78
79%install
80%__rm -rf %{buildroot}
81%__make install INSTALL_ROOT=%{buildroot}
82
83
84%clean
85%__rm -rf %{buildroot}
86
87%post
88update-desktop-database &> /dev/null || :
89
90%postun
91update-desktop-database &> /dev/null || :
92
93%files
94%defattr(-,root,root,-)
95%{_docdir}/%{name}-%{version}/
96%{_bindir}/%{name}
97%{_datadir}/applications/%{name}.desktop
98%{_datadir}/pixmaps/*
99# %dir %{_datadir}/texworks-help
100# %{_datadir}/texworks-help/*
101%{_mandir}/man1/texworks.1.gz
102
103%changelog
104* Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302
105- source snapshot r1302
106- added BuildRequires: lua-devel
107
108* Fri Mar  9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950
109- rebuild with hunspell-devel
110
111* Sun Dec  4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950
112- source snapshot r950
113- updated pdfplatex.sh
114  - support SyncTeX
115- TeX Live 2011
116
117* Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
118- new upstream release
119- added BuildRequires: texlive-common
120- added Requires: texlive-common
121
122* Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
123- added some Japanese templates
124
125* Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
126- new upstream release
127
128* Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
129- new upstream release
130
131* Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
132- source snapshot r724
133
134* Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
135- source snapshot r671
136  - dropped obsolete/upstreamed patches
137- added texworks-snapshot.sh
138
139* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
140- initial build
141
142* Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
143- Move to menu category 'Office'
144- License tag revised to 'GPLv2+'
145- Initial import to Fedora repositories
146
147* Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
148- Fix some strange characters in README
149- Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
150  problem
151
152* Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
153- Initial packaging
Note: See TracBrowser for help on using the repository browser.