File qtcurve-kde4.spec of Package qtcurve-kde4
#
# spec file for package qtcurve-kde4
#
# 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_with lang
Name: qtcurve-kde4
Version: 1.8.19~git20150303
Release: 0
Summary: QtCurve style for KDE 4
License: LGPL-2.1+
Group: System/GUI/KDE
Url: https://github.com/QtCurve/qtcurve
Source: qtcurve-%{version}.tar.xz
BuildRequires: cmake >= 2.8.12
BuildRequires: extra-cmake-modules
BuildRequires: gtk2-devel
BuildRequires: karchive-devel
BuildRequires: kconfig-devel
BuildRequires: kconfigwidgets-devel
BuildRequires: kdebase4-workspace-devel
BuildRequires: kdelibs4support-devel
BuildRequires: ki18n-devel
BuildRequires: kio-devel
BuildRequires: kwidgetsaddons-devel
BuildRequires: kxmlgui-devel
BuildRequires: libQt5Widgets-private-headers-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb)
Requires: libqtcurve-utils2 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
This is the QtCurve style for KDE 4. QtCurve is available for both
Gtk2+ and Qt3.
%package -n libqtcurve-utils2
Summary: QtCurve style for KDE 4
Group: System/GUI/KDE
%description -n libqtcurve-utils2
This is the QtCurve style for KDE 4. QtCurve is available for both
Gtk2+ and Qt3.
This package cointans basic helper library needed for qtcurve
%package -n libqtcurve-cairo1
Summary: QtCurve style for KDE 4
Group: System/GUI/KDE
%description -n libqtcurve-cairo1
This is the QtCurve style for KDE 4. QtCurve is available for both
Gtk2+ and Qt3.
This package cointans library for common drawing routines
%package -n qtcurve-gtk2
Summary: QtCurve style for GTK+ 2
Group: System/GUI/GNOME
Requires: libqtcurve-cairo1 = %{version}
%description -n qtcurve-gtk2
This package contains the QtCurve engine for GTK+ 2. QtCurve is a set
of widget styles available for Qt and GTK+.
%package -n qtcurve-qt5
Summary: QtCurve style for Qt 5
Group: System/GUI/KDE
%description -n qtcurve-qt5
This package contains the QtCurve style for Qt 5. QtCurve is a set
of widget styles available for Qt and GTK+.
%prep
%setup -q -n qtcurve-%{version}
%build
%cmake_kde4 -d build -- -DENABLE_QT5=ON -DQTC_QT5_ENABLE_KDE=ON
%make_jobs
%install
pushd build
%make_install
popd
%if %{with lang}
%find_lang qtcurve
%endif
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libqtcurve-utils2 -p /sbin/ldconfig
%postun -n libqtcurve-utils2 -p /sbin/ldconfig
%post -n libqtcurve-cairo1 -p /sbin/ldconfig
%postun -n libqtcurve-cairo1 -p /sbin/ldconfig
%files -n libqtcurve-utils2
%defattr(-,root,root)
%{_kde4_libdir}/libqtcurve-utils.so.*
# We don't need the devel symlink
%exclude %{_kde4_libdir}/libqtcurve-utils.so
%files -n libqtcurve-cairo1
%defattr(-,root,root)
%{_kde4_libdir}/libqtcurve-cairo.so.*
# We don't need the devel symlink
%exclude %{_kde4_libdir}/libqtcurve-cairo.so
%files
%defattr(-,root,root)
%doc ChangeLog.md COPYING README.md TODO.md
%{_kde4_modulesdir}/kstyle_qtcurve_config.so
%{_kde4_modulesdir}/kwin_qtcurve_config.so
%{_kde4_modulesdir}/kwin3_qtcurve.so
%{_kde4_modulesdir}/plugins/styles
%{_kde4_appsdir}/QtCurve
%{_kde4_appsdir}/kstyle
%{_kde4_appsdir}/color-schemes/QtCurve.colors
%{_kde4_appsdir}/color-schemes/QtCurveAgua.colors
%{_kde4_appsdir}/kwin/qtcurve.desktop
%if %{with lang}
%files lang -f qtcurve.lang
%defattr(-,root,root)
%endif
%files -n qtcurve-gtk2
%defattr(-,root,root)
%doc ChangeLog.md COPYING README.md TODO.md
%{_kde4_libdir}/gtk-2.0/*/engines/libqtcurve.*
%{_kde4_datadir}/themes/QtCurve/
%files -n qtcurve-qt5
%defattr(-,root,root)
%doc ChangeLog.md COPYING README.md TODO.md
%{_libqt5_plugindir}/
%{_kf5_sharedir}/kstyle/
%changelog