# # spec file for package oxygen5 # # 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/ # %define kwin_deco 1 Name: oxygen5 Version: 5.0.95~git20140924 Release: 0 Summary: Oxygen style, KWin decoration, cursors and sounds License: GPL-2.0+ Group: System/GUI/KDE Url: http://www.kde.org Source: http://download.kde.org/stable/plasma/%{version}/oxygen-%{version}.tar.xz Source: oxygen-%{version}.tar.xz Source1: baselibs.conf BuildRequires: frameworkintegration-devel BuildRequires: gcc-c++ BuildRequires: kcompletion-devel BuildRequires: kconfig-devel BuildRequires: kf5-filesystem BuildRequires: kguiaddons-devel BuildRequires: ki18n-devel BuildRequires: kservice-devel BuildRequires: kwidgetsaddons-devel BuildRequires: kwindowsystem-devel %if %kwin_deco BuildRequires: libkdecorations-devel %endif BuildRequires: update-desktop-files BuildRequires: xz BuildRequires: pkgconfig(Qt5Core) >= 5.3.0 BuildRequires: pkgconfig(Qt5DBus) >= 5.3.0 BuildRequires: pkgconfig(Qt5Test) >= 5.3.0 BuildRequires: pkgconfig(Qt5Widgets) >= 5.3.0 BuildRequires: pkgconfig(Qt5X11Extras) >= 5.3.0 BuildRequires: pkgconfig(x11-xcb) BuildRequires: pkgconfig(xcb) Requires: oxygen5-decoration Requires: oxygen5-style Recommends: oxygen5-sounds Recommends: oxygen-cursors BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Provides Oxygen style, KWin decoration, cursors and sounds. %package devel Summary: KDE Base Libraries License: GPL-2.0+ Group: Development/Libraries/KDE Requires: %{name} = %{version} %description devel Provides Oxygen style, KWin decoration, cursors and sounds. Development files. %package sounds Summary: The KDE Workspace Sounds License: GPL-2.0+ Group: System/GUI/KDE Obsoletes: oxygen-sounds5 Provides: oxygen-sounds5 %description sounds This package contains the default sound set for a K Desktop Environment workspace. %package cursors Summary: The KDE Workspace Cursors License: GPL-3.0+ Group: System/GUI/KDE Provides: oxygen-cursors = %{version} Conflicts: oxygen-cursors4 Obsoletes: oxygen-cursors5 Provides: oxygen-cursors5 %description cursors This package contains the default cursor set for a K Desktop Environment workspace. %package style Summary: Oxygen style License: GPL-2.0+ Group: System/GUI/KDE Obsoletes: oxygen-style5 Provides: oxygen-style5 %description style This package contains the libraries of the Oxygen style. %if %kwin_deco %package decoration Summary: Oxygen's KWin decoration License: GPL-2.0+ Group: System/GUI/KDE Obsoletes: oxygen-decoration5 Provides: oxygen-decoration5 %requires_eq oxygen5-style %description decoration This package contains the libraries Oxygen's KWin decoration. %endif %prep %setup -q -n oxygen-%{version} sed -i '/^ecm_optional_add_subdirectory(po)/d' CMakeLists.txt %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %post style -p /sbin/ldconfig %postun style -p /sbin/ldconfig %if %kwin_deco %post decoration -p /sbin/ldconfig %postun decoration -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc COPYING* %files style %defattr(-,root,root) %doc COPYING* %{_kf5_bindir}/oxygen-demo5 %{_kf5_bindir}/oxygen-settings5 %{_kf5_libdir}/liboxygenstyle5.so.* %{_kf5_libdir}/liboxygenstyleconfig5.so.* %{_kf5_plugindir}/kstyle_oxygen_config.so %{_kf5_plugindir}/styles/ %{_kf5_sharedir}/kstyle/ %{_kf5_plasmadir}/ %if %kwin_deco %files decoration %defattr(-,root,root) %doc COPYING* %{_kf5_plugindir}/kwin/ %endif %files sounds %defattr(-,root,root) %doc COPYING* %{_kf5_sharedir}/sounds/ %files cursors %defattr(-,root,root) %doc COPYING* %{_kf5_sharedir}/icons/Oxygen_*/ %{_kf5_sharedir}/icons/KDE_Classic/ %files devel %defattr(-,root,root) %doc COPYING* %{_kf5_libdir}/liboxygenstyleconfig5.so %{_kf5_libdir}/liboxygenstyle5.so %changelog