Tags:
create new tag
, view all tags
CategoryStale

%define _prefix /home/twiki
%define _cgi_prefix /var/www/cgi-bin/twiki
%define _html_prefix /var/www/html/twiki
%define _cgi_user apache


Summary: web based collaboration platform
Name: twiki
Version: 20010901
Release: 1
Copyright: GPL
Group: Applications/Productivity
Source: http://TWiki.org/TWiki20010901.zip
Source1: TWiki.Makefile
Source2: TWiki.cfg
Prefix: %{_prefix}
Buildroot: /var/tmp/%{name}-root

%description

The TWiki web is a web based collaboration platform. Imagine 
having a platform to create and maintain an Intranet instantly, 
not just by a webmaster, but by anybody using just a browser? 
That is what TWiki is, an instant Intranet (or an instant 

Internet web site if you would like). Read more at
http://TWiki.org/ .


%prep

rm -rf $RPM_BUILD_DIR/twiki 
mkdir -p $RPM_BUILD_DIR/twiki 
cd $RPM_BUILD_DIR/twiki

unzip %{_sourcedir}/TWiki20010901.zip
cp %{_sourcedir}/TWiki.Makefile  $RPM_BUILD_DIR/twiki/Makefile


%build

cd $RPM_BUILD_DIR/twiki

cp %{_sourcedir}/TWiki.cfg $RPM_BUILD_DIR/twiki/lib

make debug
make    all \
   PREFIX=%{_prefix} \
   CGI_PREFIX=%{_cgi_prefix} \
   HTML_PREFIX=%{_html_prefix} \
   CGI_USER=%{_cgi_user}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_prefix}

cd $RPM_BUILD_DIR/twiki

make    install \
   PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
   CGI_PREFIX=$RPM_BUILD_ROOT/%{_cgi_prefix} \
   HTML_PREFIX=$RPM_BUILD_ROOT/%{_html_prefix} \
   CGI_USER=%{_cgi_user}


%clean
#rm -rf $RPM_BUILD_ROOT


%files

%defattr(-,apache,apache)
%{_prefix}/data
%{_html_prefix}/pub

%defattr(-,root,root)
%{_prefix}/templates
%{_prefix}/lib
%{_cgi_prefix}/bin

%defattr(-,root,root)
%dir %{_prefix}
%dir %{_html_prefix}
%dir %{_cgi_prefix}

-- KenEstes - 04 Oct 2001

Topic revision: r2 - 09 Mar 2006 - 17:26:19 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback