File libqt5-qtgraphicaleffects.spec.in of Package libqt5-qtbase
#
# spec file for package libqt5-qtgraphicaleffects
#
# Copyright (c) 2012 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 http://bugs.opensuse.org/
#
%define _prefix /opt/qt-5.0
%define packageprefix opt-
Name: %{packageprefix}libqt5-qtgraphicaleffects
# COMMON-VERSION-BEGIN
# COMMON-VERSION-END
BuildRequires: %{packageprefix}libQtQuick-devel
BuildRequires: xz
Url: http://qt.digia.com
Summary: Qt 5 Graphical Effects
License: SUSE-LGPL-2.1-with-nokia-exception-1.1 or GPL-3.0
Group: Development/Libraries/X11
Requires: %{packageprefix}libQtQuick5
# COMMON-BEGIN
# COMMON-END
%build
export QTDIR=`pwd`/qtbase
export PATH=$PATH:%{_prefix}/bin
cd qtgraphicaleffects
%ifarch ppc64
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mminimal-toc"
%endif
export CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -DOPENSSL_LOAD_CONF"
export CFLAGS="$CFLAGS $RPM_OPT_FLAGS -DOPENSSL_LOAD_CONF"
export MAKEFLAGS="%{?jobs:-j %jobs}"
qmake
make
%install
cd qtgraphicaleffects
make INSTALL_ROOT=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT/%_libdir -type f -name '*la' -print -exec perl -pi -e 's, -L%{_builddir}/\S+,,g' {} \;
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,755)
%_libdir/qt5/qml/QtGraphicalEffects
%changelog