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
%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
# COMMON-BEGIN
# COMMON-END

%build
export QTDIR=$PWD
export PATH=$PWD/bin:$PATH
export LD_LIBRARY_PATH=$PWD/lib/
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
for f in mkspecs/linux-g*/qmake.conf; do
  sed -i -e "/QMAKE_CFLAGS_RELEASE[ \t]*=/s,\$, $RPM_OPT_FLAGS," $f
done
sed -i -e "s,^CXXFLAGS[ \t]*=,& $RPM_OPT_FLAGS," qmake/Makefile.unix
echo yes | ./configure %common_options
pushd src
make %{?jobs:-j%jobs} sub-moc sub-rcc sub-uic
popd

%install
export QTDIR=$PWD
make INSTALL_ROOT=$RPM_BUILD_ROOT install_htmldocs
pushd examples
make INSTALL_ROOT=$RPM_BUILD_ROOT install
popd
find $RPM_BUILD_ROOT/%_docdir/libqt4/examples -type f -perm /111 -print0 | xargs -0 rm -f
rm -rf $RPM_BUILD_ROOT/usr/{bin,%_lib}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,755)
/usr/share/doc/packages/libqt4/html
/usr/share/doc/packages/libqt4/examples

%changelog
openSUSE Build Service is sponsored by