Репозитории ALT
Группа :: Работа с текстами
Пакет: lout
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: lout
Version: 3.38
Release: alt1
Summary: The Lout document formatting language
License: GPL
Group: Text tools
Url: http://sourceforge.net/projects/lout/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
Source: %name-%version.tar.gz
Source1: %name-mode.el
Source2: fontdefs.ld
Source3: %name-3.29.user.ps.bz2
Requires: urw-fonts >= 2.0-alt9
BuildRequires(pre): rpm-build-fonts
BuildPreReq: emacs
%description
Lout is a high-level language for document formatting. Lout reads a
high-level description of a document (similar in style to LaTeX) and can
produce a PostScript(TM) file for printing or produce plain text.
Lout supports the typesetting of documents which contain floating
figures, table, diagrams, rotated and scaled text or graphics, footnotes,
running headers, footers, an index, a table of contents and bibliography,
cross-references, mathematical equations and statistical graphs. Lout can
be extended with definitions that should be easier to write than other
languages, since Lout is a high-level language. Lout supports (with
hyphenation) a variety of languages: Czech, Danish, Dutch, English,
Finnish, French, German, Norwegian, Russian, Slovenian, Spanish and
Swedish.
Install the lout package if you'd like to try the Lout document formatting
system. Unless you're already a Lout expert, you'll probably want to also
install the lout-doc package, which contains the documentation for Lout.
%package doc
Summary: The documentation for the Lout document formatting language
Group: Text tools
BuildArch: noarch
%description doc
The lout-doc package includes all of the documentation for the Lout
document formatting language. The documentation includes manuals for
regular users and for experts, written in Lout and available as
PostScript(TM) files. The documentation provides good examples for how to
write large documents with Lout.
If you're installing the lout package, you should install the lout-doc
package.
%prep
%setup
rm -f doc/user/.pie_intr.swp
cp %SOURCE2 data
cp %SOURCE3 .
%build
%ifarch x86_64
sed -i 's| at SUFF64 at |64|' makefile
%else
sed -i 's| at SUFF64 at ||' makefile
%endif
%make_build RPM_OPT_FLAGS="%optflags -U_FORTIFY_SOURCE" \
FONT_DIR="%_fontpathdir/type1" lout prg2lout
%install
install -d %buildroot%_bindir
install -d %buildroot%_libdir
install -d %buildroot%_datadir/locale
install -d %buildroot%_man1dir
install -d %buildroot%_docdir/%name
%make DESTDIR=%buildroot DATADIR=%_datadir install installman installdoc
(cd doc/user
../../lout all >user.ps
)
# emacs
mkdir -p %buildroot%_emacslispdir
install -m 644 %SOURCE1 %buildroot%_emacslispdir
emacs -batch -f batch-byte-compile %buildroot%_emacslispdir/%name-mode.el
install -d %buildroot%_sysconfdir/emacs/site-start.d
cat <<EOF >%buildroot%_sysconfdir/emacs/site-start.d/%name.el
(autoload 'lout-mode "lout-mode" "Major mode for editing Lout text" t)
(setq auto-mode-alist
(append '(("\\.lout\\'" . lout-mode)) auto-mode-alist))
EOF
install -m644 *.ps.bz2 %buildroot%_docdir/%name
%files
%doc blurb README maillist whatsnew
%_bindir/*
%_mandir/man?/*
%_libdir/%name
%exclude %_libdir/%name/font
%_emacslispdir/*
%_sysconfdir/emacs/site-start.d/*
%files doc
%doc %_docdir/%name
%changelog
…
Полный changelog можно просмотреть здесь
Version: 3.38
Release: alt1
Summary: The Lout document formatting language
License: GPL
Group: Text tools
Url: http://sourceforge.net/projects/lout/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>
Source: %name-%version.tar.gz
Source1: %name-mode.el
Source2: fontdefs.ld
Source3: %name-3.29.user.ps.bz2
Requires: urw-fonts >= 2.0-alt9
BuildRequires(pre): rpm-build-fonts
BuildPreReq: emacs
%description
Lout is a high-level language for document formatting. Lout reads a
high-level description of a document (similar in style to LaTeX) and can
produce a PostScript(TM) file for printing or produce plain text.
Lout supports the typesetting of documents which contain floating
figures, table, diagrams, rotated and scaled text or graphics, footnotes,
running headers, footers, an index, a table of contents and bibliography,
cross-references, mathematical equations and statistical graphs. Lout can
be extended with definitions that should be easier to write than other
languages, since Lout is a high-level language. Lout supports (with
hyphenation) a variety of languages: Czech, Danish, Dutch, English,
Finnish, French, German, Norwegian, Russian, Slovenian, Spanish and
Swedish.
Install the lout package if you'd like to try the Lout document formatting
system. Unless you're already a Lout expert, you'll probably want to also
install the lout-doc package, which contains the documentation for Lout.
%package doc
Summary: The documentation for the Lout document formatting language
Group: Text tools
BuildArch: noarch
%description doc
The lout-doc package includes all of the documentation for the Lout
document formatting language. The documentation includes manuals for
regular users and for experts, written in Lout and available as
PostScript(TM) files. The documentation provides good examples for how to
write large documents with Lout.
If you're installing the lout package, you should install the lout-doc
package.
%prep
%setup
rm -f doc/user/.pie_intr.swp
cp %SOURCE2 data
cp %SOURCE3 .
%build
%ifarch x86_64
sed -i 's| at SUFF64 at |64|' makefile
%else
sed -i 's| at SUFF64 at ||' makefile
%endif
%make_build RPM_OPT_FLAGS="%optflags -U_FORTIFY_SOURCE" \
FONT_DIR="%_fontpathdir/type1" lout prg2lout
%install
install -d %buildroot%_bindir
install -d %buildroot%_libdir
install -d %buildroot%_datadir/locale
install -d %buildroot%_man1dir
install -d %buildroot%_docdir/%name
%make DESTDIR=%buildroot DATADIR=%_datadir install installman installdoc
(cd doc/user
../../lout all >user.ps
)
# emacs
mkdir -p %buildroot%_emacslispdir
install -m 644 %SOURCE1 %buildroot%_emacslispdir
emacs -batch -f batch-byte-compile %buildroot%_emacslispdir/%name-mode.el
install -d %buildroot%_sysconfdir/emacs/site-start.d
cat <<EOF >%buildroot%_sysconfdir/emacs/site-start.d/%name.el
(autoload 'lout-mode "lout-mode" "Major mode for editing Lout text" t)
(setq auto-mode-alist
(append '(("\\.lout\\'" . lout-mode)) auto-mode-alist))
EOF
install -m644 *.ps.bz2 %buildroot%_docdir/%name
%files
%doc blurb README maillist whatsnew
%_bindir/*
%_mandir/man?/*
%_libdir/%name
%exclude %_libdir/%name/font
%_emacslispdir/*
%_sysconfdir/emacs/site-start.d/*
%files doc
%doc %_docdir/%name
%changelog
…
Полный changelog можно просмотреть здесь