File mingw64-libdbusmenu-qt.spec of Package mingw64-libdbusmenu-qt
#
# spec file for package mingw64-libdbusmenu-qt
#
# Copyright (c) 2015 SUSE LINUX 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/
#
Name: mingw64-libdbusmenu-qt
Version: 0.9.2
Release: 0
Url: https://launchpad.net/libdbusmenu-qt/
Summary: A Qt implementation of the DBusMenu protocol
License: LGPL-2.0-or-later
Group: System/Libraries
Source0: http://launchpad.net/libdbusmenu-qt/trunk/%{version}/+download/libdbusmenu-qt-%{version}.tar.bz2
Patch0: dbusmenu-qt-0.9.2.diff
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-cross-cmake
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: mingw64-libqjson-devel
BuildRequires: mingw64-libqt4-devel
BuildRequires: mingw64-libqt4-filesystem
BuildRequires: mingw64-pkg-config
# for qdbuscpp2xml
BuildRequires: libqt4-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
This library provides a Qt implementation of the DBusMenu protocol.
The DBusMenu protocol makes it possible for applications to export and import
their menus over DBus.
%package devel
Summary: Development package for libdbusmenu-qt
Group: Development/Libraries/Other
%description devel
This package contains development files for libdbusmenu-qt.
%_mingw64_debug_package
%prep
%setup -q -n libdbusmenu-qt-%{version}
%patch0 -p1
# Remove build time references so build-compare can do its work
sed -i "s/HTML_TIMESTAMP = YES/HTML_TIMESTAMP = NO/" Doxyfile.in
%build
%{_mingw64_cmake_qt4}
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
# Install the documentation in the correct location
mkdir -p %{buildroot}%{_mingw64_docdir}/%{name}-devel
mv %{buildroot}%{_mingw64_datadir}/doc/dbusmenu-qt/ %{buildroot}%{_mingw64_docdir}/%{name}-devel/html/
# Install additional documentation
install -pm 0644 COPYING NEWS README %{buildroot}%{_mingw64_docdir}/%{name}-devel/
%fdupes -s %{buildroot}
%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/libdbusmenu-qt.dll
%files devel
%defattr(-,root,root,-)
%doc %{_mingw64_docdir}/%{name}-devel/
%{_mingw64_includedir}/dbusmenu-qt/
%{_mingw64_libdir}/libdbusmenu-qt.dll.a
%{_mingw64_libdir}/pkgconfig/dbusmenu-qt.pc
%changelog