X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gforth.spec;h=0524d7ec7ee20d8ba198eed38edffcbdee044272;hb=1e49d4c5dc5a8fc7c49c75e1925e10fe3d4c2d61;hp=b17777acd96258e9b77552e1c32cd95150d15f7f;hpb=c21ed134e17fc8f6c2c296abcda9621a5d60407b;p=packages%2Fgforth.git diff --git a/gforth.spec b/gforth.spec index b17777a..0524d7e 100644 --- a/gforth.spec +++ b/gforth.spec @@ -1,13 +1,13 @@ -Summary: GNU Forth Language -Summary(pl): Kompilator GNU Forth -Name: gforth -Version: 0.3.0 -Release: 2 -Copyright: GPL -Group: Languages -Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz -Patch0: gforth-makefile.patch -Buildroot: /tmp/%{name}-%{version}-root +Summary: GNU Forth Language +Summary(pl): Kompilator GNU Forth +Name: gforth +Version: 0.4.0 +Release: 1 +License: GPL +Group: Development/Languages +Group(pl): Programowanie/Jêzyki +Source0: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Gforth is a fast and portable implementation of the ANS Forth @@ -15,17 +15,16 @@ language. It works nicely with the Emacs editor, offers some nice features such as input completion and history and a powerful locals facility, and it even has (the beginnings of) a manual. Gforth employs traditional implementation techniques: its inner innerpreter is -indirect or direct threaded. Gforth is distributed under the GNU +indirect or direct threaded. Gforth is distributed under the GNU General Public license (see COPYING). %description -l pl Gforth jest szybk± i przenoszaln± implementacj± jêzyka ANS Forth. -Dobrae wspólpracuje z edytorem Emacs oferuj±c takie cechy jak kompletowanie -i historiê wprowadzania ci±gów znaków. +Dobrae wspólpracuje z edytorem Emacs oferuj±c takie cechy jak +kompletowanie i historiê wprowadzania ci±gów znaków. %prep %setup -q -%patch0 -p1 %build %configure @@ -34,42 +33,34 @@ make %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT/usr install -strip $RPM_BUILD_ROOT/usr/bin/* +%{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} \ + exec_prefix=$RPM_BUILD_ROOT%{_prefix} \ + mandir=$RPM_BUILD_ROOT%{_mandir} \ + infodir=$RPM_BUILD_ROOT%{_infodir} -gzip -9nf $RPM_BUILD_ROOT/usr/info/gforth.info* +ln -sf gforth-0.4.0 $RPM_BUILD_ROOT%{_bindir}/gforth +ln -sf gforthmi-0.4.0 $RPM_BUILD_ROOT%{_bindir}/gforthmi + +strip $RPM_BUILD_ROOT%{_bindir}/* || : + +gzip -9nf $RPM_BUILD_ROOT%{_infodir}/gforth.info* \ + $RPM_BUILD_ROOT%{_mandir}/man1/* \ + AUTHORS README NEWS BUGS ToDo %post -/sbin/install-info /usr/info/gforth.info.gz /usr/info/dir \ ---section "Programming:" --entry \ -"* Gforth: (gforth.info). The GNU ANS Forth." +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %preun -/sbin/install-info --delete /usr/info/gforth.info.gz /usr/info/dir \ ---section "Programming:" --entry \ -"* Gforth: (gforth.info). The GNU ANS Forth." - +[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 %clean rm -rf $RPM_BUILD_ROOT %files -%attr(644, root, root, 755) -%doc README TAGS BUGS ToDo -%attr(755, root, root) /usr/bin/* -/usr/lib/gforth -/usr/info/*info* -%attr(644, root, man) /usr/man/man1/* -/usr/share/gforth - -%changelog -* Sun Nov 22 1998 Tomasz K³oczko - [0.3.0-2] -- added using $RPM_OPT_FLAGS during compile, -- added %post, %preun with {un}registering info pages, -- removed making htm and ps documentation (it can be generatred from - info pages by onyone in anytime). - -* Wed Sep 23 1998 Wojciech "Sas" Ciêciwa - [0.3.0-1] -- Building RPM. +%defattr(644,root,root,755) +%doc {AUTHORS,README,NEWS,BUGS,ToDo}.gz +%attr(755,root,root) %{_bindir}/* +%{_libdir}/gforth +%{_infodir}/*info* +%{_mandir}/man1/* +%{_datadir}/gforth