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

Revision 9582, 5.0 KB checked in by munepi, 9 years ago (diff)

new upstream release

Line 
1%global gitcommit 046b6bb
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:        5%{?gitcommit:.git%gitcommit}%{?_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:        %{name}-%{version}%{?gitcommit:.git%gitcommit}.tar.%{?gitcommit:xz}%{!?gitcommit:gz}
17
18# Desktop file adopted from Debian with modification
19Source1:        %{name}.desktop
20
21## vine
22%if %{templates_japanese}
23Source50:       texworks-templates-japanese-%{templates_japanese_version}.tar.xz
24%endif
25
26## vine
27Patch101:       texworks-0.4.6-addDefaultBinPaths.patch
28Patch100:       texworks-0.4.6-ptex2pdf.patch
29
30BuildRequires:  cmake >= 2.8.6
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%patch101 -p1 -b .vine
65
66## added some Japanese templates
67%if %{templates_japanese}
68%__tar xf %{SOURCE50}
69%__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1
70patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1
71%endif
72
73%build
74%cmake . \
75  -DWITH_PYTHON=OFF \
76  -DWITH_LUA=OFF \
77  ;
78%__make %{?_smp_mflags}
79
80
81%install
82%__rm -rf %{buildroot}
83%__make install DESTDIR=%{buildroot}
84
85## install document files
86%__mkdir_p %{buildroot}%{_docdir}/%{name}-%{version}
87
88## drop some files
89%__rm -f %{buildroot}/usr/lib/texworks/libTWLuaPlugin.so
90%__rm -f %{buildroot}%{_datadir}/doc/texworks/COPYING
91%__rm -f %{buildroot}%{_datadir}/doc/texworks/NEWS
92%__rm -f %{buildroot}%{_datadir}/doc/texworks/README.md
93
94
95%clean
96%__rm -rf %{buildroot}
97
98%post
99update-desktop-database &> /dev/null || :
100
101%postun
102update-desktop-database &> /dev/null || :
103
104%files
105%defattr(-,root,root,-)
106%doc COPYING NEWS README.md
107%{_bindir}/%{name}
108%{_datadir}/applications/%{name}.desktop
109%{_datadir}/appdata/%{name}.appdata.xml
110%{_datadir}/pixmaps/*
111%{_mandir}/man1/texworks.1.gz
112
113%changelog
114* Thu May 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-5.git046b6bb
115- source snapshot git046b6bb based on 0.4.6
116
117* Sat Nov  2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
118- dropped R/BR: texlive
119
120* Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302
121- source snapshot r1302
122- added BuildRequires: lua-devel
123
124* Fri Mar  9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950
125- rebuild with hunspell-devel
126
127* Sun Dec  4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950
128- source snapshot r950
129- updated pdfplatex.sh
130  - support SyncTeX
131- TeX Live 2011
132
133* Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
134- new upstream release
135- added BuildRequires: texlive-common
136- added Requires: texlive-common
137
138* Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
139- added some Japanese templates
140
141* Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
142- new upstream release
143
144* Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
145- new upstream release
146
147* Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
148- source snapshot r724
149
150* Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
151- source snapshot r671
152  - dropped obsolete/upstreamed patches
153- added texworks-snapshot.sh
154
155* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
156- initial build
157
158* Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
159- Move to menu category 'Office'
160- License tag revised to 'GPLv2+'
161- Initial import to Fedora repositories
162
163* Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
164- Fix some strange characters in README
165- Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
166  problem
167
168* Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
169- Initial packaging
Note: See TracBrowser for help on using the repository browser.