@HEADER-COMMENT@ @HEADER@ Group: System/YaST License: GPL v2 or later BuildRequires: libdrm-devel libjpeg-devel pkgconfig libqt4-devel 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 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