File oxygen5.spec of Package oxygen5.openSUSE_13.2_Update

#
# spec file for package oxygen5
#
# Copyright (c) 2015 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/
#


%bcond_without lang
%define kwin_deco 1

Name:           oxygen5
Version:        5.3.2
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
Source99:       %{name}-rpmlintrc
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:  libkdecoration2-devel
%endif
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:  pkgconfig(Qt5DBus) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Test) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires:  pkgconfig(Qt5X11Extras) >= 5.4.0
BuildRequires:  pkgconfig(x11-xcb)
BuildRequires:  pkgconfig(xcb)
%if %kwin_deco
Requires:       oxygen5-decoration
%else
Obsoletes:      oxygen5-decoration
%endif
Requires:       oxygen5-style
Recommends:     oxygen5-sounds
Recommends:     oxygen-cursors
%if %{with lang}
Recommends:     %{name}-lang
%endif
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
Supplements:    packageand(oxygen5-style:kwin5)
Obsoletes:      oxygen-decoration5
Provides:       oxygen-decoration5
%requires_eq oxygen5-style

%description decoration
This package contains the libraries Oxygen's KWin decoration.
%endif

%lang_package
%prep
%setup -q -n oxygen-%{version}

%build
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
%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}/
%dir %{_kf5_servicesdir}
%{_kf5_servicesdir}/oxygenstyleconfig.desktop

%if %kwin_deco
%files decoration
%defattr(-,root,root)
%doc COPYING*
%{_kf5_plugindir}/org.kde.kdecoration2/
%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

%if %{with lang}
%files lang
%defattr(-,root,root)
%{_kf5_localedir}/
%endif

%changelog