]>
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/ | |
305e8566 | 12 | BuildRequires: autoconf |
c0a76042 AM |
13 | BuildRequires: flex |
14 | BuildRequires: bison | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Grap is a language for typesetting graphs specified and first | |
20 | implemented by Brian Kernighan and Jon Bentley at Bell Labs. It is an | |
21 | expressive language for describing graphs and incorporating them in | |
22 | typeset documents. It is implemented as a preprocessor to Kernigan's | |
23 | pic language for describing languages, so any system that can use pic | |
24 | can use grap. For sure, TeX and groff can use it. | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | %patch0 -p1 | |
29 | ||
30 | %build | |
31 | %{__autoconf} | |
32 | CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions" | |
33 | %configure | |
34 | %{__make} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %{__make} install \ | |
40 | BINDIR=$RPM_BUILD_ROOT%{_bindir} \ | |
41 | DEFINESDIR=$RPM_BUILD_ROOT%{_datadir}/misc \ | |
42 | DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \ | |
43 | MANDIR=RPM_BUILD_ROOT%{_mandir}/man1 \ | |
44 | EXAMPLEDIR=RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
c0a76042 AM |
49 | %files |
50 | %defattr(644,root,root,755) | |
51 | %doc CHANGES README | |
52 | %attr(755,root,root) %{_bindir}/* | |
53 | %{_datadir}/misc/* |