forked from nomovok-opensource/cutedriver-agent_qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qttas-server_skytree.spec
99 lines (73 loc) · 1.92 KB
/
qttas-server_skytree.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
97
98
Name: qttas-server
Version: 2.0.0.skytree41
Release: 1%{?dist}
Summary: Qt Test Automation Server
Group: Development/Tools
License: LGPL
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Declarative)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(Qt5Test)
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
qtchooser -run-tool=qmake -qt=5 -r CONFIG+=RPM CONFIG+=no_mobility CONFIG+=no_webkit CONFIG+=wayland
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
%{_datadir}/applications/qttas_ui.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/qt5/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}/qt5/plugins/*