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

Revision 4222, 4.3 KB checked in by munepi, 13 years ago (diff)

updated texworks-vl.spec

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