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

Revision 7878, 4.9 KB checked in by munepi, 11 years ago (diff)

new upstream release

Line 
1#% global svnrevision 773
2#% global templates_japanese 1
3%global templates_japanese_version 20110626
4
5%global _qt4_qmake              %{_libdir}/qt4/bin/qmake
6
7## Summary/Description adopted from Debian with modification
8
9Name:           texworks
10Version:        0.4.5
11Release:        1%{?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/texworks-0.4.5-r1281.tar.gz
20# Desktop file adopted from Debian with modification
21Source1:        %{name}.desktop
22
23## vine
24Source10:       texworks-snapshot.sh
25%if 0%{?templates_japanese}
26Source50:       texworks-templates-japanese-%{templates_japanese_version}.tar.xz
27%endif
28Source100:      pdfplatex.sh
29Source101:      pdfeplatex.sh
30
31## vine
32Patch0:         texworks-0.4.5-ptex2pdf.patch
33Patch1:       texworks-0.4.5-pdfplatex-vine.patch
34
35BuildRequires:  hunspell-devel
36BuildRequires:  dbus-devel
37BuildRequires:  poppler-qt4-devel
38BuildRequires:  desktop-file-utils
39
40BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
41
42Distribution:   Vine
43Vendor:         Project Vine
44Packager:       munepi
45
46
47%description
48TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents,
49with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
50simple interface accessible to casual and non-technical users.
51
52You may install the texlive-* packages to make this program useful.
53
54%description -l ja
55TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。
56ユニコードベースで編集する TeX に特化したエディタに、
57PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの
58簡潔で操作しやすいインタフェースを備えています。
59
60TeXworks を利用するためには、TeX 環境が必要です。
61
62
63%prep
64%setup -q
65
66%patch0 -p1 -b .ptex2pdf
67%patch1 -p1 -b .vine
68
69## added some Japanese templates
70%if 0%{?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
105%files
106%defattr(-,root,root,-)
107%{_docdir}/%{name}-%{version}/
108%{_bindir}/%{name}
109%{_bindir}/pdfplatex
110%{_bindir}/pdfeplatex
111%{_datadir}/applications/%{name}.desktop
112%{_datadir}/pixmaps/*
113%dir %{_datadir}/texworks-help
114%{_datadir}/texworks-help/*
115%{_mandir}/man1/texworks.1.gz
116
117%changelog
118* Mon Oct  7 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-1
119- dropped Requires: texlive-common and BuildRequires: texlive-common
120
121* Sun Mar 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-2
122- rebuild with hunspell-devel
123
124* Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
125- new upstream release
126- added BuildRequires: texlive-common
127- added Requires: texlive-common
128
129* Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
130- added some Japanese templates
131
132* Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
133- new upstream release
134
135* Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
136- new upstream release
137
138* Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
139- source snapshot r724
140
141* Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
142- source snapshot r671
143  - dropped obsolete/upstreamed patches
144- added texworks-snapshot.sh
145
146* Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
147- initial build
148
149* Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
150- Move to menu category 'Office'
151- License tag revised to 'GPLv2+'
152- Initial import to Fedora repositories
153
154* Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
155- Fix some strange characters in README
156- Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
157  problem
158
159* Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
160- Initial packaging
Note: See TracBrowser for help on using the repository browser.