%{!?_rpmtexmf: %define _rpmtexmf %(eval "echo `kpsewhich -expand-var '$TEXMFLOCAL'`")} %{!?_tetexrpm: %define _tetexrpm 0} %define _texmf %{_rpmtexmf} %define ctanpath tex-archive/macros/latex/contrib/aastex.zip %define ctandate 20050622 %define texname aastex %define texpkgdir %{_texmf}/tex/latex/%{texname} %define texpkgdoc %{_texmf}/doc/latex/%{texname} Name: tetex-%{texname} Version: 5.2 Release: 0%{?dist} Summary: Macros for Manuscript Preparation for AAS Journals Group: TeX/Scientific License: LPPL URL: http://www.ctan.org/tex-archive/help/Catalogue/entries/aastex.html Source: ftp://cam.ctan.org/tex-archive/macros/latex/contrib/aastex.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: /usr/bin/kpsewhich Requires: tetex-latex %if %{_tetexrpm} Requires: tetexrpm %endif Requires(post): /usr/bin/texhash Requires(postun): /usr/bin/texhash %description AASTeX is a LaTeX-based package that can be used to mark up manuscripts for American Astronomical Society (AAS) journals. AASTeX enables you to prepare manuscripts and tables for electronic submission to the The Astrophysical Journal and The Astronomical Journal, as well as some non-AAS journals like the Publications of the Astronomical Society of the Pacific. %prep %setup -q -n %{texname} %build cd src latex aasclass.dtx makeindex -s gind.ist aasclass.idx latex aasclass.dtx latex aasclass.dtx latex aasclass.ins cd .. %install rm -rf %buildroot && mkdir -p %{buildroot} install -d -m 755 %buildroot%{texpkgdir} install -d -m 755 %buildroot%{texpkgdoc} install -p -m 644 src/*.{cls,sty} %buildroot%{texpkgdir}/ install -p -m 644 docs/* %buildroot%{texpkgdoc}/ install -p -m 644 src/{Read.Me,aasclass.dvi,aasclass.tex} %buildroot%{texpkgdoc}/ install -p -m 644 samples/* %buildroot%{texpkgdoc}/ %clean rm -rf %buildroot %post texhash > /dev/null 2>&1 || : %postun if [ "$1" = "0" ]; then texhash > /dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %{texpkgdir} %{texpkgdoc} %changelog * Wed Nov 22 2006 Alok Singhal - 5.2-0 - Initial spec file for tetexrpm