File yast2-qt.spec of Package yast2-qt

# spec file for package yast2-qt
# 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-qt
Version:        2.22.6
Release:        0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        yast2-qt-2.22.6.tar.bz2
Group:          System/YaST
License:        GPL-2.0
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  doxygen
BuildRequires:  libdrm-devel
BuildRequires:  libjpeg-devel
BuildRequires:  libxslt
BuildRequires:  perl-XML-Writer
BuildRequires:  libqt4-devel
BuildRequires:  sgml-skel
BuildRequires:  update-desktop-files
BuildRequires:  cmake
%if 0%{?suse_version} < 1220
BuildRequires:  libxcrypt-devel
%requires_ge	libqt4 

Summary:        YaST2 - Graphical User Interface
BuildRequires:  yast2-devtools >= 2.16.3
BuildRequires:  yast2-libyui-devel >= 2.21.1
Requires:       yast2-libyui	   >= 2.21.1
Requires:       yast2_theme >= 2.16.1
Requires:       yast2-branding
Requires:       yast2-qt-branding
Provides:       yast2_ui
Provides:       y2base:/usr/lib/YaST2/servers/qt
Provides:       y2base:/usr/lib/YaST2/plugin/
Recommends:     yast2-qt-pkg
Recommends:     xorg-x11-fonts

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

%package devel
Summary:        Development package for graphical YaST2 user interfaces
Group:          Development/Libraries/YaST
Requires:       yast2-qt = %{version}
Requires:       yast2-libyui-devel

%description devel
Shared libs for the YaST2 Qt user interface.

This is not necessary for developing YaST2 scripts (YCP) -- the YaST2
main program (y2bignfat) will load those components on demand as
plug-ins. Those plug-ins, however, are available within the base
package (yast2-ui-qt).

You only need this package if you really wish to develop new binaries
for YaST2 and dynamically link those against the YaST2 Qt user
interface rather than loading the respective plug-ins.


mkdir build
cd build
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

%files devel
%defattr (-, root, root)