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

Revision 1977, 3.4 KB checked in by munepi, 14 years ago (diff)

updated texworks-vl.spec

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