]> git.pld-linux.org Git - SPECS.git/blob - tetex-pgf.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / tetex-pgf.spec
1
2 %define short_name pgf
3 %define texhash [ ! -x %{_bindir}/texhash ] || %{_bindir}/texhash 1>&2 ;
4
5 # TODO:
6 # Pack more files ? (documentation sources as examples)
7
8 Summary:        The TeX Portable Graphic Format
9 Summary(hu.UTF-8):      TeX Portable Graphic Formátum
10 Summary(pl.UTF-8):      Przenośny format grafiki dla TeXa
11 Name:           tetex-pgf
12 Version:        2.00
13 Release:        1
14 License:        LaTeX Project Public License
15 Group:          Applications/Publishing/TeX
16 Source0:        http://dl.sourceforge.net/pgf/%{short_name}-%{version}.tar.gz
17 # Source0-md5:  fb8cb62462f8248e327bf23ee5b9ccda
18 URL:            http://sourceforge.net/projects/pgf/
19 Requires(post,postun):  /usr/bin/texhash
20 Requires:       tetex-latex
21 Requires:       tetex-latex-xcolor >= 2.00
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 A macro package for creating graphics directly in TeX and LaTeX.
26
27 %description -l hu.UTF-8
28 Makró csomag rajzok készítéséhez közvetlenül TeX-ben és LaTeX-ben.
29
30 %description -l pl.UTF-8
31 Pakiet makr do tworzenia grafiki bezpośrednio z TeXa i LaTeXa.
32
33 %prep
34 %setup -q -n %{short_name}-%{version}
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38
39 for SEC in generic latex plain; do
40         cd $SEC/%{short_name}
41         for DIR in $(find -type d); do
42                 install -d $RPM_BUILD_ROOT%{_datadir}/texmf/tex/$SEC/%{short_name}/$DIR
43                 FILES=$(find $DIR -maxdepth 1 -type f)
44                 if [ -n "$FILES" ]; then
45                         install $FILES $RPM_BUILD_ROOT%{_datadir}/texmf/tex/$SEC/%{short_name}/$DIR
46                 fi
47         done
48         cd ../..
49 done
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 %texhash
56
57 %postun
58 %texhash
59
60 %files
61 %defattr(644,root,root,755)
62 # TODO: create doc/generic/pgf/version-for-pdftex/en/pgfmanual.pdf
63 %doc doc/generic/pgf/AUTHORS doc/generic/pgf/ChangeLog doc/generic/pgf/README doc/generic/pgf/TODO
64 %{_datadir}/texmf/tex/generic/%{short_name}
65 %{_datadir}/texmf/tex/latex/%{short_name}
66 %{_datadir}/texmf/tex/plain/%{short_name}
This page took 0.524162 seconds and 3 git commands to generate.