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

Revision 1539, 3.5 KB checked in by munepi, 14 years ago (diff)

updated texworks-vl.spec: corrected Summary: and Distribution: tags

Line 
1%define _qt4_qmake              %{_libdir}/qt4/bin/qmake
2
3## Summary/Description adopted from Debian with modification
4
5Name:           texworks
6Version:        0.2.3
7Release:        2%{?_dist_release}
8Summary:        An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
9Summary(ja):     TeX ドキュメント制作のための総合環境
10
11Group:          Applications/Editors
12License:        GPLv2+
13URL:            http://tug.org/texworks/
14Source0:        http://texworks.googlecode.com/files/%{name}-%{version}.tar.gz
15# Desktop file adopted from Debian with modification
16Source1:        %{name}.desktop
17
18## vine
19Source100:      pdfplatex.sh
20Source101:      pdfeplatex.sh
21
22# Fix some strange characters in README
23# applied in upstream svn629
24Patch0:         texworks-0.2.3-README-UTF8.patch
25
26# Use qmake mechanism to install files and fix DSO linking problem
27# DSO linking related part applied in upstream svn637
28Patch1:         TeXworks-pro-install.patch
29
30## vine
31Patch100:       texworks-0.2.3-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 Linux
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%patch0 -p0 -b .fix
64%patch1 -p1 -b .fix
65
66%patch100 -p1 -b .vine
67
68
69%build
70%_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
71%__make %{?_smp_mflags}
72
73
74%install
75%__rm -rf %{buildroot}
76%__make install INSTALL_ROOT=%{buildroot}
77
78%__mkdir_p %{buildroot}%{_datadir}/applications
79desktop-file-install \
80    --dir $RPM_BUILD_ROOT%{_datadir}/applications \
81    %{SOURCE1}
82
83## support platex/eplatex via dvipdfmx
84%__install -m755 -D %{SOURCE100} %{buildroot}%{_bindir}/pdfplatex
85%__install -m755 -D %{SOURCE101} %{buildroot}%{_bindir}/pdfeplatex
86
87
88%clean
89%__rm -rf %{buildroot}
90
91%post
92update-desktop-database &> /dev/null || :
93
94%postun
95update-desktop-database &> /dev/null || :
96
97%files
98%defattr(-,root,root,-)
99%{_docdir}/%{name}-%{version}/
100%{_bindir}/%{name}
101%{_bindir}/pdfplatex
102%{_bindir}/pdfeplatex
103%{_datadir}/%{name}/
104%{_datadir}/applications/%{name}.desktop
105%{_datadir}/pixmaps/*
106
107
108%changelog
109* Xxx Yyy Zz 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-2
110- corrected Summary: and Distribution:
111
112* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
113- initial build
114
115* Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
116- Move to menu category 'Office'
117- License tag revised to 'GPLv2+'
118- Initial import to Fedora repositories
119
120* Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
121- Fix some strange characters in README
122- Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
123  problem
124
125* Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
126- Initial packaging
Note: See TracBrowser for help on using the repository browser.