File oxygen-gtk.spec of Package oxygen-gtk
#
# spec file for package oxygen-gtk
#
# Copyright (c) 2011 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-gtk
Version: 1.0.1
Release: 1
License: GNU LGPL v2 or later
Summary: A Port of the default KDE Widget Theme (Oxygen), to GTK
Url: https://projects.kde.org/projects/playground/artwork/oxygen-gtk
Group: System/GUI/KDE
Source: http://download.kde.org/download.php?url=stable/oxygen-gtk/%{version}/src/%{name}-%{version}.tar.bz2
Source1: baselibs.conf
Patch0: conservative-argb.diff
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Oxygen-Gtk is a port of the default KDE widget theme (Oxygen), to gtk.
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.
%prep
%setup -q
%patch0 -p1
%build
%__mkdir_p build
pushd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
cmake .. \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
%ifarch x86_64
-DLIB_SUFFIX=64 \
%endif
-DCMAKE_BUILD_TYPE=release
%__make %{?_smp_mflags} VERBOSE=1
popd
%install
pushd build
%__make install DESTDIR=%{buildroot}
popd
%clean
test %{buildroot} != "/" && %__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS README
%{_libdir}/gtk-2.0/2.10.0/engines/liboxygen-gtk.so
%{_datadir}/themes/oxygen-gtk
%changelog