1 %define short_name circuitikz
2 %define texhash [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 ;
4 Summary: CircuiTikz is a set of LaTeX macros designed to make it easy to draw electrical networks in scientific publications
5 Summary(hu.UTF-8): A CircuiTikz LaTeX makrók gyűjteménye, amelyek elektromos hálózatok könnyű rajzolására készült.
6 Summary(pl.UTF-8): Zestaw makr LaTeXa do rysowania schematów sieci elektrycznych
7 Name: texlive-latex-%{short_name}
10 License: LaTeX Project Public License
11 Group: Applications/Publishing/TeX
12 URL: http://home.dei.polimi.it/mredaelli/circuitikz/index.html
13 Source0: http://home.dei.polimi.it/mredaelli/downloads/circuitikz.zip
14 # Source0-md5: 45f4bf3eb88812f1dfacaed0c92f9d8b
16 Requires(post,postun): /usr/bin/texhash
17 Requires: texlive-latex
18 Requires: texlive-latex-pgf
19 Obsoletes: tetex-latex-%{short_name}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 CircuiTikz is a set of LaTeX macros designed to make it easy to draw
25 electrical networks in scientific publications.
27 %description -l hu.UTF-8
28 A CircuiTikz Latex makrók gyűjteménye, amelyek elektromos hálózatok
29 könnyű rajzolására készült.
31 %description -l pl.UTF-8
32 CircuiTikz jest zbiorem makr LaTeXa mającym ułatwić rysowanie shematów
33 sieci elektrycznych w publikacjach naukowych.
39 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT%{_datadir}/texmf-dist/tex/latex/%{short_name}
42 install tex/latex/%{short_name}/* $RPM_BUILD_ROOT%{_datadir}/texmf-dist/tex/latex/%{short_name}
44 install -d $RPM_BUILD_ROOT%{_datadir}/texmf-dist/doc/latex/%{short_name}
45 install doc/latex/%{short_name}/* $RPM_BUILD_ROOT%{_datadir}/texmf-dist/doc/latex/%{short_name}
48 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
58 %doc %{_datadir}/texmf-dist/doc/latex/%{short_name}
59 %{_datadir}/texmf-dist/tex/latex/%{short_name}