]>
Commit | Line | Data |
---|---|---|
5dcd8cb1 TP |
1 | # |
2 | # TODO: - use system hunspell | |
3 | # | |
6b635d9f | 4 | Summary: LaTeX development environment |
b29f4beb | 5 | Summary(pl.UTF-8): Środowisko do tworzenia dokumentów LaTeXa |
6b635d9f | 6 | Name: texmaker |
0ed72c1e | 7 | Version: 1.9.2 |
5dcd8cb1 | 8 | Release: 1 |
6b635d9f | 9 | License: GPL |
5dcd8cb1 | 10 | Group: X11/Applications/Publishing |
6b635d9f | 11 | Source0: http://www.xm1math.net/texmaker/%{name}-%{version}.tar.bz2 |
0ed72c1e | 12 | # Source0-md5: 61842ccacf7d843e497aa74f7135d04a |
6b635d9f | 13 | Source1: %{name}.desktop |
14 | URL: http://www.xm1math.net/texmaker/ | |
5dcd8cb1 TP |
15 | BuildRequires: qt4-build |
16 | BuildRequires: qt4-qmake | |
17 | BuildRequires: QtGui-devel | |
6b635d9f | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | Texmaker is a free LaTeX editor, that integrates many tools needed to | |
22 | develop documents with LaTeX, in just one application. | |
23 | ||
9ba10fe1 JR |
24 | %description -l pl.UTF-8 |
25 | Texmaker to darmowy edytor LaTeXa, który łączy wiele narzędzi | |
26 | potrzebnych do tworzenia dokumentów LaTeXa w jednej aplikacji. | |
6b635d9f | 27 | |
28 | %prep | |
29 | %setup -q | |
30 | ||
31 | %build | |
32 | export QTDIR="%{_prefix}" | |
5dcd8cb1 | 33 | qmake-qt4 -unix texmaker.pro \ |
6b7c1b04 | 34 | PREFIX="%{_prefix}" \ |
0ed72c1e | 35 | QMAKE_CXXFLAGS="%{rpmcflags}" |
6b635d9f | 36 | %{__make} |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_pixmapsdir},%{_desktopdir},%{_datadir}/texmaker} | |
6b7c1b04 | 41 | |
6b635d9f | 42 | install %{name} $RPM_BUILD_ROOT%{_bindir} |
0ed72c1e TP |
43 | install utilities/{*.gif,*.png,psheader.txt} dictionaries/{*.aff,*.dic} locale/*.qm \ |
44 | $RPM_BUILD_ROOT%{_datadir}/texmaker | |
45 | cd doc | |
46 | for i in *; do | |
47 | ln -s %{_docdir}/%{name}-%{version}/doc/$i $RPM_BUILD_ROOT%{_datadir}/texmaker | |
5dcd8cb1 | 48 | done |
0ed72c1e | 49 | cd .. |
6b635d9f | 50 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
51 | install utilities/texmaker32x32.png $RPM_BUILD_ROOT%{_pixmapsdir}/texmaker.png | |
0ed72c1e | 52 | install utilities/texmaker.svg $RPM_BUILD_ROOT%{_pixmapsdir} |
6b635d9f | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
0ed72c1e | 59 | %doc utilities/AUTHORS utilities/CHANGELOG.txt dictionaries/*.txt doc |
e71d1072 | 60 | %attr(755,root,root) %{_bindir}/* |
5dcd8cb1 TP |
61 | %dir %{_datadir}/%{name} |
62 | %{_datadir}/%{name}/en_GB.* | |
0ed72c1e TP |
63 | %lang(de) %{_datadir}/%{name}/de_DE.* |
64 | %lang(es) %{_datadir}/%{name}/es_ES.* | |
5dcd8cb1 | 65 | %lang(fr) %{_datadir}/%{name}/fr_FR.* |
0ed72c1e TP |
66 | %lang(it) %{_datadir}/%{name}/it_IT.* |
67 | %lang(ca) %{_datadir}/%{name}/texmaker_ca.qm | |
68 | %lang(de) %{_datadir}/%{name}/texmaker_de.qm | |
69 | %lang(es) %{_datadir}/%{name}/texmaker_es.qm | |
70 | %lang(fa) %{_datadir}/%{name}/texmaker_fa.qm | |
5dcd8cb1 | 71 | %lang(fr) %{_datadir}/%{name}/texmaker_fr.qm |
0ed72c1e TP |
72 | %lang(gl) %{_datadir}/%{name}/texmaker_gl.qm |
73 | %lang(it) %{_datadir}/%{name}/texmaker_it.qm | |
74 | %lang(pt) %{_datadir}/%{name}/texmaker_pt_BR.qm | |
75 | %lang(ru) %{_datadir}/%{name}/texmaker_ru.qm | |
76 | %lang(zh_CN) %{_datadir}/%{name}/texmaker_zh_CN.qm | |
77 | %lang(zh_TW) %{_datadir}/%{name}/texmaker_zh_TW.qm | |
5dcd8cb1 TP |
78 | %{_datadir}/%{name}/*.html |
79 | %{_datadir}/%{name}/*.gif | |
80 | %{_datadir}/%{name}/*.png | |
81 | %{_datadir}/%{name}/*.txt | |
b3599aa8 | 82 | %{_desktopdir}/*.desktop |
6b635d9f | 83 | %{_pixmapsdir}/* |