This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rubber.spec.in
52 lines (46 loc) · 1.66 KB
/
rubber.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Name: rubber
Summary: An automated system for building LaTeX documents.
Version: @version@
Release: @release@
License: GPL
Group: Applications/Publishing
URL: http://rubber.sourceforge.net/
Packager: Emmanuel Beffara <manu@beffara.org>
Source: %{name}-%{version}.tar.gz
Requires: python2, tetex
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This is a building system for LaTeX documents. It is based on a routine that
runs just as many compilations as necessary. The module system provides a
great flexibility that virtually allows support for any package with no user
intervention, as well as pre- and post-processing of the document. The
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
makeindex. A good number of standard packages are supported, including
graphics/graphicx (with automatic conversion between various formats and
Metapost compilation).
%prep
%setup
%build
./configure --prefix=%{_prefix} --mandir='${datadir}/man' --infodir='${datadir}/info' --python=python2
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"
mkdir $RPM_BUILD_ROOT
make install prefix=$RPM_BUILD_ROOT%{_prefix}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d "$RPM_BUILD_ROOT" ] && rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-, root, root)
%doc COPYING NEWS README
%{_bindir}/rubber
%{_bindir}/rubber-pipe
%{_bindir}/rubber-info
%{_datadir}/rubber
%doc %{_mandir}/fr/man1/rubber-info.1*
%doc %{_mandir}/fr/man1/rubber-pipe.1*
%doc %{_mandir}/fr/man1/rubber.1*
%doc %{_mandir}/man1/rubber-info.1*
%doc %{_mandir}/man1/rubber-pipe.1*
%doc %{_mandir}/man1/rubber.1*
%doc %{_infodir}/rubber.info.gz