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 http://bugs.opensuse.org/
#
Name: yast2-gtk
Version: 2.22.5
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-gtk-2.22.5.tar.bz2
Url: http://en.opensuse.org/YaST2-GTK
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
%endif
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
%description
One of several user interfaces available for YaST2, based on GTK and
the X Window System.
%prep
%setup
%build
mkdir build
cd build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS --std=c++0x"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB=%{_lib} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SKIP_RPATH=1 \
..
make %{?_smp_mflags} VERBOSE=1
%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT
cd ..
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr (-, root, root)
%dir %_libdir/YaST2
%_libdir/YaST2/plugin/
%doc COPYING.GPL2
%doc COPYING.GPL3
%changelog