File oxygen-gtk3.spec of Package oxygen-gtk3

#
# spec file for package oxygen-gtk3
#
# 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:           oxygen-gtk3
Version:        1.4.0
Release:        0
Summary:        A Port of the default KDE Widget Theme (Oxygen), to GTK 3.x
License:        LGPL-2.1+
Group:          System/GUI/KDE
Url:            https://projects.kde.org/projects/playground/artwork/oxygen-gtk/
Source0:        http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
Source100:      baselibs.conf
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(cairo)
# See https://bugs.kde.org/show_bug.cgi?id=328854#c2
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.10.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Oxygen-Gtk3 is a port of the default KDE widget theme (Oxygen), to gtk 3.x.

It's primary goal is to ensure visual consistency between gtk-based and qt-based
applications running under KDE. A secondary objective is to also have a
stand-alone nice looking gtk theme that would behave well on other Desktop
Environments.

Unlike other attempts made to port the KDE oxygen theme to gtk, this attempt does
not depend on Qt (via some Qt to Gtk conversion engine), nor does render the
widget appearance via hard coded pixmaps, which otherwise breaks everytime some
setting is changed in KDE.

%package -n gtk3-engine-oxygen
Summary:        Oxygen GTK 3.x Theme Engine
Group:          System/GUI/Other

%description -n gtk3-engine-oxygen
Oxygen-Gtk3 is a port of the default KDE widget theme (Oxygen), to gtk 3.x.

It's primary goal is to ensure visual consistency between gtk-based and qt-based
applications running under KDE. A secondary objective is to also have a
stand-alone nice looking gtk theme that would behave well on other Desktop
Environments.

Unlike other attempts made to port the KDE oxygen theme to gtk, this attempt does
not depend on Qt (via some Qt to Gtk conversion engine), nor does render the
widget appearance via hard coded pixmaps, which otherwise breaks everytime some
setting is changed in KDE.

This package contains the Oxygen gtk 3.x theme engine.

%package -n gtk3-theme-oxygen
Summary:        Oxygen GTK 3.x Theme
Group:          System/GUI/Other
Requires:       gtk3-engine-oxygen = %{version}
# oxygen-gtk3 was last used at version 1.0.0 in K:D:F
Provides:       oxygen-gtk3 = %{version}
Obsoletes:      oxygen-gtk3 < %{version}

%description -n gtk3-theme-oxygen
Oxygen-Gtk3 is a port of the default KDE widget theme (Oxygen), to gtk 3.x.

It's primary goal is to ensure visual consistency between gtk-based and qt-based
applications running under KDE. A secondary objective is to also have a
stand-alone nice looking gtk theme that would behave well on other Desktop
Environments.

Unlike other attempts made to port the KDE oxygen theme to gtk, this attempt does
not depend on Qt (via some Qt to Gtk conversion engine), nor does render the
widget appearance via hard coded pixmaps, which otherwise breaks everytime some
setting is changed in KDE.

This package contains the Oxygen gtk 3.x theme.

%prep
%setup -q

%build
mkdir -p build
pushd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
cmake .. \
        -DCMAKE_SKIP_RPATH=ON \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        %if "%{_lib}" == "lib64"
                -DLIB_SUFFIX=64 \
        %endif
        -DCMAKE_BUILD_TYPE=release
make %{?_smp_mflags} VERBOSE=1
popd

%install
pushd build
%make_install
popd

%files -n gtk3-engine-oxygen
%defattr(-,root,root,-)
%doc AUTHORS COPYING README TODO
%{_libdir}/gtk-3.0/3.0.0/theming-engines/liboxygen-gtk.so

%files -n gtk3-theme-oxygen
%defattr(-,root,root,-)
%doc AUTHORS COPYING README TODO
%{_bindir}/oxygen-gtk3-demo
%dir %{_datadir}/themes/oxygen-gtk
%{_datadir}/themes/oxygen-gtk/gtk-3.0/

%changelog
openSUSE Build Service is sponsored by