Moto binary

Stefano Corsi <[email protected]> Wed, 19 Mar 2003 15:09:26 +0000
Newsgroups gmane.comp.lang.moto.devel
Organization Moto Project
Message-ID <[email protected]>
Hello,

does someone want to build and test the RPM distribution of moto_0_19_0?
Attached here is the spec file.

To try it, just copy the .spec in /usr/src/(redhat|suse|mandrake)/SPECS and copy the moto 0_19_0 tar.gz in /usr/src/(redhat|suse|mandrake)/SOURCES. I also include a patch that should be copied in /usr/src/(redhat|suse|mandrake)/SOURCES along with the source (it fix some dependency problem with redhat crypto libs...).
Then issue a "rpm -ba /usr/src/(redhat|suse|mandrake)/SPECS/moto.spec" command and the system should produce the new RPMS.

Thanks
	Stefano
moto.spec (text/plain, 1.8 KB)
Summary:   The Moto programming language
Name:      moto
Version:   0_19_0
Release:   1
Copyright: GPL
Vendor:    Moto Project <[email protected]>
Url:       www.projectmoto.org
Packager:  David Hakim <dhakim-Gkm/TONP9n1Wk0Htik3J/[email protected]>
Group:     Development
Source:    moto_%version.tar.gz
Patch:	   moto-nocrypto.patch
BuildRoot: /var/tmp/rpm-build-root-moto
Prereq:    apache-devel postgresql-devel mysql-devel

%description
Moto is a server-side scripting language much like PHP or ColdFusion. The difference between Moto and other server-side scripting languages is that Moto pages can run interpreted (like PHP) or be natively compiled into dynamically loadable Apache modules (an entire Web site could be compiled into one .so file). It comes with a full suite of objects and functions for state and session management, MySQL and PostgreSQL database connectivity, and a slew of utility classes like stacks, hashtables, string buffers, etc. There is also an included interface definition language for exposing C functions to Moto. All object allocation occurs in a shared memory segment, so maintaining state in objects between page views is a snap. 

%prep
%setup -n moto_%version
%patch -p1
%configure --with-layout=REDHAT --with-apache --with-pgsql --with-mysql

%build
mkdir -p $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT

%install
make install DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.moto
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.moto
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.moto

%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/moto
rm -rf ../file.list.moto


%files -f ../file.list.moto
moto-nocrypto.patch (text/x-diff, 340 B)
--- moto_0_18_0/mx/codex/db/pgsql/PGSQL.i.in.old	Tue Feb  4 08:16:12 2003
+++ moto_0_18_0/mx/codex/db/pgsql/PGSQL.i.in	Tue Feb  4 08:16:20 2003
@@ -1,11 +1,5 @@
 Extension: PGResultSet
 
-@MXLIBCRYPT@
-@MXLIBSSL@
-@MXLIBCRYPTO@
-
-Archive: "@PGSQL_LIBRARY_DIR@/libpq.a"
-
 Include: "pgconn.h"
 Include: "pgrset.h"
 Include: "tabulardata.h"