From 17d26e3404fc1ece5550969926ec54d3ee2233dbb40ceb936c2731c95dd45035 Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Tue, 20 May 2014 10:48:20 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/oxygen5?expand=0&rev=5 --- oxygen5.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/oxygen5.spec b/oxygen5.spec index 9211aae..3aca768 100644 --- a/oxygen5.spec +++ b/oxygen5.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%define kwin_deco 0 Name: oxygen5 Version: 4.96.0 @@ -35,7 +36,9 @@ BuildRequires: ki18n-devel BuildRequires: kservice-devel BuildRequires: kwidgetsaddons-devel BuildRequires: kwindowsystem-devel +%if %kwin_deco BuildRequires: libkdecorations-devel +%endif BuildRequires: libxcb-devel BuildRequires: update-desktop-files BuildRequires: xz @@ -87,12 +90,15 @@ Group: System/GUI/KDE %description -n oxygen-style5 This package contains the libraries of the Oxygen style. +%if %kwin_deco %package -n oxygen-decoration5 Summary: Oxygen's KWin decoration Group: System/GUI/KDE +%requires_eq oxygen-style5 %description -n oxygen-decoration5 This package contains the libraries Oxygen's KWin decoration. +%endif %prep %setup -q -n oxygen-%{version} @@ -110,9 +116,11 @@ sed -i '/^ecm_optional_add_subdirectory( po )/d' CMakeLists.txt %postun -n oxygen-style5 -p /sbin/ldconfig +%if %kwin_deco %post -n oxygen-decoration5 -p /sbin/ldconfig %postun -n oxygen-decoration5 -p /sbin/ldconfig +%endif %files %defattr(-,root,root) @@ -129,11 +137,13 @@ sed -i '/^ecm_optional_add_subdirectory( po )/d' CMakeLists.txt %{_kf5_plugindir}/styles/ %{_kf5_sharedir}/kstyle/ +%if %kwin_deco %files -n oxygen-decoration5 %defattr(-,root,root) %doc COPYING* %{_kf5_bindir}/oxygen-shadow-demo5 %{_kf5_plugindir}/kwin/ +%endif %files -n oxygen-sounds5 %defattr(-,root,root)