File yast2-qt-pkg.spec of Package yast2-qt-pkg

#
# spec file for package yast2-qt-pkg
#
# 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:           yast2-qt-pkg
Version:        2.20.3
Release:        1

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-qt-pkg-2.20.3.tar.bz2
Group:          System/YaST
License:        GPLv2+
BuildRequires:  docbook-xsl-stylesheets doxygen libdrm-devel libjpeg-devel libxcrypt-devel
BuildRequires:  libqt4-devel libxslt perl-XML-Writer sgml-skel update-desktop-files

Summary:        YaST2 - Graphical User Interface
BuildRequires:  yast2-devtools >= 2.16.3
Requires:       yast2-qt       >= 2.20.0
%requires_ge    libqt4
BuildRequires:  yast2-qt-devel >= 2.20.0
BuildRequires:  libzypp-devel >= 7.4.0
BuildRequires:  yast2-libyui-devel >= 2.20.0
Requires:       libzypp >= 7.4.0
Requires:       yast2-libyui       >= 2.20.0
Requires:       yast2_theme >= 2.16.1
Provides:       yast2-qt:/usr/lib/YaST2/plugin/libpy2qt_pkg.so.2
Provides:       yast2_ui_pkg
Recommends:     libqdialogsolver1

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

%prep
%setup

%build
mkdir build
cd build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DLIB=%{_lib} \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_SKIP_RPATH=1 \
      ..
make %{?jobs:-j %jobs} VERBOSE=1

%install
cd build
make install DESTDIR=$RPM_BUILD_ROOT
cd ..

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr (-, root, root)
%doc COPYING
%_libdir/YaST2/plugin/libpy2qt_pkg.so.*
%_libdir/YaST2/plugin/libpy2qt_pkg.so

%dir %_prefix/share/YaST2/images
%_prefix/share/YaST2/images/*

%changelog