File of Package libqt4

# spec file for package qt-sql-plugins (Version 4.1.3)
# Copyright (c) 2009 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

# norootforbuild
# nodebuginfo

Name:           libqt4-devel-doc-data
BuildRequires:  cups-devel freeglut-devel freetype2-devel pkgconfig libqt4-devel libQtWebKit-devel
BuildRequires:  openssl-devel sqlite-devel libqt4-sql-sqlite
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
License:        QPL, GPL
Group:          System/Libraries
Autoreqprov:    on
Summary:        Qt documentation (architecture independent files)
BuildArch:      noarch
%requires_eq    libqt4

export QTDIR=$PWD
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib/
sed -i -e "/^QMAKE_CFLAGS_RELEASE[ \t]*+=/s,\$, $RPM_OPT_FLAGS," mkspecs/common/g++.conf
%if %suse_version > 910
export MAKEFLAGS="%{?jobs:-j %jobs}"
echo yes | ./configure %common_options $OPTIONS -plugin-sql-sqlite -nomake demos -xmlpatterns -webkit
pushd src
make %{?jobs:-j%jobs} sub-moc sub-rcc sub-uic
pushd tools
make %{?jobs:-j%jobs} sub-assistant
pushd tools/qdoc3
make %{?jobs:-j%jobs}
test -d doc/qch || make %{?jobs:-j%jobs} docs

export QTDIR=$PWD
# htmldocs are not generated - why?
for d in docimages qchdocs htmldocs ; do
  make INSTALL_ROOT=$RPM_BUILD_ROOT install_${d}

#mkdir -p $RPM_BUILD_ROOT/%_docdir/%base_name/html
#for d in html-api html-assistant html-designer html-linguist html-qmake; do
#  for f in doc/$d/*; do
#    test -f $f && install -m 644 $f  $RPM_BUILD_ROOT/%_docdir/%base_name/html
#  done
rm -rf $RPM_BUILD_ROOT/usr/{bin,%_lib}

# no baselibs supplements for older distros
%if %suse_version < 1110
  sed -i -e 's, supplements .*,,' $RPM_SOURCE_DIR/baselibs.conf

%dir /usr/share/doc/packages/%base_name

openSUSE Build Service is sponsored by