source: projects/specs/branches/6/t/texworks/texworks-vl.spec @ 5884

Revision 5884, 4.7 KB checked in by munepi, 12 years ago (diff)

rebuild with hunspell-devel

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