]> git.pld-linux.org Git - packages/grap.git/blame - grap.spec
- initial pld release
[packages/grap.git] / grap.spec
CommitLineData
c0a76042
AM
1#
2Summary: A language for typesetting graphs
3Name: grap
4Version: 1.30
5Release: 1
6License: BSD
7Group: Applications/Publishing
8Source0: http://www.lunabase.org/~faber/Vault/software/grap/%{name}-%{version}.tar.gz
9# Source0-md5: f84c99b1746a963328f38d050529b778
10Patch0: %{name}-debian.patch
11URL: http://www.lunabase.org/~faber/Vault/software/grap/
12BuildRequires: flex
13BuildRequires: bison
14BuildRequires: libstdc++-devel
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18Grap is a language for typesetting graphs specified and first
19implemented by Brian Kernighan and Jon Bentley at Bell Labs. It is an
20expressive language for describing graphs and incorporating them in
21typeset documents. It is implemented as a preprocessor to Kernigan's
22pic language for describing languages, so any system that can use pic
23can use grap. For sure, TeX and groff can use it.
24
25%prep
26%setup -q
27%patch0 -p1
28
29%build
30%{__autoconf}
31CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions"
32%configure
33%{__make}
34
35%install
36rm -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
46rm -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/*
This page took 0.063875 seconds and 4 git commands to generate.