File libqt5-qtwebkit-examples-and-demos.spec.in of Package libqt5-qtbase

#
# spec file for package libqt5-qtwebkit-examples-and-demos
#
# Copyright (c) 2012 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/
#

%define _prefix /opt/qt-5.0
%define packageprefix opt-

Name:           %{packageprefix}libqt5-qtwebkit-examples-and-demos
# COMMON-VERSION-BEGIN
# COMMON-VERSION-END
BuildRequires:  %{packageprefix}libqt5-qttools-devel
BuildRequires:  xz
Requires:       %{packageprefix}libqt5-qttools-devel
Url:            http://qt.digia.com
Summary:        Qt 5 QtWebKit Examples and Demos
License:        SUSE-LGPL-2.1-with-nokia-exception-1.1 or GPL-3.0
Group:          Development/Libraries/X11
# COMMON-BEGIN
# COMMON-END

%build
export QTDIR=`pwd`/qtbase
export PATH=$PATH:%{_prefix}/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_libdir}
cd qtwebkit-examples-and-demos
%ifarch ppc64
  RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -DOPENSSL_LOAD_CONF"
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -DOPENSSL_LOAD_CONF"
export MAKEFLAGS="%{?jobs:-j %jobs}"
qmake
make

%install
cd qtwebkit-examples-and-demos
make INSTALL_ROOT=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
%dir %_libdir/qt5/examples
%_libdir/qt5/examples/webkitwidgets
%_libdir/qt5/examples/webkitqml

%changelog
openSUSE Build Service is sponsored by