blob: 271dbf00efd5f7620c27ee54dea0d378de77f66f [file] [log] [blame]
%define deftclver 8.3.1
%define tclver %(rpm -q tcl --queryformat '%%{version}' 2> /dev/null || echo %{deftclver})
Summary: Tcl scripting for the web, both a CGI and Apache module.
Name: websh
Version: 3.6.0b3
Release: 1
Copyright: Freely distributable and usable
Group: System Environment/Daemons
Source: http://tcl.apache.org/websh/download/%{name}-%{version}.tar.gz
URL: http://websh.com/
Packager: David N. Welton <davidw@dedasys.com>
BuildRoot: %{_tmppath}/%{name}-root
Requires: webserver, tcl = %{tclver}
BuildPrereq: apache-devel, tcl
Prereq: tcl
%description
Websh is a rapid development environment for building powerful,
fast, and reliable web applications. webshell is versatile and handles
everything from HTML generation to data-base driven one-to-one page
customization.
%prep
%setup -n %{name}
%build
cd src/unix
./configure --with-tclinclude=/usr/include/tcl8.4 --with-tcl=/usr/lib/tcl8.4/ --prefix=/usr --with-httpdinclude=/usr/include/httpd-2.0/
make
%install
cd src/unix
make install DESTDIR=$RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT/usr/lib/apache/
cp mod_websh%{version}.so $RPM_BUILD_ROOT/usr/lib/apache/
cp %{name}%{version} $RPM_BUILD_ROOT/usr/lib/apache/
%clean
cd src/unix
make clean
%files
%defattr(-,root,root)
%doc doc
%{_libdir}/apache/mod_websh%{version}.so
%changelog
* Fri Oct 28 2005 Ronnie Brunner <ronnie.brunner@netcetera.ch>
- moved to version 3.6.0
- removed make mod_websh.so (now in default)
* Fri Aug 01 2002 Ronnie Brunner <ronnie.brunner@netcetera.ch>
- dynamic version number of mod_websh
- also make and install websh itself
* Fri Dec 14 2001 David N. Welton <davidw@dedasys.com>
- Initial packages.