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

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

dropped R/BR: texlive

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