File yast2-control-center.spec of Package yast2-control-center
#
# spec file for package yast2-control-center (Version 2.18.12)
#
# Copyright (c) 2009 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-control-center
Version: 2.18.12
Release: 1.<RELEASE1>
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: yast2-control-center-2.18.12.tar.bz2
Group: System/YaST
License: GPL v2 or later
BuildRequires: libdrm-devel libjpeg-devel libqt4-devel pkgconfig update-desktop-files yast2-devtools
BuildRequires: cmake
Summary: YaST2 - Control Center
Requires: yast2 yast2-control-center-binary
Provides: y2c_menu y2m_menu yast2-menu
Obsoletes: y2c_menu y2m_menu yast2-menu
%description
This package contains the menu selection component for YaST2.
%package qt
License: GPL v2 or later
Summary: YaST2 - Control Center (Qt Version)
Requires: yast2-control-center
Provides: yast2-control-center-binary
Provides: yast2-control-center:%{_prefix}/lib/YaST2/bin/y2controlcenter
Supplements: kdebase3
Supplements: kdebase4-session
Group: System/YaST
%description qt
This package contains the menu selection component for YaST2 using the
Qt toolkit.
%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 ..
%suse_update_desktop_file -G "Administrator Settings" %{buildroot}%{_datadir}/applications/YaST.desktop Core-System X-SuSE-ControlCenter-System
%suse_update_desktop_file %{buildroot}%{_datadir}/kde4/services/YaST-systemsettings.desktop
%clean
rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%{_datadir}/applications/YaST.desktop
%dir %{_datadir}/kde4/
%dir %{_datadir}/kde4/services
%{_datadir}/kde4/services/YaST-systemsettings.desktop
%{_datadir}/pixmaps/yast.png
%files qt
%defattr(-,root,root)
%{_prefix}/lib/YaST2/bin/y2controlcenter
%doc COPYING
%changelog