File libqt4-devel-doc-data.spec 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
%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-BEGIN
Version:        4.2.90
Release:        1
%define x11_free  -x11-opensource-src-
%define rversion 4.3.0beta
Source:         qt%x11_free%rversion.tar.bz2
Source10:       qt4config.desktop
Source11:       designer4.desktop
Source12:       linguist4.desktop
Source13:       assistant4.desktop
Patch2:         qt-never-strip.diff
Patch3:         plastik-default.diff
Patch5:         lib64.patch
Patch6:         use-freetype-default.diff
Patch18:        fix-string-literal-comparison.diff
Patch20:        qt-font-choose.diff
Patch21:        0142-uic3-wordWrapAttribute.diff
Patch24:        qt4-pedantic-headers.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define common_options -fast -no-separate-debug-info -shared -xkb -tablet -xrender -xrandr -xinerama -xshape -sm -no-nas-sound -no-rpath -system-libjpeg -system-libpng -accessibility -cups -stl -nis -system-zlib -qt-gif -prefix /usr -L %_libdir -libdir %_libdir -docdir %_docdir/libqt4 -examplesdir %_docdir/libqt4/examples -demosdir %_libdir/qt4/demos -plugindir %plugindir -translationdir /usr/share/qt4/translations -iconv -sysconfdir /etc/settings -datadir /usr/share/qt4/ -no-pch

%description
Qt is a set of libraries for developing applications.

This package contains base tools, like string, xml, and network
handling.



Authors:
--------
    Troll Tech AS, Norway

%prep
%define plugindir %_libdir/qt4/plugins
%setup -q -n qt%x11_free%rversion
%patch2
%patch3
%patch5
%patch6
%patch18
%patch20
%patch21
%patch24
# be sure not to use them
rm -rf src/3rdparty/{libjpeg,freetype,libpng,zlib}
# COMMON-END
# 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-tools_moc sub-tools_rcc sub-tools_uic sub-tools_uic3
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