File qtcurve-kde4.spec of Package qtcurve-kde4
#
# spec file for package qtcurve-kde4
#
# 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/
#
Name: qtcurve-kde4
Version: 1.8.18
Release: 0
Summary: QtCurve style for KDE 4
License: LGPL-2.1+
Group: System/GUI/KDE
Url: https://github.com/QtCurve/qtcurve
Source0: qtcurve-%{version}.tar.gz
# PATCH-FIX-UPSTREAM sync_to_master.diff -- added various bugfixes from master branch/commit ca1160474
Patch0: sync_to_master.diff
BuildRequires: gtk2-devel
BuildRequires: kdebase4-workspace-devel
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb)
%if %suse_version > 1230
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
%if %suse_version > 1310
BuildRequires: libQt5Widgets-private-headers-devel
%else
BuildRequires: libqt5-qtbase-private-headers-devel
%endif
%endif
Requires: libqtcurve-utils1 = %{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-utils1
Summary: QtCurve style for KDE 4
Group: System/GUI/KDE
%description -n libqtcurve-utils1
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-cairo0
Summary: QtCurve style for KDE 4
Group: System/GUI/KDE
%description -n libqtcurve-cairo0
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-cairo0 = %{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+.
%if %suse_version > 1230
%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+.
%endif
%prep
%setup -q -n qtcurve-%{version}
%patch0 -p1
%build
%if %suse_version > 1230
%cmake_kde4 -d build -- -DENABLE_QT5=ON -DENABLE_GTK2=ON
%else
%cmake_kde4 -d build -- -DENABLE_QT5=OFF -DENABLE_GTK2=ON
%endif
%make_jobs
%install
pushd build
%make_install
popd
%find_lang qtcurve
%kde_post_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libqtcurve-utils1 -p /sbin/ldconfig
%postun -n libqtcurve-utils1 -p /sbin/ldconfig
%post -n libqtcurve-cairo0 -p /sbin/ldconfig
%postun -n libqtcurve-cairo0 -p /sbin/ldconfig
%files -n libqtcurve-utils1
%defattr(-,root,root)
%{_kde4_libdir}/libqtcurve-utils.so.*
# We don't need the devel symlink
%exclude %{_kde4_libdir}/libqtcurve-utils.so
%files -n libqtcurve-cairo0
%defattr(-,root,root)
%{_kde4_libdir}/libqtcurve-cairo.so.*
# We don't need the devel symlink
%exclude %{_kde4_libdir}/libqtcurve-cairo.so
%files -f qtcurve.lang
%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
%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/
%if %suse_version > 1230
%files -n qtcurve-qt5
%defattr(-,root,root)
%doc ChangeLog.md COPYING README.md TODO.md
%{_libqt5_plugindir}/
%endif
%changelog