|
|
@ -1,20 +1,30 @@
|
|
|
|
|
|
|
|
# uncomment to enable bootstrap mode
|
|
|
|
|
|
|
|
#global bootstrap 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if !0%{?bootstrap}
|
|
|
|
|
|
|
|
# avoid slow arm arch for now
|
|
|
|
|
|
|
|
%ifnarch %{arm}
|
|
|
|
|
|
|
|
%global tests 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
# Whether to build experimental Wayland support
|
|
|
|
# Whether to build experimental Wayland support
|
|
|
|
# NOTE: Does not build on F20 due to too old Wayland and requires kf5-kwayland,
|
|
|
|
# NOTE: Does not build on F20 due to too old Wayland and requires kf5-kwayland,
|
|
|
|
# which is not available in Fedora yet
|
|
|
|
# which is not available in Fedora yet
|
|
|
|
%if 0%{?fedora} > 21
|
|
|
|
%if 0%{?fedora} > 21
|
|
|
|
%global wayland 1
|
|
|
|
%global wayland 1
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: kwin
|
|
|
|
Name: kwin
|
|
|
|
Version: 5.10.3
|
|
|
|
Version: 5.10.3
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: KDE Window manager
|
|
|
|
Summary: KDE Window manager
|
|
|
|
|
|
|
|
|
|
|
|
# all sources are effectively GPLv2+, except for:
|
|
|
|
# all sources are effectively GPLv2+, except for:
|
|
|
|
# scripts/enforcedeco/contents/code/main.js
|
|
|
|
# scripts/enforcedeco/contents/code/main.js
|
|
|
|
# KDE e.V. may determine that future GPL versions are accepted
|
|
|
|
# KDE e.V. may determine that future GPL versions are accepted
|
|
|
|
License: GPLv2 or GPLv3
|
|
|
|
License: GPLv2 or GPLv3
|
|
|
|
URL: https://cgit.kde.org/%{name}.git
|
|
|
|
URL: https://userbase.kde.org/KWin
|
|
|
|
|
|
|
|
#URL: https://cgit.kde.org/%{name}.git
|
|
|
|
|
|
|
|
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
|
|
%if %{revision} >= 50
|
|
|
|
%if %{revision} >= 50
|
|
|
@ -100,6 +110,12 @@ BuildRequires: kdecoration-devel >= %{majmin_ver}
|
|
|
|
BuildRequires: kscreenlocker-devel >= %{majmin_ver}
|
|
|
|
BuildRequires: kscreenlocker-devel >= %{majmin_ver}
|
|
|
|
BuildRequires: plasma-breeze-devel >= %{majmin_ver}
|
|
|
|
BuildRequires: plasma-breeze-devel >= %{majmin_ver}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?tests}
|
|
|
|
|
|
|
|
BuildRequires: dbus-x11
|
|
|
|
|
|
|
|
BuildRequires: openbox
|
|
|
|
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
## Runtime deps
|
|
|
|
## Runtime deps
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-common%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}-common%{?_isa} = %{version}-%{release}
|
|
|
@ -113,7 +129,7 @@ Requires: kf5-filesystem
|
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
BuildRequires: qt5-qtmultimedia-devel
|
|
|
|
BuildRequires: qt5-qtmultimedia-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Requires: qt5-qtmultimedia
|
|
|
|
Requires: qt5-qtmultimedia%{?_isa}
|
|
|
|
# libkdeinit5_kwin*
|
|
|
|
# libkdeinit5_kwin*
|
|
|
|
%{?kf5_kinit_requires}
|
|
|
|
%{?kf5_kinit_requires}
|
|
|
|
|
|
|
|
|
|
|
@ -193,7 +209,8 @@ sed -i \
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%{cmake_kf5} ..
|
|
|
|
%{cmake_kf5} .. \
|
|
|
|
|
|
|
|
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
@ -210,6 +227,16 @@ cat %{name}.lang %{name}-doc.lang | sort | uniq -u > kwin5.lang
|
|
|
|
ln -s kwin_x11 %{buildroot}%{_bindir}/kwin
|
|
|
|
ln -s kwin_x11 %{buildroot}%{_bindir}/kwin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
%if 0%{?tests}
|
|
|
|
|
|
|
|
# using low timeout to avoid extending buildtimes too much for now -- rex
|
|
|
|
|
|
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
|
|
|
|
xvfb-run -a \
|
|
|
|
|
|
|
|
dbus-launch --exit-with-session \
|
|
|
|
|
|
|
|
make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||:
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
@ -290,6 +317,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Jul 02 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.10.3-2
|
|
|
|
|
|
|
|
- enable tests, support %%bootstrap, update URL
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 27 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.10.3-1
|
|
|
|
* Tue Jun 27 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.10.3-1
|
|
|
|
- 5.10.3
|
|
|
|
- 5.10.3
|
|
|
|
|
|
|
|
|
|
|
|