]>
Commit | Line | Data |
---|---|---|
a4ec12d3 | 1 | %define short_name beamer |
2 | %define texhash [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 ; | |
8307f3cf | 3 | # |
b06e8040 | 4 | Summary: A LaTeX class for producing beamer presentations |
4ea8976d | 5 | Summary(pl.UTF-8): Klasa LaTeXa do tworzenia prezentacji rzutnikowych |
b06e8040 | 6 | Name: tetex-latex-beamer |
93a47683 | 7 | Version: 3.06 |
eadf5a52 | 8 | Release: 1 |
b06e8040 MM |
9 | License: GPL |
10 | Group: Applications/Publishing/TeX | |
11 | Source0: http://dl.sourceforge.net/latex-beamer/latex-beamer-%{version}.tar.gz | |
93a47683 | 12 | # Source0-md5: ab7eeb972d75e758117460aabdddb1e6 |
3d8db146 ER |
13 | URL: http://latex-beamer.sourceforge.net/ |
14 | Requires(post,postun): /usr/bin/texhash | |
b06e8040 | 15 | Requires: tetex-latex |
e3cfbd15 | 16 | Requires: tetex-latex-xcolor >= 2.00 |
b6e8bc5a | 17 | Requires: tetex-pgf >= 0.95 |
b06e8040 MM |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | A LaTeX class for producing beamer presentations. | |
22 | ||
c26d0581 | 23 | %description -l pl.UTF-8 |
5f8f175a MM |
24 | Klasa LaTeXa do tworzenia prezentacji rzutnikowych. |
25 | ||
e3cfbd15 | 26 | %package examples |
27 | Summary: Example presentations created using the LaTeX Beamer class | |
4ea8976d | 28 | Summary(pl.UTF-8): Przykładowe prezentacje stworzone z wykorzystaniem klasy LaTeX Beamer |
e3cfbd15 | 29 | Group: Applications/Publishing/TeX |
a4ec12d3 | 30 | Requires: %{name} = %{version}-%{release} |
e3cfbd15 | 31 | |
32 | %description examples | |
33 | Example presentations created using the LaTeX Beamer class. | |
34 | ||
c26d0581 JR |
35 | %description examples -l pl.UTF-8 |
36 | Przykładowe prezentacje stworzone z wykorzystaniem klasy LaTeX Beamer. | |
e3cfbd15 | 37 | |
8d51f20a | 38 | %package lyx |
39 | Summary: LyX templates for the LaTeX Beamer class | |
4ea8976d | 40 | Summary(pl.UTF-8): Szablony klasy LateX Beamer dla programu LyX |
ee6bcdb1 | 41 | Group: Applications/Publishing/TeX |
8d51f20a | 42 | Requires: %{name} = %{version}-%{release} |
43 | Requires: lyx | |
44 | ||
45 | %description lyx | |
46 | LyX templates for the LaTeX Beamer class. | |
47 | ||
c26d0581 | 48 | %description lyx -l pl.UTF-8 |
8d51f20a | 49 | Szablony klasy LateX Beamer dla programu LyX. |
50 | ||
c5eb7b7d | 51 | %package emacs |
ea34bbe4 | 52 | Summary: Emacs mode for the LaTeX Beamer class |
4ea8976d | 53 | Summary(pl.UTF-8): Emacsowy tryb edycji plików LaTeX z klasą Beamer |
c5eb7b7d | 54 | Group: Applications/Publishing/TeX |
55 | Requires: %{name} = %{version}-%{release} | |
56 | Requires: emacs-common | |
57 | ||
58 | %description emacs | |
59 | Emacs mode for the LaTeX Beamer class. | |
60 | ||
c26d0581 JR |
61 | %description emacs -l pl.UTF-8 |
62 | Emacsowy tryb edycji plików źródłowych LaTeXa znający klasę Beamer. | |
c5eb7b7d | 63 | |
b06e8040 | 64 | %prep |
eadf5a52 | 65 | %setup -q -n latex-%{short_name}-%{version} |
b06e8040 MM |
66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
8307f3cf | 69 | install -d $RPM_BUILD_ROOT{%{_datadir}/texmf/tex/latex/%{short_name},%{_examplesdir}/%{name}-%{version}} |
8d51f20a | 70 | install -d $RPM_BUILD_ROOT%{_datadir}/lyx/{layouts,templates} |
71 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/lyx | |
c5eb7b7d | 72 | install -d $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d |
b06e8040 | 73 | |
62c34774 | 74 | cp -a base emulation extensions themes $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/%{short_name} |
b06e8040 | 75 | |
62c34774 | 76 | cp -a examples/* solutions $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
e3cfbd15 | 77 | |
8d51f20a | 78 | mv $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/solutions/*/*.lyx $RPM_BUILD_ROOT%{_datadir}/lyx/templates |
62c34774 ER |
79 | cp -a lyx/layouts/beamer.layout $RPM_BUILD_ROOT%{_datadir}/lyx/layouts |
80 | cp -a lyx/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/lyx | |
8d51f20a | 81 | |
62c34774 | 82 | cp -a emacs/beamer.el $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d |
c5eb7b7d | 83 | |
b06e8040 MM |
84 | %clean |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post | |
88 | %texhash | |
89 | ||
90 | %postun | |
91 | %texhash | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
c684a267 | 95 | %doc AUTHORS ChangeLog doc/*.pdf README TODO |
b06e8040 | 96 | %{_datadir}/texmf/tex/latex/%{short_name} |
e3cfbd15 | 97 | |
98 | %files examples | |
99 | %defattr(644,root,root,755) | |
100 | %{_examplesdir}/%{name}-%{version} | |
8d51f20a | 101 | |
102 | %files lyx | |
103 | %defattr(644,root,root,755) | |
104 | %{_datadir}/lyx/layouts/beamer.layout | |
105 | %{_datadir}/lyx/templates/* | |
c5eb7b7d | 106 | |
107 | %files emacs | |
108 | %defattr(644,root,root,755) | |
109 | %{_datadir}/emacs/site-lisp/site-start.d/* |