File mingw32-kde4-filesystem.spec of Package mingw32-kde4-filesystem

#
# spec file for package kde4-filesystem
#
# 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/
#


Name:           mingw32-kde4-filesystem
Url:            http://www.kde.org
Version:        4.14.60
Release:        0
BuildRequires:  mingw32-filesystem
Requires:       mingw32-filesystem
Requires:       mingw32-libqt4-filesystem
Summary:        KDE4 Directory Layout
License:        LGPL-2.1-or-later
Group:          System/Fhs
Source0:        macros.mingw32-kde4
Source1:        COPYING
Source99:       kde4-filesystem-rpmlintrc
BuildArch:      noarch

#
# keep in sync with macros.kde4
# TODO: can we include macros.kde4 directly to define it?
%define _mingw32_kde_config_dir %{_mingw32_datadir}/kde4/config

%description
This package installs the KDE directory structure.

%prep

%build

%install
install -D -m644 %{SOURCE0} %{buildroot}%{_rpmmacrodir}/macros.mingw32-kde4
install -D -m644 %{SOURCE1} %{buildroot}%{_mingw32_docdir}/kde4-filesystem/COPYING
mkdir -p %{buildroot}/%{_mingw32_kde_config_dir}
mkdir -p %{buildroot}%{_mingw32_datadir}/applications/kde4
for size in scalable 128x128 64x64 48x48 32x32 22x22 16x16; do
for type in actions apps devices filesystems mimetypes places status; do
  for theme in crystalsvg oxygen hicolor locolor; do
    mkdir -p %{buildroot}%{_mingw32_datadir}/icons/$theme/$size/$type
  done
done
done
mkdir -p %{buildroot}%{_mingw32_datadir}/icons/oxygen/scalable/apps/small/{16x16,32x32}
mkdir -p %{buildroot}%{_mingw32_datadir}/icons/oxygen/scalable/status/small/{16x16,22x22,48x48}
mkdir -p %{buildroot}%{_mingw32_datadir}/kde4/apps
mkdir -p %{buildroot}%{_mingw32_datadir}/kde4/services/phononbackends
mkdir -p %{buildroot}%{_mingw32_datadir}/kde4/services/ServiceMenus
mkdir -p %{buildroot}%{_mingw32_datadir}/metainfo
mkdir -p %{buildroot}%{_mingw32_datadir}/apps
mkdir -p %{buildroot}%{_mingw32_datadir}/apps/color-schemes
mkdir -p %{buildroot}%{_mingw32_datadir}/apps/khtml/kpartplugins
mkdir -p %{buildroot}%{_mingw32_datadir}/apps/konqsidebartng/virtual_folders/services
mkdir -p %{buildroot}%{_mingw32_datadir}/config
mkdir -p %{buildroot}%{_mingw32_datadir}/config.kcfg
mkdir -p %{buildroot}%{_mingw32_includedir}/KDE
mkdir -p %{buildroot}%{_mingw32_libdir}/kde4
mkdir -p %{buildroot}%{_mingw32_libdir}/kde4/libexec
mkdir -p %{buildroot}%{_mingw32_libdir}/kde4/plugins
for lang in `find %{_mingw32_prefix}/share/locale/* -maxdepth 0 -type d -printf "%f\n"`; do mkdir -p %{buildroot}%{_mingw32_datadir}/doc/kde/HTML/$lang; done

%_mingw32_create_macro_links mingw32-cmake-kde4

%files
%defattr(-,root,root)
%{_bindir}/mingw32-cmake-kde4
%{_rpmmacrodir}
%{_mingw32_kde_config_dir}
%{_mingw32_datadir}/apps
%{_mingw32_datadir}/config
%{_mingw32_datadir}/config.kcfg
%{_mingw32_datadir}/kde4
# appstream data
%dir %{_mingw32_datadir}/metainfo
%{_mingw32_datadir}/metainfo
%dir %{_mingw32_datadir}/kde4/apps
%{_mingw32_datadir}/kde4/apps
%dir %{_mingw32_datadir}/applications
%{_mingw32_datadir}/applications/kde4
%{_mingw32_datadir}/doc/kde
%dir %{_mingw32_datadir}/icons
%{_mingw32_datadir}/icons/*
%{_mingw32_datadir}/kde4/services/phononbackends
%dir %{_mingw32_docdir}/kde4-filesystem
%{_mingw32_docdir}/kde4-filesystem/COPYING
%{_mingw32_includedir}/KDE
%{_mingw32_libdir}/kde4

%changelog
openSUSE Build Service is sponsored by