summaryrefslogtreecommitdiff
path: root/packaging/qt-tizen.spec
blob: 7b92d5b863263f02b2c94be557fda5dff4f9d77d (plain)
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
99
100
101
102
103
104
105
%bcond_with wayland
%bcond_with x

Name:           qt-tizen
Version:        0.0.1
Release:        0
License:        GPL-2.0
Summary:        meta package for tizen integration
Url:            https://gitorious.org/qt-tizen
Group:          System/Libraries
Source:         %{name}-%{version}.tar.gz
BuildArch:      noarch


%if %{with wayland}
Requires: qt5-qtwayland
%endif

%if %{with x}
Requires: qt5-plugin-platform-xcb
%endif

%description
Meta package for tizen platform.
Used to abstract different setup.


%package full
Summary:  All Qt packages supported on Tizen.
Requires: qt-tizen = %{version}-%{release}
Requires: qt5-plugin-imageformat-gif
Requires: qt5-plugin-imageformat-ico
Requires: qt5-plugin-imageformat-jpeg
Requires: qt5-plugin-platform-minimal
Requires: qt5-qtdeclarative-devel-tools
Requires: qt5-qtdeclarative-examples
Requires: qt5-qtdeclarative-import-folderlistmodel
Requires: qt5-qtdeclarative-import-localstorageplugin
Requires: qt5-qtdeclarative-import-multimedia
Requires: qt5-qtdeclarative-import-particles2
Requires: qt5-qtdeclarative-import-qtquick2plugin
Requires: qt5-qtdeclarative-import-qttest
Requires: qt5-qtdeclarative-import-sensors
Requires: qt5-qtdeclarative-import-settings
Requires: qt5-qtdeclarative-qtquick-widgets
Requires: qt5-qtgraphicaleffects
Requires: qt5-qtmultimedia
Requires: qt5-qtmultimedia-plugin-audio-alsa
Requires: qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer
Requires: qt5-qtquickcontrols
Requires: qt5-tools
Requires: qt5-qttools-qtdesigner
BuildArch:  noarch

%description full
All needed packages for tizen.


%package demo
Summary:        Specific tizen files for demos.
BuildRequires:  make
Requires: qt-tizen = %{version}-%{release}
BuildArch:  noarch

%description demo
Add some links to launcher


%prep
%setup -q

%build

%__make %{?_smp_mflags}


%install
%make_install
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_unitdir_user}
install preinstall-qt-demos.sh %{buildroot}/%{_bindir}
install preinstall-qt-demos.service %{buildroot}/%{_unitdir_user}

#%fdupes %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%post demo
mkdir -p %{_unitdir_user}/default.target.wants/
ln -sf ../preinstall-qt-demos.service %{_unitdir_user}/default.target.wants/


%files

%files full

%files demo
%manifest %{name}.manifest
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/preinstall-qt-demos.sh
%attr(644,root,root) %{_unitdir_user}/preinstall-qt-demos.service
%attr(644,root,root) /usr/share/qt-tizen-demo/*
%attr(755,root,root) %{_bindir}/launch_video_qt.sh