%define snap 20111219 Name: oxygen-gtk3 Version: 1.2.0 Release: 0.1.%{?snap}%{?dist} Summary: Oxygen GTK+3 theme Group: User Interface/Desktops License: LGPLv2+ URL: https://projects.kde.org/projects/playground/artwork/oxygen-gtk %if 0%{?snap} # git clone git://anongit.kde.org/oxygen-gtk -b gtk3 oxygen-gtk3 # git archive --prefix=oxygen-gtk3-%{version}/ gtk3 | bzip2 > oxygen-gtk3-%{version}-%{snap}.tar.bz2 Source0: oxygen-gtk3-%{version}-%{snap}.tar.bz2 %else # Official release Source0: ftp://ftp.kde.org/pub/kde/stable/oxygen-gtk/%{version}/%{name}-%{version}.tar.bz2 %endif BuildRequires: cmake BuildRequires: gtk3-devel BuildRequires: dbus-glib-devel %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 every time some setting is changed in KDE. %prep %setup -q %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake} -DOXYGEN_FORCE_KDE_ICONS_AND_FONTS=0 .. popd make %{?_smp_mflags} -C %{_target_platform} %install rm -rf $RPM_BUILD_ROOT make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING README %{_bindir}/oxygen-gtk3-demo %{_libdir}/gtk-3.0/*/theming-engines/liboxygen-gtk.so %{_datadir}/themes/oxygen-gtk/ %changelog * Mon Dec 19 2011 Alexey Kurov - 1.2.0-0.1.20111219 - Initial RPM release