3 # - package emacs and LyX files
5 %define short_name beamer
6 %define texhash [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 ;
8 Summary: A LaTeX class for producing beamer presentations
9 Summary(pl): Klasa LaTeXa do tworzenia prezentacji rzutnikowych
10 Name: tetex-latex-beamer
14 Group: Applications/Publishing/TeX
15 Source0: http://dl.sourceforge.net/latex-beamer/latex-beamer-%{version}.tar.gz
16 # Source0-md5: ab7eeb972d75e758117460aabdddb1e6
18 Requires: tetex-latex-xcolor >= 2.00
19 Requires: tetex-pgf >= 0.95
20 Requires(post,postun): /usr/bin/texhash
21 URL: http://latex-beamer.sf.net/
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 A LaTeX class for producing beamer presentations.
28 Klasa LaTeXa do tworzenia prezentacji rzutnikowych.
31 Summary: Example presentations created using the LaTeX Beamer class
32 Summary(pl): Przyk³adowe prezentacje stworzone z wykorzystaniem klasy LaTeX Beamer
33 Group: Applications/Publishing/TeX
34 Requires: %{name} = %{version}-%{release}
37 Example presentations created using the LaTeX Beamer class.
39 %description examples -l pl
40 Przyk³adowe prezentacje stworzone z wykorzystaniem klasy LaTeX Beamer.
43 Summary: LyX templates for the LaTeX Beamer class
44 Summary(pl): Szablony klasy LateX Beamer dla programu LyX
45 Group: Applications/Publishing/TeX
46 Requires: %{name} = %{version}-%{release}
50 LyX templates for the LaTeX Beamer class.
52 %description lyx -l pl
53 Szablony klasy LateX Beamer dla programu LyX.
56 %setup -q -n latex-%{short_name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_datadir}/texmf/tex/latex/%{short_name},%{_examplesdir}/%{name}-%{version}}
61 install -d $RPM_BUILD_ROOT%{_datadir}/lyx/{layouts,templates}
62 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/lyx
64 cp -ar base emulation extensions themes $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/%{short_name}
66 cp -ar examples/* solutions $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
68 mv $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/solutions/*/*.lyx $RPM_BUILD_ROOT%{_datadir}/lyx/templates
69 cp -ar lyx/layouts/beamer.layout $RPM_BUILD_ROOT%{_datadir}/lyx/layouts
70 cp -ar lyx/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/lyx
73 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog doc/*.pdf README TODO
84 %{_datadir}/texmf/tex/latex/%{short_name}
87 %defattr(644,root,root,755)
88 %{_examplesdir}/%{name}-%{version}
91 %defattr(644,root,root,755)
92 %{_datadir}/lyx/layouts/beamer.layout
93 %{_datadir}/lyx/templates/*