Group :: Desenvolvimento/C
RPM: libwt
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define oname wt
Name: lib%oname
Version: 2.1.2
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://dl.sf.net/witty/%oname-%version.tar.bz2
# Automatically added by buildreq on Thu Dec 27 2007
BuildRequires: asio boost-datetime-devel boost-filesystem-devel boost-program-options-devel boost-regex-devel boost-signals-devel boost-thread-devel ccmake gcc-c++ libMySQL-devel libfcgi-devel libgd2-devel libmysql++-devel libnss-mysql zlib-devel
%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=%_libdir/qt4/
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=/%_lib \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DWT_CMAKE_FINDER_INSTALL_DIR=share/CMake/Modules \
../
%make_build
%install
cd build
%make_install install DESTDIR=%buildroot
%files
%doc AUTHORS Changelog INSTALL ReleaseNotes.html
%doc doc
%_libdir/*.so.*
%files devel
%doc examples/
%_includedir/*
%_libdir/*.so
%_datadir/CMake/Modules/FindWt.cmake
#%_pkgconfigdir/*
%changelog
…
Todas as alterações você pod ver aqui
Name: lib%oname
Version: 2.1.2
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://dl.sf.net/witty/%oname-%version.tar.bz2
# Automatically added by buildreq on Thu Dec 27 2007
BuildRequires: asio boost-datetime-devel boost-filesystem-devel boost-program-options-devel boost-regex-devel boost-signals-devel boost-thread-devel ccmake gcc-c++ libMySQL-devel libfcgi-devel libgd2-devel libmysql++-devel libnss-mysql zlib-devel
%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=%_libdir/qt4/
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=/%_lib \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DWT_CMAKE_FINDER_INSTALL_DIR=share/CMake/Modules \
../
%make_build
%install
cd build
%make_install install DESTDIR=%buildroot
%files
%doc AUTHORS Changelog INSTALL ReleaseNotes.html
%doc doc
%_libdir/*.so.*
%files devel
%doc examples/
%_includedir/*
%_libdir/*.so
%_datadir/CMake/Modules/FindWt.cmake
#%_pkgconfigdir/*
%changelog
…
Todas as alterações você pod ver aqui