Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37773207
en ru br
ALT Linux repos
S:4.5.0-alt4
5.0: 2.2.1-alt1
4.1: 2.1.2-alt1

Group :: Development/C
RPM: libwt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

#/usr/src/RPM/BUILD/wt-2.2.1/src/http/Server.C: In member function 'void http::server::Server::select_read(int)':
#/usr/src/RPM/BUILD/wt-2.2.1/src/http/Server.C:239: error: 'null_buffers' is not a member of 'asio'
#/usr/src/RPM/BUILD/wt-2.2.1/src/http/Server.C: In member function 'void http::server::Server::select_write(int)':
#/usr/src/RPM/BUILD/wt-2.2.1/src/http/Server.C:259: error: 'null_buffers' is not a member of 'asio'

%define oname wt
Name: lib%oname
Version: 2.2.1
Release: alt1

Summary: a C++ Web Toolkit

Url: http://www.webtoolkit.eu/wt/
License: GPL
Group: Development/C

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://prdownloads.sf.net/witty/%oname-%version.tar.bz2

# Automatically added by buildreq on Wed Nov 05 2008

BuildRequires: boost-asio-devel boost-filesystem-devel boost-program_options-devel boost-signals-devel ccmake gcc-c++ libMySQL-devel libcom_err-devel libfcgi-devel libgd2-devel libmysql++-devel libqt4-devel qt4-settings

# Commented,boost-asio-devel also provides asio

#BuildConflicts: asio

%description
Wt (pronounced 'witty') is a C++ library and application server for
developing and deploying web applications.
The API is widget-centric, and inspired by existing C++ Graphical User
Interface (GUI) APIs. To the developer, it offers complete abstraction
of any web-specific implementation details.

%package devel
Summary: The files needed for %oname development
Summary(ru_RU.KOI8-R): Файлы, требующиеся для разработки приложений с использованием %oname
Group: Development/C
Requires: %name = %version-%release

%description devel
The %oname-devel package contains the necessary include files
for developing applications with %oname

%description devel -l ru_RU.KOI8-R
Пакет %oname-devel содержит необходимые заголовочные файлы
для разработки приложений, которые используют %oname.

%prep
%setup -q -n %oname-%version
%__subst "s| lib| %_lib|g" src/CMakeLists.txt

%build
export QTDIR=%_qt4dir
mkdir build
cd build
cmake \
-DCMAKE_C_FLAGS="%optflags" \
-DCMAKE_CXX_FLAGS="%optflags" \
-DQT_QMAKE_EXECUTABLE=$QTDIR/bin/qmake \
-DCMAKE_BUILD_TYPE=Release \
%if %_lib == lib64
-DLIB_SUFFIX=64 \
%endif
-DLIB_INSTALL_DIR=%_libdir \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DWT_CMAKE_FINDER_INSTALL_DIR=share/CMake/Modules \
../
%make_build


%install
cd build
%makeinstall_std

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%doc AUTHORS Changelog INSTALL ReleaseNotes.html
%doc doc
%_libdir/*.so.*
%_datadir/Wt/

%files devel
%doc examples/
%_includedir/*
%_libdir/*.so
%dir %_sysconfdir/wt/
%config(noreplace) %_sysconfdir/wt/wt_config.xml
%_datadir/CMake/Modules/FindWt.cmake
#%_pkgconfigdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin