File libqt4-devel-doc-data.spec.in of Package libqt4

#
# spec file for package qt-sql-plugins (Version 4.1.3)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild
# nodebuginfo

Name:           libqt4-devel-doc-data
BuildRequires:  cups-devel freeglut-devel freetype2-devel gcc-c++ libjpeg-devel libpng-devel pkgconfig libqt4-devel
BuildRequires:  openssl-devel sqlite-devel libqt4-sql-sqlite
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
URL:            http://www.trolltech.com
License:        QPL, GPL
Group:          System/Libraries
Autoreqprov:    on
Summary:        Qt documentation (architecture independent files)
BuildArch:      noarch
%requires_eq    libqt4
# COMMON-BEGIN
# COMMON-END

%build
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
  OPTIONS="-system-sqlite"
%else
  OPTIONS=""
%endif
export MAKEFLAGS="%{?jobs:-j %jobs}"
echo yes | ./configure %common_options $OPTIONS -plugin-sql-sqlite -nomake demos -xmlpatterns -webkit
%check_config
pushd src
make %{?jobs:-j%jobs} sub-moc sub-rcc sub-uic
popd
pushd tools
make %{?jobs:-j%jobs} sub-assistant
popd
pushd tools/qdoc3
make %{?jobs:-j%jobs}
popd
test -d doc/qch || make %{?jobs:-j%jobs} docs
./config.status

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

#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
#done
rm -rf $RPM_BUILD_ROOT/usr/{bin,%_lib}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
%dir /usr/share/doc/packages/%base_name
/usr/share/doc/packages/%base_name/qch
/usr/share/doc/packages/%base_name/html*
/usr/share/doc/packages/%base_name/src

%changelog
openSUSE Build Service is sponsored by