File mingw64-cross-kde4-tools.spec of Package mingw64-cross-kde4-tools

#
# spec file for package kdoctools
#
# 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 kde4_version 4.14.38

# make sure to support native linux requirements
%define _mingw64_findprovides    /usr/lib/rpm/find-provides
%define _mingw64_findrequires    /usr/lib/rpm/find-requires
%define _mingw64_install_post    /usr/lib/rpm/mingw64-install-post.sh

Name:           mingw64-cross-kde4-tools
Version:        4.14.60
Release:        0
Summary:        KDE4 tools for MinGW cross compiling
License:        LGPL-2.1-or-later and MIT
Group:          System/GUI/KDE
Url:            http://www.kde.org
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-kde4-filesystem >= %{version} 
BuildRequires:  libkdecore4-devel >= %{kde4_version}
BuildRequires:  kdelibs4-doc >= %{kde4_version}
BuildRequires:  libkde4-devel >= %{kde4_version}
#BuildRequires:  ktexteditor-devel == %{kde4_version}
# FIXME better tierx related cross tools package ?
#BuildRequires:  sonnet-devel == %{kde4_version}
#Requires:       pkgconfig(Qt5Core) >= 5.2.0
Source1:        %{name}.rpmlintrc
%_mingw64_package_header

%description
This package contains KDE4 related tools for MinGW cross compiling.

%prep

%build

%install
  %define _mingw64_kde4_cross_bindir /usr/%{_mingw64_target}/bin

  # checkxml katehighlightingindexer parsetrigrams
  for i in docbookl10nhelper icemaker kconfig_compiler makekdewidgets meinproc4; do
    mkdir -p %{buildroot}%{_mingw64_kde4_cross_bindir}
    cp -p %{_bindir}/$i %{buildroot}%{_mingw64_kde4_cross_bindir}
    mkdir -p %{buildroot}%{_bindir}
    ln -s ../%{_mingw64_target}/bin/$i %{buildroot}%{_bindir}/%{_mingw64_target}-$i
    echo %{_mingw64_kde4_cross_bindir}/$i >> files.list
    echo %{_bindir}/%{_mingw64_target}-$i >> files.list
  done
  
%files -f files.list
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by