File mingw64-libkdecoration2.spec of Package mingw64-libkdecoration2
#
# spec file for package libkdecoration2
#
# Copyright (c) 2018 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/
#
%define lname mingw64-libkdecorations2-5
%define lname_private mingw64-libkdecorations2private6
%bcond_without lang
%define _name libkdecoration2
Name: mingw64-%{_name}
Version: 5.14.0
Release: 0
Summary: KDE's window decorations library
License: GPL-2.0-or-later
Group: System/GUI/KDE
Url: http://www.kde.org
Source: kdecoration-%{version}.tar.xz
%if %{with lang}
Source1: kdecoration-%{version}.tar.xz.sig
Source2: plasma.keyring
%endif
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-libqt5-qttools >= 5.6.0BuildRequires: mingw64-extra-cmake-modules >= 0.0.11
BuildRequires: mingw64-kf5-filesystem
BuildRequires: mingw64-ki18n-devel
BuildRequires: mingw64-libqt5-qtbase-devel >= 5.6.0
BuildArch: noarch
%_mingw64_package_header_debug
%description
Plugin based library to create window decorations.
%package devel
Summary: KDE's window decorations library (development package)
Group: Development/Libraries/C and C++
Requires: %{lname_private} = %{version}
Requires: %{lname} = %{version}
Requires: mingw64-libqt5-qtbase-devel >= 5.6.0
Obsoletes: mingw64-libkdecorations-devel
%description devel
Development files belonging to kdecoration,
plugin based library to create window decorations.
%package -n %{lname}
Summary: KDE's window decorations library
Group: System/GUI/KDE
Obsoletes: mingw64-libkdecorations5
Recommends: %{lname}-lang
%description -n %{lname}
Plugin based library to create window decorations.
%package -n %{lname_private}
Summary: KDE's window decorations library
Group: System/GUI/KDE
%description -n %{lname_private}
Plugin based library to create window decorations.
%lang_package -n %{lname}
%_mingw64_debug_package
%prep
%setup -q -n kdecoration-%{version}
sed -i 's,5.50.0,5.47.0,g' CMakeLists.txt
sed -i 's,5.11.0,5.9.0,g' CMakeLists.txt
%build
%_mingw64_cmake_kf5 -d build
%_mingw64_cmake_build
%install
%_mingw64_kf5_makeinstall -C build
%if %{with lang}
%_mingw64_find_lang %{name} --all-name
%endif
%files -n %{lname}
%doc COPYING*
%{_mingw64_kf5_bindir}/libkdecorations2.dll
%files -n %{lname_private}
%doc COPYING*
%{_mingw64_kf5_bindir}/libkdecorations2private.dll
%files devel
%doc COPYING*
%{_mingw64_kf5_libdir}/libkdecorations2.dll.a
%{_mingw64_kf5_libdir}/libkdecorations2private.dll.a
%{_mingw64_kf5_libdir}/cmake/KDecoration2/
%{_mingw64_kf5_prefix}/include/KDecoration2/
%{_mingw64_kf5_includedir}/
%if %{with lang}
%files -n %{lname}-lang -f %{name}.lang
%doc COPYING*
%endif
%changelog