File mingw64-kdevelop4-pg-qt.spec of Package mingw64-kdevelop4-pg-qt

#
# spec file for package mingw64-kdevelop4-pg-qt
#
# Copyright (c) 2015 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 _name   kdevelop4-pg-qt
Name:           mingw64-%{_name}
Version:        1.0.0
Release:        0
Summary:        Supporting package for the additional plugins for Kdevelop4
License:        LGPL-2.0-or-later and GPL-2.0-or-later
Group:          Development/Tools/IDE
Url:            http://www.kdevelop.org
Source0:        kdevelop-pg-qt-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM fix-error.diff 
Patch1:         fix-error.diff
Patch2:         yymore_used_but_not_detected-undefined.patch

BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-kde4-tools >= 4.7
BuildRequires:  mingw64-libkde4-devel
Obsoletes:      %{name}-devel
BuildArch:      noarch
%_mingw64_package_header_debug
%_mingw64_kde4_runtime_requires

%description
Supporting package for the additional plugins for Kdevelop4 Integrated Development Environment

%_mingw64_debug_package

%prep
%setup -q -n kdevelop-pg-qt-%{version}
%patch -P 1 -p1
%patch -P 2 -p1

%build
  %_mingw64_cmake_kde4 -d build
  %_mingw64_cmake_build

%install
  %_mingw64_kde4_makeinstall -C build
  %_mingw64_kde4_post_install

%files
%defattr(-,root,root)
%{_mingw64_kde4_bindir}/kdev-pg-qt.exe
%{_mingw64_kde4_prefix}/include/kdevelop-pg-qt/
%{_mingw64_kde4_libdir}/cmake/KDevelop-PG-Qt

%changelog
openSUSE Build Service is sponsored by