-#
Summary: A language for typesetting graphs
+Summary(pl.UTF-8): Język do składu grafów
Name: grap
-Version: 1.30
+Version: 1.39
Release: 1
License: BSD
Group: Applications/Publishing
Source0: http://www.lunabase.org/~faber/Vault/software/grap/%{name}-%{version}.tar.gz
-# Source0-md5: f84c99b1746a963328f38d050529b778
-Patch0: %{name}-debian.patch
+# Source0-md5: af9ad4aec173b15ec749b0d1de416935
URL: http://www.lunabase.org/~faber/Vault/software/grap/
-BuildRequires: flex
+BuildRequires: autoconf
BuildRequires: bison
+BuildRequires: flex
BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Grap is a language for typesetting graphs specified and first
implemented by Brian Kernighan and Jon Bentley at Bell Labs. It is an
expressive language for describing graphs and incorporating them in
-typeset documents. It is implemented as a preprocessor to Kernigan's
+typeset documents. It is implemented as a preprocessor to Kernighan's
pic language for describing languages, so any system that can use pic
can use grap. For sure, TeX and groff can use it.
+%description -l pl.UTF-8
+Grap to język do składu grafów zdefiniowany i po raz pierwszy
+zaimplementowany przez Briana Kernighana i Jona Bentleya w Bell Labs.
+Jest to język wyrażeń do opisu grafów i włączania ich do składanych
+dokumentów. Jest zaimplementowany jako preprocesor dla języka pic
+Kernighana służącego do opisu języków, więc dowolny system używający
+języka pic może używać języka grap. Na pewno mogą go używać TeX i
+groff.
+
%prep
%setup -q
-%patch0 -p1
%build
%{__autoconf}
%{__make} install \
BINDIR=$RPM_BUILD_ROOT%{_bindir} \
- DEFINESDIR=$RPM_BUILD_ROOT%{_datadir}/misc \
+ DEFINESDIR=$RPM_BUILD_ROOT%{_datadir}/grap \
DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} \
- MANDIR=RPM_BUILD_ROOT%{_mandir}/man1 \
- EXAMPLEDIR=RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+ MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 \
+ EXAMPLEDIR=$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
%files
%defattr(644,root,root,755)
%doc CHANGES README
%attr(755,root,root) %{_bindir}/*
-%{_datadir}/misc/*
+%{_datadir}/grap
+%{_mandir}/man1/grap*
+%{_examplesdir}/%{name}-%{version}