]> git.pld-linux.org Git - packages/tetex-latex-beamer.git/blob - tetex-latex-beamer.spec
- added subpackage lyx with LyX layout and templates
[packages/tetex-latex-beamer.git] / tetex-latex-beamer.spec
1 #
2 # TODO:
3 # - package emacs and LyX files
4 #
5 %define short_name      beamer
6 %define texhash         [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 ;
7 #
8 Summary:        A LaTeX class for producing beamer presentations
9 Summary(pl):    Klasa LaTeXa do tworzenia prezentacji rzutnikowych
10 Name:           tetex-latex-beamer
11 Version:        3.06
12 Release:        1
13 License:        GPL
14 Group:          Applications/Publishing/TeX
15 Source0:        http://dl.sourceforge.net/latex-beamer/latex-beamer-%{version}.tar.gz
16 # Source0-md5:  ab7eeb972d75e758117460aabdddb1e6
17 Requires:       tetex-latex
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)
23
24 %description
25 A LaTeX class for producing beamer presentations.
26
27 %description -l pl
28 Klasa LaTeXa do tworzenia prezentacji rzutnikowych.
29
30 %package examples
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}
35
36 %description examples
37 Example presentations created using the LaTeX Beamer class.
38
39 %description examples -l pl
40 Przyk³adowe prezentacje stworzone z wykorzystaniem klasy LaTeX Beamer.
41
42 %package lyx
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}
47 Requires:       lyx
48
49 %description lyx
50 LyX templates for the LaTeX Beamer class.
51
52 %description lyx -l pl
53 Szablony klasy LateX Beamer dla programu LyX.
54
55 %prep
56 %setup -q -n latex-%{short_name}-%{version}
57
58 %install
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
63
64 cp -ar base emulation extensions themes $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/%{short_name}
65
66 cp -ar examples/* solutions $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
67
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
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 %texhash
77
78 %postun
79 %texhash
80
81 %files
82 %defattr(644,root,root,755)
83 %doc AUTHORS ChangeLog doc/*.pdf README TODO
84 %{_datadir}/texmf/tex/latex/%{short_name}
85
86 %files examples
87 %defattr(644,root,root,755)
88 %{_examplesdir}/%{name}-%{version}
89
90 %files lyx
91 %defattr(644,root,root,755)
92 %{_datadir}/lyx/layouts/beamer.layout
93 %{_datadir}/lyx/templates/*
This page took 0.051506 seconds and 4 git commands to generate.