File yast2-gtk.spec of Package yast2-gtk

# spec file for package yast2-gtk
# Copyright (c) 2012 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

Name:           yast2-gtk
Version:        2.22.5
Release:        0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-gtk-2.22.5.tar.bz2
Summary:        YaST2 - GTK+ Graphical User Interface
License:        GPL-2.0 or GPL-3.0
Group:          System/YaST
BuildRequires:  blocxx-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  gdk-pixbuf-devel
BuildRequires:  gtk3-devel
BuildRequires:  libzypp-devel >= 6.3.0
BuildRequires:  yast2-devtools >= 2.16.3
BuildRequires:  yast2-libyui-devel >= 2.18.8
%if 0%{?suse_version} < 1220
BuildRequires:  libxcrypt-devel
BuildRequires:  gcc-c++ >= 4.6

Requires:       gtk3
Requires:       libzypp >= 6.3.0
Requires:       yast2-branding
Requires:       yast2-libyui >= 2.18.8
Requires:       yast2_theme >= 2.16.1
Provides:       yast2-ui-gtk
Provides:       yast2_ui
Provides:       yast2_ui_pkg
Source1:        yast2-gtk-rpmlintrc 

One of several user interfaces available for YaST2, based on GTK and
the X Window System.


mkdir build
cd build
export CXXFLAGS="$CFLAGS --std=c++0x"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DLIB=%{_lib} \
      -DCMAKE_BUILD_TYPE=Release \
make %{?_smp_mflags} VERBOSE=1

cd build
cd ..

rm -rf "$RPM_BUILD_ROOT"

%defattr (-, root, root)
%dir %_libdir/YaST2