File latex-pgf.spec of Package latex-pgf

#
# spec file for package latex-pgf 
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           latex-pgf
Version:        1.01
Release:        1
Summary:        Create PostScript and PDF graphics in TeX
Group:          Applications/Publishing
License:        LaTeX Project Public License
Url:            https://sourceforge.net/projects/latex-beamer/
Source0:        pgf-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       latex-xcolor
%if 0%{?suse_version} <= 1020
BuildRequires:  te_latex
Requires:       te_latex
Requires(pre):  te_latex
Requires(post): te_latex
%else
BuildRequires:  texlive-latex
Requires:       texlive
Requires(pre):  texlive
Requires(post): texlive
%endif

%description
pgf stands for `portable graphics format'. It is a TeX macro package
that allows you to create graphics in your TeX documents using a special
pgfpicture environment and special macros for drawing lines, curves,
rectangles, and many other kind of graphic objects. Its usage closely
resembles the pstricks package or the normal picture environment of
LaTeX.

Although pgf is less powerful than \pstricks, it has the advantage that
it can generate both PostScript output and pdf output from the same
file. The pgf package works together both with dvips and pdftex. In
particular, packages that rely on pdftex or pdflatex (like some packages
for creating presentations) can be used together with pgf.

%prep
%setup -q -n pgf-%{version}

%build

%install
install -d -m 755 %buildroot%{_datadir}/texmf/tex
install -d -m 755 %buildroot%{_defaultdocdir}/%{name}
cp -a * %buildroot%{_datadir}/texmf/tex/
# install documentation
pushd %buildroot%{_datadir}/texmf/tex/doc/generic/pgf/ 1>/dev/null
mv AUTHORS ChangeLog FILES README TODO %buildroot%{_defaultdocdir}/%{name}/
mv version-for-pdftex/en/pgfmanual.pdf %buildroot%{_defaultdocdir}/%{name}/
popd 1>/dev/null
# remove the rest of the documentation - the above should be enough
rm -rf %buildroot%{_datadir}/texmf/tex/doc
rm %buildroot%{_datadir}/texmf/tex/README

%clean
rm -rf %buildroot

%post
texhash >/dev/null 2>&1 || :

%postun
texhash >/dev/null 2>&1 || :

%files
%defattr(-,root,root,-)
%doc %{_defaultdocdir}/%{name}
%{_datadir}/texmf/tex/*/pgf/*

%changelog
* Wed May 16 2007 - lars@suse.de
- initial version 1.01
openSUSE Build Service is sponsored by