don't create QObjects in ycp thread - make timeouts work
[duncan/yast2-qt4.git] / yast2-qt4.spec.in
1 @HEADER-COMMENT@
2
3
4 @HEADER@
5 BuildRequires:  dbus-1-devel boost-devel libzypp-devel curl-devel docbook-xsl-stylesheets doxygen libdrm-devel libjpeg-devel libxcrypt-devel libxslt perl-XML-Writer libqt4-devel rpm-devel sgml-skel update-desktop-files yast2-devtools hal-devel
6
7 Summary:        -
8 BuildRequires:  yast2-core-devel >= 2.16.15
9 Requires:       yast2-core >= 2.16.15
10 Requires:       libzypp >= 3.11.8
11 Provides:       yast2_ui
12 Provides:       y2base:/usr/lib/YaST2/servers/qt
13 Provides:       y2base:/usr/lib/YaST2/plugin/libpy2qt.so.2
14 Provides:       yast2-ui-qt yast2-ui-qt-devel
15 Obsoletes:      yast2-ui-qt yast2-ui-qt-devel
16 Provides:       y2qt
17 Obsoletes:      y2qt
18
19 %description
20 -
21
22 %prep
23 %setup
24
25 %build
26 mkdir build
27 cd build
28 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
29       -DLIB=%{_lib} \
30       -DCMAKE_C_FLAGS="%{optflags}" \
31       -DCMAKE_CXX_FLAGS="%{optflags}" \
32       -DCMAKE_BUILD_TYPE=Release \
33       -DCMAKE_SKIP_RPATH=1 \
34       ..
35 make %{?jobs:-j %jobs}
36
37 %install
38 cd build
39 make install DESTDIR=$RPM_BUILD_ROOT
40 cd ..
41
42 %clean
43 rm -rf "$RPM_BUILD_ROOT"
44
45
46 %if 0%{?suse_version} <= 1010
47 %define _xorg7fonts /usr/X11R6/lib/X11/fonts
48 %else
49 %define _xorg7fonts /usr/share/fonts
50 %endif
51
52 %files
53 %defattr (-, root, root)
54 %_libdir/YaST2/plugin/libpy2qt4.so.*
55 %_libdir/YaST2/plugin/libpy2qt4.so
56 %_libdir/YaST2/plugin/libpy2qt4_pkg.so.*
57 %_libdir/YaST2/plugin/libpy2qt4_pkg.so
58 %_prefix/share/YaST2/theme
59
60 %changelog