Summary: GNU Forth Language
-Summary(pl): Kompilator GNU Forth
+Summary(pl.UTF-8): Kompilator GNU Forth
Name: gforth
-Version: 0.6.1
-Release: 1
-License: GPL
+Version: 0.7.3
+Release: 3
+License: GPL v3+
Group: Development/Languages
-Source0: ftp://ftp.gnu.org/gnu/gforth/%{name}-%{version}.tar.gz
-# Source0-md5: 91855c11c3989d0ba92139e278f047d0
+Source0: http://ftp.gnu.org/gnu/gforth/%{name}-%{version}.tar.gz
+# Source0-md5: ff484391e5cdf405867fcf96341820ab
Patch0: %{name}-info.patch
Patch1: %{name}-opt.patch
+URL: http://gnu.org/software/gforth/
BuildRequires: autoconf >= 2.54
BuildRequires: automake
+BuildRequires: ffcall-devel
+BuildRequires: libltdl-devel
+BuildRequires: libtool
BuildRequires: texinfo
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define skip_post_check_so .*%{_libdir}/gforth/%{version}/libcc-named/.*
+
%description
Gforth is a fast and portable implementation of the ANS Forth
language. It works nicely with the Emacs editor, offers some nice
indirect or direct threaded. Gforth is distributed under the GNU
General Public License.
-%description -l pl
-Gforth jest szybk± i przeno¶n± implementacj± jêzyka ANS Forth. Dobrze
-wspó³pracuje z edytorem Emacs, oferuj±c takie cechy jak dope³nianie i
-historiê wprowadzania ci±gów znaków, ma tak¿e zacz±tki podrêcznika.
-Gforth wykorzystuje tradycyjne techniki implementacji: jego wewnêtrzny
-interpreter jest po¶rednio lub bezpo¶rednio w±tkowany. Gforth jest
+%description -l pl.UTF-8
+Gforth jest szybką i przenośną implementacją języka ANS Forth. Dobrze
+współpracuje z edytorem Emacs, oferując takie cechy jak dopełnianie i
+historię wprowadzania ciągów znaków, ma także zaczątki podręcznika.
+Gforth wykorzystuje tradycyjne techniki implementacji: jego wewnętrzny
+interpreter jest pośrednio lub bezpośrednio wątkowany. Gforth jest
rozpowszechniany na Powszechnej Licencji Publicznej GNU.
%prep
%patch0 -p1
%patch1 -p1
-rm -f doc/*.info*
+%{__rm} doc/*.info*
%build
%{__aclocal}
%{__autoconf}
%configure
-%{__make}
+%{__make} -j1
-cd doc
-makeinfo gforth.ds
-makeinfo vmgen.texi
+%{__make} info
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
- prefix=$RPM_BUILD_ROOT%{_prefix} \
- exec_prefix=$RPM_BUILD_ROOT%{_prefix} \
- mandir=$RPM_BUILD_ROOT%{_mandir} \
- infodir=$RPM_BUILD_ROOT%{_infodir}
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/gforth/%{version}/libcc-named/*.{la,a}
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%post -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
+%postun -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
-%doc AUTHORS README NEWS BUGS ToDo
-%attr(755,root,root) %{_bindir}/*
+%doc AUTHORS BUGS NEWS NEWS.vmgen README README.vmgen ToDo
+%attr(755,root,root) %{_bindir}/gforth*
+%attr(755,root,root) %{_bindir}/vmgen*
%dir %{_libdir}/gforth
%dir %{_libdir}/gforth/%{version}
-%attr (755,root,root) %{_libdir}/gforth/%{version}/gforth-ditc
+%dir %{_libdir}/gforth/%{version}/libcc-named
+%attr(755,root,root) %{_libdir}/gforth/%{version}/libcc-named/*.so*
+%attr(755,root,root) %{_libdir}/gforth/%{version}/gforth-ditc
%{_libdir}/gforth/%{version}/gforth.fi
%dir %{_libdir}/gforth/site-forth
-%{_infodir}/*.info*
-%{_mandir}/man1/*
+%{_includedir}/gforth
+%{_infodir}/gforth.info*
+%{_infodir}/vmgen.info*
+%{_mandir}/man1/gforth.1*
%{_datadir}/gforth