A new user interface for you! Read more...

File messagingframework.spec of Package messagingframework

# norootforbuild

Name:           messagingframework
Summary:        Qt Messaging Framework
Version:        2010W22
Release:        1.34
Group:          System/Libraries
License:        LGPLv2
URL:            http://qt.nokia.com
Source0:        %{name}-%{version}.tar.bz2
Patch1:         messagingframework-install-plugins-under-lib.patch
Patch2:         messagingframework-install-tests-under-share.patch
BuildRequires:  pkgconfig(QtCore) >= 4.6.0
BuildRequires:  pkgconfig(QtDBus)
BuildRequires:  pkgconfig(QtOpenGL)
BuildRequires:  pkgconfig(QtMultimedia)
BuildRequires:  pkgconfig(QtNetwork)
BuildRequires:  pkgconfig(QtGui)
BuildRequires:  qt-devel doxygen icu
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gstreamer-base-0.10)
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(contextprovider-1.0)
BuildRequires:  pkgconfig(gl)
BuildRequires:  libicu-devel
BuildRequires:  libqt4-devel
BuildRequires:	libQtWebKit-devel
BuildRequires:	chrpath

BuildRoot:  %{_tmppath}/%{name}-%{version}-build

%description
The Qt Messaging Framework, QMF, consists of a C++ library and daemon
server process that can be used to build email clients, and more
generally software that interacts with email and mail servers.


%package devel
Summary:    Development files for using QMF
Group:      Development/Languages/C and C++
Requires:   %{name} = %{version}

%description devel
This package contains the files necessary to develop QMF applications


%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%patch2 -p1

%define _qt4_prefix %{_libdir}/qt4
%define _qt4_plugindir %{_qt4_prefix}/plugins
%define _qt4_testdir %{_qt4_prefix}/tests

%build
export PATH=$PATH:%_libdir/qt4/bin
export QMF_INSTALL_ROOT=%_prefix
qmake QMF_INSTALL_ROOT=$QMF_INSTALL_ROOT

# Call make instruction with smp support
make %{?jobs:-j%jobs}

%install
%makeinstall INSTALL_ROOT=%{buildroot}

# messagingframework.pc  
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat >%{buildroot}%{_libdir}/pkgconfig/QtMessagingFramework.pc<<EOF
libdir=%_libdir
includedir=%{_includedir}/QtMessagingFramework

Name: Qtmessagingframework
Description: Qt Messaging Framework
Version: %{version}
EOF

%ifarch x86_64
mv %buildroot/%_prefix/lib/* %buildroot/%_libdir
%endif

chrpath --delete $RPM_BUILD_ROOT/%{_qt4_testdir}/messagingframework/tst_*

%check
make check

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%dir %{_qt4_plugindir}/composers
%dir %{_qt4_plugindir}/contentmanagers
%dir %{_qt4_plugindir}/messageservices
%dir %{_qt4_plugindir}/viewers
%_bindir/*
%_libdir/*.so.*
%{_qt4_plugindir}/composers/*.so
%{_qt4_plugindir}/contentmanagers/*.so
%{_qt4_plugindir}/messageservices/*.so
%{_qt4_plugindir}/viewers/*.so


%files devel
%defattr(-,root,root,-)
%_libdir/*.so
%_libdir/pkgconfig/*.pc
%_includedir/messageserver
%_includedir/qtopiamail
%{_qt4_testdir}

%changelog