File oxygen-gtk3.spec of Package oxygen-gtk3

#
# spec file for package oxygen-gtk3
#
# Copyright (c) 2013 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.1.4
Release:        28.1
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:        ftp://ftp.kde.org/pub/kde/stable/oxygen-gtk3/%{version}/src/%{name}-%{version}.tar.bz2
Source100:      baselibs.conf
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.2.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
* Fri May 31 2013 hrvoje.senjan@gmail.com
- Update to version 1.1.4
  * Use popen instead of g_spawn_command_line_sync() (kde#318891)
  * Make sure that 'runCommand' reads the full output of the command
    (kde#318891)
  * Fix command output reading for multi-read case
  * Re-added x2 size increment in case of overflow
  * Check event mask for all GtkWindow and GtkViewport before
    enabling window drag
* Tue Apr 23 2013 hrvoje.senjan@gmail.com
- Update to version 1.1.3
  * Detect aurora as a XUL app (kde#315163)
  * Bump needed cairo version for cairo_surface_create_for_rectangle()
    (kde#316066)
  * Only check pixmap list size in ::isValid (kde#304381)
  * Check cursor shape before accepting event for window dragging
    (kde#317292)
  * Fix crash in pidgin when enabling debug (kde#318002)
  * Fixed memory leaks (kde#318002)
* Wed Jan 30 2013 hrvoje.senjan@gmail.com
- Update to version 1.1.2
  * Bugfix release
  * Fixes for running oxygen-gtk with gnome shell
* Fri Oct  5 2012 mlin@suse.com
- Update to version 1.1.1
  * Thread-proof timers used for transitions and animations (kde#306671)
  * Safer code for Groupbox appearance (kde#305833)
  * Proper rendering of flat GtkEntries
  * More testing options for the demo application
* Sat Jul 21 2012 asterios.dramis@gmail.com
- Update to version 1.1.0:
  * Many improvement for libreoffice, tied to its next release
    (libreoffice v3.6).
  * Fix of most rendering issues introduced with the release of gtk+-3.4.
* Mon Jun 18 2012 asterios.dramis@gmail.com
- Update to version 1.0.5:
  Bugfix release. Fixes include:
  * Several rendering issues with libre-office.
  * Icon positionning in text entries.
* Tue May 15 2012 mlin@suse.com
- Update to version 1.0.4
  * Bugfix release
* Mon Apr 16 2012 mlin@suse.com
- Update to version 1.0.3
  * Bugfix release
  * Due to used macro GTK_STYLE_CLASS_SIDEBAR then added check whether gtk
    version more than 3.2.0
* Sun Mar 25 2012 asterios.dramis@gmail.com
- Update to 1.0.2.1:
  * Bugfix release.
- Removed dbus-glib-1 build requirement (not needed anymore because of use of
  glib's built-in dbus interface).
* Mon Mar 12 2012 asterios.dramis@gmail.com
- Update to 1.0.2:
  Fixes include:
  * Cleanup of signals and hooks when unloading theme.
  * Use of glib's built-in dbus interface.
  * Fixed crash in gtk-chtheme (and possibly other theme-switching
    applications).
  * Fixed margins and spacing for several widgets to make them look more
    similar to Qt's version.
* Fri Feb 17 2012 asterios.dramis@gmail.com
- Update to 1.0.1:
  Fixes include:
  * Email list in evolution.
  * Warnings when parsing CSS style sheet.
  * Icon background with gtk3.3.
  * High memory allocation for cached pixmaps.
- Split the package into gtk3-engine-oxygen and gtk3-theme-oxygen subpackages
  for consistency with other gtk engines and themes (bnc#747107).
* Wed Jan 18 2012 cfarrell@suse.com
- license update: LGPL-2.1+
  COPYING has a LGPL-2.1+ license
* Tue Jan 17 2012 asterios.dramis@gmail.com
- Initial release (version 1.0.0).
openSUSE Build Service is sponsored by