Project

General

Profile

Actions

Installing Wt on Opensuse » History » Revision 4

« Previous | Revision 4/6 (diff) | Next »
Pieter Libin, 10/29/2009 02:03 PM


h1. Installing Wt on Opensuse

This page needs to be updated for Wt 2.x.x. The dependency for Xerces has been dropped, and instead Mini-XML is used now. Also, Wt 2.x.x comes with a built-in httpd which can be used as an alternative for FastCGI based deployment.

Summary: WT Library
Name: %{nam}-library
Version: %{version}
Release: %{release}
Source0: %{nam}-%{version}.tar.gz
License: GPL
Group: Development/Libraries
URL: http://witty.sourceforge.net
BuildRoot: %{_tmppath}/%{nam}-buildroot
Prefix: %{_prefix}
BuildRequires: gcc-c++
BuildRequires: FastCGI-devel
BuildRequires: Xerces-c-devel
BuildRequires: boost-devel
BuildRequires: cmake
Requires: boost
Requires: FastCGI
Requires: Xerces-c

%package devel
Summary: WT Library
Group: Development/Libraries
Requires: FastCGI-devel
Requires: Xerces-c-devel

%description
WT Library

%description devel
WT Library

%define cmake_install_prefix -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
%define cmake_build_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON

%prep
%setup -q -n %nam-%version
mkdir build
cd build && cmake ../ %{?cmake_install_prefix} %{?cmake_build_shared_libs}

%build
cd build && make

%install
rm -rf $RPM_BUILD_ROOT
cd build && make install DESTDIR=%buildroot
cd %buildroot%_libdir && { for lib in lib%{nam}*.so; do mv $lib $lib.%{version} ; ln -s $lib.%{version} $lib.%{majorversion} ; ln -s $lib.%{majorversion} $lib ; done; }

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%_libdir/*

%files devel
%defattr(-,root,root)
%_includedir/*

%changelog

end of file

Updated by Pieter Libin about 15 years ago · 4 revisions