File appmenu-qt5.spec of Package appmenu-qt5

#
# spec file for package appmenu-qt5
#
# Copyright (c) 2014 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 rname appmenu-qt
%define rversion 0.2.7daily13.05.02

Name:           appmenu-qt5
Version:        0.2.7~daily13.05.02
Release:        0
Summary:        Application Menu for Qt
License:        LGPL-3.0
Group:          System/GUI/KDE
Url:            https://launchpad.net/appmenu-qt/
Source0:        http://archive.ubuntu.com/ubuntu/pool/main/a/%{rname}/%{rname}_%{rversion}.orig.tar.gz
Source1:        baselibs.conf
BuildRequires:  cmake >= 2.8.0
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(dbusmenu-qt5) >= 0.9.0
Requires:       dbus-1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This projects adds support for application menu to Qt.

%prep
%setup -q -n %{rname}-%{rversion}

%build
export CFLAGS=$RPM_OPT_FLAGS
export CXXFLAGS=$RPM_OPT_FLAGS
mkdir build && cd build && \
cmake -DCMAKE_SKIP_RPATH=ON \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DUSE_QT5=ON \
      -DUSE_QT4=OFF \
      -DCMAKE_BUILD_TYPE=release ..
make %{?_smp_mflags}

%install
cd build
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root,-)
%doc COPYING* LGPL_EXCEPTION.txt NEWS README
%dir %{_libqt5_plugindir}
%dir %{_libqt5_plugindir}/menubar
%{_libqt5_plugindir}/menubar/libappmenu-qt.so

%changelog
openSUSE Build Service is sponsored by