rpms/gforth/devel gforth-shebang.patch, NONE, 1.1 gforth.patch, NONE, 1.1 gforth.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Gérard Milmeister (gemi)
fedora-extras-commits at redhat.com
Wed Sep 14 22:38:37 UTC 2005
Author: gemi
Update of /cvs/extras/rpms/gforth/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30630/devel
Modified Files:
.cvsignore sources
Added Files:
gforth-shebang.patch gforth.patch gforth.spec
Log Message:
auto-import gforth-0.6.2-5 on branch devel from gforth-0.6.2-5.src.rpm
gforth-shebang.patch:
--- NEW FILE gforth-shebang.patch ---
--- gforth-0.6.2/filedump.fs.shebang 2005-09-13 00:57:01.000000000 +0200
+++ gforth-0.6.2/filedump.fs 2005-09-13 00:59:15.000000000 +0200
@@ -1,4 +1,4 @@
-#! /usr/local/lib/gforth/0.2.0/kernel.fi
+#! /usr/bin/gforth
\ file hex dump
\ Copyright (C) 1997,2002,2003 Free Software Foundation, Inc.
--- gforth-0.6.2/httpd.fs.shebang 2005-09-13 00:57:11.000000000 +0200
+++ gforth-0.6.2/httpd.fs 2005-09-13 01:00:01.000000000 +0200
@@ -1,4 +1,4 @@
-#! /usr/local/bin/gforth
+#! /usr/bin/gforth
\ Copyright (C) 2000,2002,2003 Free Software Foundation, Inc.
@@ -22,7 +22,7 @@
require string.fs
-Variable DocumentRoot s" /usr/local/httpd/htdocs/" DocumentRoot $!
+Variable DocumentRoot s" /var/www/html/" DocumentRoot $!
Variable UserDir s" .html-data/" UserDir $!
Variable url
--- gforth-0.6.2/sieve.fs.shebang 2005-09-13 00:57:27.000000000 +0200
+++ gforth-0.6.2/sieve.fs 2005-09-13 01:00:15.000000000 +0200
@@ -1,4 +1,4 @@
-#! /usr/stud/paysan/bin/forth
+#! /usr/bin/gforth
DECIMAL
: SECS TIME&DATE 2DROP DROP 60 * + 60 * + ;
--- gforth-0.6.2/siev.fs.shebang 2005-09-13 00:57:35.000000000 +0200
+++ gforth-0.6.2/siev.fs 2005-09-13 01:00:27.000000000 +0200
@@ -1,4 +1,4 @@
-\ #! /usr/stud/paysan/bin/forth
+\ #! /usr/bin/gforth
DECIMAL
\ : SECS TIME&DATE SWAP 60 * + SWAP 3600 * + NIP NIP NIP ;
gforth.patch:
--- NEW FILE gforth.patch ---
--- gforth-0.6.2/comp-i.fs.fix 2004-11-22 17:15:09.292698638 +0100
+++ gforth-0.6.2/comp-i.fs 2004-11-22 17:16:06.122803737 +0100
@@ -43,7 +43,7 @@
if
." : images have the same base address; producing only a data-relocatable image" cr
else
- offset abs expected-offset <> abort" images produced by different engines"
+ \ offset abs expected-offset <> abort" images produced by different engines"
." offset=" offset . cr
0 image1 i-field + ! 0 image2 i-field + !
endif
--- NEW FILE gforth.spec ---
Name: gforth
Version: 0.6.2
Release: 5
Summary: Fast and portable implementation of the ANS Forth language
Group: Development/Languages
License: GPL
URL: http://www.jwdt.com/~paysan/gforth.html
Source: http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.6.2.tar.gz
Patch0: gforth.patch
Patch1: gforth-shebang.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(post): /sbin/install-info
Requires(postun): /sbin/install-info
%description
Gforth is a fast and portable implementation of the ANS Forth
language. It works nicely with the Emacs editor, offers some nice
features such as input completion and history, backtraces, a
decompiler and a powerful locals facility, and it even has a
manual. Gforth combines traditional implementation techniques with
newer techniques for portability and performance performance: its
inner innerpreter is direct threaded with several optimizations, but
you can also use a traditional-style indirect threaded interpreter.
%define emacs_sitestart_d %{_datadir}/emacs/site-lisp/site-start.d
%define emacs_site_lisp %{_datadir}/emacs/site-lisp
%define xemacs_sitestart_d %{_datadir}/xemacs/site-packages/lisp/site-start.d
%define xemacs_site_lisp %{_datadir}/xemacs/site-packages/lisp
%define gforth_datadir %{_datadir}/gforth
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure
# %{_smp_mflags} breaks the build
make libdir=%{_libdir}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
cat > $RPM_BUILD_ROOT%{gforth_datadir}/site-forth/siteinit.fs <<EOF
\ If you change this file, you need to recompile gforth.fi
EOF
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
mkdir -p $RPM_BUILD_ROOT%{gforth_datadir}/emacs
cp -f gforth.el $RPM_BUILD_ROOT%{gforth_datadir}/emacs
cat > $RPM_BUILD_ROOT%{gforth_datadir}/emacs/gforth-init.el <<EOF
(autoload 'forth-mode "gforth" "Forth mode" t)
(autoload 'run-forth "gforth" "Run Forth" t)
(add-to-list 'auto-mode-alist '("\\.fs$" . forth-mode))
EOF
for i in httpd.fs filedump.fs sieve.fs
do
chmod 0755 $RPM_BUILD_ROOT%{_datadir}/gforth/%{version}/$i
done
for dir in %{emacs_sitestart_d} %{xemacs_sitestart_d}; do
install -dm 755 $RPM_BUILD_ROOT$dir
touch $RPM_BUILD_ROOT$dir/gforth-init.el
done
for dir in %{emacs_site_lisp} %{xemacs_site_lisp}; do
install -dm 755 $RPM_BUILD_ROOT$dir
touch $RPM_BUILD_ROOT$dir/gforth.el
done
%post
/sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || :
%postun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir 2>/dev/null || :
fi
%clean
rm -rf $RPM_BUILD_ROOT
%triggerin -- emacs-common
if [ -d %{emacs_sitestart_d} ]; then
ln -sf %{gforth_datadir}/emacs/gforth-init.el %{emacs_sitestart_d} || :
ln -sf %{gforth_datadir}/emacs/gforth.el %{emacs_site_lisp} || :
fi
%triggerin -- xemacs-common
if [ -d %{xemacs_sitestart_d} ]; then
ln -sf %{gforth_datadir}/emacs/gforth-init.el %{xemacs_sitestart_d} || :
ln -sf %{gforth_datadir}/emacs/gforth.el %{xemacs_site_lisp} || :
fi
%triggerun -- emacs-common
if [ $2 = 0 ]; then
rm -f %{emacs_sitestart_d}/gforth-init.el* || :
rm -f %{emacs_site_lisp}/gforth.el* || :
fi
%triggerun -- xemacs-common
if [ $2 = 0 ]; then
rm -f %{xemacs_sitestart_d}/gforth-init.el* || :
rm -f %{xemacs_site_lisp}/gforth.el* || :
fi
%files
%defattr(-, root, root)
%doc COPYING COPYING.DOC README README.vmgen NEWS NEWS.vmgen AUTHORS BUGS ChangeLog
%{_bindir}/*
%{_infodir}/*
%{_datadir}/gforth
%{_libdir}/gforth
%{_mandir}/man1/*
%ghost %{_datadir}/*emacs
%changelog
* Wed Sep 14 2005 Gerard Milmeister <gemi at bluewin.ch> - 0.6.2-5
- changes to the trigger code
* Wed Sep 14 2005 Gerard Milmeister <gemi at bluewin.ch> - 0.6.2-4
- use triggers to install (x)emacs files
- create not-empty siteinit.fs
* Tue Sep 13 2005 Gerard Milmeister <gemi at bluewin.ch> - 0.6.2-3
- fix for building on x86_64
- patch fixing shebang executable path
* Sat Mar 19 2005 Gerard Milmeister <gemi at bluewin.ch> - 0.6.2-2
- Included gforth.el
* Sun Feb 13 2005 Gerard Milmeister <gemi at bluewin.ch> - 0:0.6.2-1
- Included patch for exec-shield
* Wed Oct 15 2003 Gerard Milmeister <gemi at bluewin.ch> - 0:0.6.2-0.fdr.1
- First Fedora release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/gforth/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 14 Sep 2005 22:36:34 -0000 1.1
+++ .cvsignore 14 Sep 2005 22:38:35 -0000 1.2
@@ -0,0 +1 @@
+gforth-0.6.2.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/gforth/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 14 Sep 2005 22:36:34 -0000 1.1
+++ sources 14 Sep 2005 22:38:35 -0000 1.2
@@ -0,0 +1 @@
+869112bd762b07fc4d2038a2d9965148 gforth-0.6.2.tar.gz
More information about the fedora-extras-commits
mailing list