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

Revision 3231, 3.7 KB checked in by munepi, 13 years ago (diff)

updated texworks-vl.spec

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