]>
Commit | Line | Data |
---|---|---|
c0a76042 AM |
1 | # |
2 | Summary: A language for typesetting graphs | |
3 | Name: grap | |
4 | Version: 1.30 | |
5 | Release: 1 | |
6 | License: BSD | |
7 | Group: Applications/Publishing | |
8 | Source0: http://www.lunabase.org/~faber/Vault/software/grap/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: f84c99b1746a963328f38d050529b778 | |
10 | Patch0: %{name}-debian.patch | |
11 | URL: http://www.lunabase.org/~faber/Vault/software/grap/ | |
12 | BuildRequires: flex | |
13 | BuildRequires: bison | |
14 | BuildRequires: libstdc++-devel | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Grap is a language for typesetting graphs specified and first | |
19 | implemented by Brian Kernighan and Jon Bentley at Bell Labs. It is an | |
20 | expressive language for describing graphs and incorporating them in | |
21 | typeset documents. It is implemented as a preprocessor to Kernigan's | |
22 | pic language for describing languages, so any system that can use pic | |
23 | can use grap. For sure, TeX and groff can use it. | |
24 | ||
25 | %prep | |
26 | %setup -q | |
27 | %patch0 -p1 | |
28 | ||
29 | %build | |
30 | %{__autoconf} | |
31 | CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions" | |
32 | %configure | |
33 | %{__make} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | ||
38 | %{__make} install \ | |
39 | BINDIR=$RPM_BUILD_ROOT%{_bindir} \ | |
40 | DEFINESDIR=$RPM_BUILD_ROOT%{_datadir}/misc \ | |
41 | DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \ | |
42 | MANDIR=RPM_BUILD_ROOT%{_mandir}/man1 \ | |
43 | EXAMPLEDIR=RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %post | |
49 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
50 | ||
51 | %postun | |
52 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc CHANGES README | |
57 | %attr(755,root,root) %{_bindir}/* | |
58 | %{_datadir}/misc/* |