SampleSpecs/texmf-latex

Материал из ALT Linux Wiki

Пример спека для модуля TEXMF (макропакет LaTeX)

Подробнее см. TeXPolicy

%define srcName sample

Name: texmf-latex-%srcName
Version: 0.1
Release: alt1
Summary: Sample spec for texmf-latex module
License: %lppl
Group: Publishing
Url: http://www.ctan.org/
Packager: Kirill Maslinsky <kirill@altlinux.org>

BuildArch: noarch

BuildRequires(pre): rpm-build-texmf rpm-build-licenses
BuildRequires: ctanify texlive-latex-base

Source0: %srcName-%version.tar

%description
Long description here.
CTAN package info page is a good source for description in English.

%prep
%setup -n %srcName-%version

%build
latex %srcName.ins
latex %srcName.dtx
latex %srcName.dtx

%install
mkdir -p %buildroot%_texmfmain
# ctanify is not universal, but is a recommended way to create TEXMF file layouts 
# for packages. Adjustments may be necessary in some cases, see ctanify(1) for more info.
ctanify --pkgname=%srcName --tdsoutdir=%buildroot/%_texmfmain *

%files
%_texmfmain/*

%changelog
* Thu Jun 11 2009 Kirill Maslinsky <kirill@altlinux.ru> 0.1-alt1
- initial revision