Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Evergreen:11.4
wt
wt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File wt.spec of Package wt
# # spec file for package wt # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: wt Url: http://www.webtoolkit.eu/wt/ License: GPLv2 Group: Development/Libraries/C and C++ Version: 3.1.8 Release: 4.<RELEASE2> Summary: Web Toolkit Source0: %{name}-%{version}.tar.bz2 Patch0: cmake_config.patch Requires: FastCGI openssl Xerces-c Requires: mxml >= 2.3 BuildRequires: gcc-c++ BuildRequires: FastCGI-devel Xerces-c-devel openssl-devel BuildRequires: boost-devel >= 1.34.1 BuildRequires: mxml-devel >= 2.3 BuildRequires: postgresql-devel BuildRequires: cmake doxygen gd-devel libqt4-devel pkgconfig BuildRequires: fdupes BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Wt is a C++ library and application server for developing and deploying web applications. The widget-centric API is inspired by existing C++ GUI APIs. It offers complete abstraction of any web-specific implementation details. Most importantly, the entire application is written in only one compiled language (C++), from which the library generates the necessary HTML, Javascript, CGI, and AJAX code. Authors: -------- Koen Deforche (koen.deforche@gmail.com) Abdiel Janulgue (xynopsis@yahoo.com) Wim Dumon (wim.dumon@gmail.com) %package devel License: GPLv2 Summary: Web Toolkit - Development Files Group: Development/Libraries/C and C++ Requires: FastCGI-devel openssl-devel Xerces-c-devel Requires: boost-devel >= 1.34.1 Requires: mxml-devel >= 2.3 Requires: %{name} = %{version} %description devel Development files for the Wt library. Wt is a C++ library and application server for developping and deploying web applications. The widget-centric API is inspired by existing C++ GUI APIs. It offers complete abstraction of any web-specific implementation details. Most imporantly, the entire application is written in only one compiled language (C++), from which the library generates the necessary HTML, Javascript, CGI, and AJAX code. Authors: -------- Koen Deforche (koen.deforche@gmail.com) Abdiel Janulgue (xynopsis@yahoo.com) Wim Dumon (wim.dumon@gmail.com) %package doc License: GPLv2 Summary: Web Toolkit - Doxygen Documentation Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description doc Doxygen documentation for the Wt library. Wt is a C++ library and application server for developping and deploying web applications. The widget-centric API is inspired by existing C++ GUI APIs. It offers complete abstraction of any web-specific implementation details. Most imporantly, the entire application is written in only one compiled language (C++), from which the library generates the necessary HTML, Javascript, CGI, and AJAX code. Authors: -------- Koen Deforche (koen.deforche@gmail.com) Abdiel Janulgue (xynopsis@yahoo.com) Wim Dumon (wim.dumon@gmail.com) %prep %setup -q %patch0 -p 1 %build %define WTSRVDIR /srv/wt # path to runtime session data %define WTRUNDIR %{WTSRVDIR}/run # webserve user and group %define WTRUNUSER wwwrun %define WTRUNGROUP www mkdir wt-build cd wt-build CFLAGS=$RPM_OPT_FLAGS CXXFLAGS="$RPM_OPT_FLAGS" \ cmake .. \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DLIB_INSTALL_DIR=%{_lib} \ -DCONNECTOR_HTTP=ON \ -DCONNECTOR_FCGI=ON \ -DWEBGROUP="%{WTRUNGROUP}" -DWEBUSER="%{WTRUNUSER}" \ -DRUNDIR="%{WTRUNDIR}" make %{?jobs:-j%jobs} %install cd wt-build make DESTDIR="$RPM_BUILD_ROOT" install # hack for broken cmake configs on archs with /lib64 %ifarch ppc64 s390x mv $RPM_BUILD_ROOT/usr/lib/* $RPM_BUILD_ROOT/usr/%{_lib} || true rm -Rf $RPM_BUILD_ROOT/usr/lib %endif # end hack mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name} mkdir -p $RPM_BUILD_ROOT/%{WTSRVDIR} mkdir -p $RPM_BUILD_ROOT/%{WTRUNDIR} mkdir $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/ cp -rv ../doc/* $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/ mv -v $RPM_BUILD_ROOT/%{_datadir}/Wt $RPM_BUILD_ROOT/%{_datadir}/wt # We mustn't package .orig files find $RPM_BUILD_ROOT/%{_includedir}/Wt -name '*.orig' -delete # Remove the installdox script used for the installation of documentation. rm $RPM_BUILD_ROOT/%{_docdir}/%{name}-devel/reference/html/installdox # Remove shell scripts used for generating some images. rm $RPM_BUILD_ROOT/%{_datadir}/wt/resources/themes/*/*/generate.sh %fdupes $RPM_BUILD_ROOT/%{_docdir} %fdupes $RPM_BUILD_ROOT/%{_datadir} %clean # ODKOMENTOVAT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/*.so.%{version} %doc AUTHORS Changelog INSTALL LICENSE %dir %{WTSRVDIR} %dir /etc/wt %{_datadir}/wt %config /etc/wt/wt_config.xml %attr(-,%{WTRUNUSER},%{WTRUNGROUP}) %{WTRUNDIR} %files devel %defattr(-,root,root) %{_includedir}/Wt %exclude %{_libdir}/*.so.%{version} %{_libdir}/*.so.* %{_libdir}/*.so %exclude %{_docdir}/%{name}-devel/reference %doc %{_docdir}/%{name}-devel %{_datadir}/cmake/Modules/* %files doc %defattr(-,root,root) %doc %{_docdir}/%{name}-devel/reference %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor