-
Notifications
You must be signed in to change notification settings - Fork 12
/
qttas-server.spec
97 lines (73 loc) · 1.81 KB
/
qttas-server.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Name: qttas-server
Version: 2.0.0
Release: 1
Summary: Qt Test Automation Server
Group: Development/Tools
License: LGPL
URL: https://code.nokia.com/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtWebKit)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xtst)
Requires: qttas-server-plugins
%description
Qt TAS is a test automation server which provides testability
interface. Interface is used to access UI components to
verify and control them.
%prep
%setup -q
%build
# TODO add CONFIG+=maemo
qmake -r CONFIG+=RPM
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install INSTALL_ROOT=%{buildroot}
# remove executable bits from examples
find ${buildroot} -name "*examples*" -type f|xargs chmod a-x
%clean
rm -rf %{buildroot}
#
# Package qttas-server
#
%files
%defattr(-,root,root,-)
%{_bindir}/qttas*
%config %{_sysconfdir}/qt_testability/*
%config %{_sysconfdir}/xdg/autostart/qttasserver.desktop
%package libs
Summary: Qt Test automation server library files
%description libs
Qt TAS development library files
%files libs
%defattr(-,root,root,-)
%{_libdir}/lib*
# other
%post libs
/sbin/ldconfig
%postun libs
/sbin/ldconfig
#
# Package qttas-server-devel
#
%package devel
Summary: Qt Test automation server development headers
Requires: qttas-server-libs
%description devel
Qt TAS development header.
%files devel
%defattr(-,root,root,-)
%{_includedir}/tdriver/*
/usr/share/qt4/mkspecs/features/*
/usr/share/doc/qttas-dev/examples/hellotraverse/*
%package plugins
Summary: Qt Test automation server plugins
%description plugins
Qt Test Automation Server plugins
%files plugins
%defattr(-,root,root,-)
%{_libdir}/qt4/plugins/*