Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37602182
en ru br
ALT Linux repos
S:3.40-alt4
5.0: 3.29-alt1
4.1: 3.29-alt1
4.0: 3.29-alt1
3.0: 3.29-alt1

Group :: Text tools
RPM: lout

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: lout
Version: 3.29
Release: alt1

Summary: The Lout document formatting language
License: GPL
Group: Text tools
Url: http://www.ptc.spbu.ru/~uwe/lout/

Source: %name-%version.tar.bz2
Source1: %name-mode.el
Source2: fontdefs.ld
Source3: %name-%version.user.ps.bz2
Patch: lout-3.28-alt-makefile.patch
Patch1: lout-3.26-alt-urw.patch
Requires: urw-fonts >= 2.0-alt9
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

%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 -q
%patch0 -p1
%patch1 -p1

cp %SOURCE2 data
cp %SOURCE3 .

%build
%make_build RPM_OPT_FLAGS="$RPM_OPT_FLAGS"  FONT_DIR="/usr/share/fonts/default/Type1" lout prg2lout

%install
mkdir -p $RPM_BUILD_ROOT%prefix/{bin,lib}
mkdir -p $RPM_BUILD_ROOT%_datadir/{locale,man/man1,doc}

%make DESTDIR=$RPM_BUILD_ROOT DATADIR=%_datadir install installman installdoc

(cd doc/user
   ../../lout all >user.ps
)

# emacs

mkdir -p $RPM_BUILD_ROOT%_emacslispdir
install -m 644 %SOURCE1 $RPM_BUILD_ROOT%_emacslispdir
emacs -batch -f batch-byte-compile $RPM_BUILD_ROOT%_emacslispdir/%name-mode.el

install -d $RPM_BUILD_ROOT%_sysconfdir/emacs/site-start.d
cat <<EOF >$RPM_BUILD_ROOT%_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

%files
%doc blurb README maillist whatsnew
%_bindir/*
%_mandir/man?/*
%_libdir/%name
%exclude %_libdir/%name/font
%_emacslispdir/*

%files doc
%doc %name-%version.user.ps.bz2 doc/slides doc/expert doc/design

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin