]>
Commit | Line | Data |
---|---|---|
08f005c9 BS |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without doc # Documentation | |
4 | ||
5 | %define orgname qtcharts | |
934cdef2 JB |
6 | %define qtbase_ver %{version} |
7 | %define qtdeclarative_ver %{version} | |
8 | %define qttools_ver %{version} | |
08f005c9 BS |
9 | Summary: The Qt5 Charts library |
10 | Summary(pl.UTF-8): Biblioteka Qt5 Charts | |
11 | Name: qt5-%{orgname} | |
51de416a JP |
12 | Version: 5.15.4 |
13 | Release: 1 | |
934cdef2 | 14 | License: GPL v3 or commercial |
08f005c9 | 15 | Group: Libraries |
51de416a JP |
16 | Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-opensource-src-%{version}.tar.xz |
17 | # Source0-md5: 573c7a9c9a915a04242bdf000758c01c | |
934cdef2 | 18 | URL: https://www.qt.io/ |
08f005c9 BS |
19 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
20 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
934cdef2 JB |
21 | BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver} |
22 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
08f005c9 BS |
23 | BuildRequires: Qt5Widgets-devel >= %{qtbase_ver} |
24 | %if %{with doc} | |
25 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
26 | %endif | |
27 | BuildRequires: qt5-build >= %{qtbase_ver} | |
28 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
934cdef2 | 29 | BuildRequires: rpmbuild(macros) >= 1.752 |
08f005c9 BS |
30 | BuildRequires: tar >= 1:1.22 |
31 | BuildRequires: xz | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %define specflags -fno-strict-aliasing | |
35 | %define qt5dir %{_libdir}/qt5 | |
36 | ||
37 | %description | |
38 | Qt is a cross-platform application and UI framework. Using Qt, you can | |
39 | write web-enabled applications once and deploy them across desktop, | |
40 | mobile and embedded systems without rewriting the source code. | |
41 | ||
42 | This package contains Qt5 Charts library. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
46 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
47 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
48 | źródłowego. | |
49 | ||
50 | Ten pakiet zawiera bibliotekę Qt5 Charts. | |
51 | ||
52 | %package -n Qt5Charts | |
53 | Summary: The Qt5 Charts library | |
54 | Summary(pl.UTF-8): Biblioteka Qt5 Charts | |
55 | Group: Libraries | |
56 | Requires: Qt5Core >= %{qtbase_ver} | |
934cdef2 JB |
57 | Requires: Qt5Gui >= %{qtbase_ver} |
58 | Requires: Qt5Widgets >= %{qtbase_ver} | |
59 | # for qml module | |
60 | Requires: Qt5Qml >= %{qtdeclarative_ver} | |
61 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
08f005c9 BS |
62 | |
63 | %description -n Qt5Charts | |
64 | Qt Charts module provides a set of easy to use chart components. It | |
65 | uses the Qt Graphics View Framework, therefore charts can be easily | |
66 | integrated to modern user interfaces. | |
67 | ||
68 | %description -n Qt5Charts -l pl.UTF-8 | |
69 | Biblioteka Qt5 Charts udostępnia łatwe w użyciu komponenty do | |
934cdef2 JB |
70 | tworzenia wykresów. Wykorzystuje szkielet Qt Graphics View, dzięki |
71 | czemu wykresy mogą być łatwo integrowane z nowoczesnymi interfejsami | |
72 | użytkownika. | |
08f005c9 BS |
73 | |
74 | %package -n Qt5Charts-devel | |
75 | Summary: Qt5 Charts library - development files | |
76 | Summary(pl.UTF-8): Biblioteka Qt5 Charts - pliki programistyczne | |
77 | Group: Development/Libraries | |
78 | Requires: Qt5Charts = %{version}-%{release} | |
79 | Requires: Qt5Core-devel >= %{qtbase_ver} | |
934cdef2 JB |
80 | Requires: Qt5Gui-devel >= %{qtbase_ver} |
81 | Requires: Qt5Widgets-devel >= %{qtbase_ver} | |
08f005c9 BS |
82 | |
83 | %description -n Qt5Charts-devel | |
84 | Qt5 Charts library - development files. | |
85 | ||
86 | %description -n Qt5Charts-devel -l pl.UTF-8 | |
87 | Biblioteka Qt5 Charts - pliki programistyczne. | |
88 | ||
89 | %package doc | |
90 | Summary: Qt5 Charts documentation in HTML format | |
91 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Charts w formacie HTML | |
92 | Group: Documentation | |
93 | Requires: qt5-doc-common >= %{qtbase_ver} | |
0c0892c0 | 94 | BuildArch: noarch |
08f005c9 BS |
95 | |
96 | %description doc | |
97 | Qt5 Charts documentation in HTML format. | |
98 | ||
99 | %description doc -l pl.UTF-8 | |
100 | Dokumentacja do biblioteki Qt5 Charts w formacie HTML. | |
101 | ||
102 | %package doc-qch | |
103 | Summary: Qt5 Charts documentation in QCH format | |
104 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Charts w formacie QCH | |
105 | Group: Documentation | |
106 | Requires: qt5-doc-common >= %{qtbase_ver} | |
0c0892c0 | 107 | BuildArch: noarch |
08f005c9 BS |
108 | |
109 | %description doc-qch | |
110 | Qt5 Charts documentation in QCH format. | |
111 | ||
112 | %description doc-qch -l pl.UTF-8 | |
113 | Dokumentacja do biblioteki Qt5 Charts w formacie QCH. | |
114 | ||
115 | %package examples | |
116 | Summary: Qt5 Charts examples | |
117 | Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Charts | |
118 | Group: Development/Libraries | |
0c0892c0 | 119 | BuildArch: noarch |
08f005c9 BS |
120 | |
121 | %description examples | |
122 | Qt5 Charts examples. | |
123 | ||
124 | %description examples -l pl.UTF-8 | |
125 | Przykłady do biblioteki Qt5 Charts. | |
126 | ||
127 | %prep | |
128 | %setup -q -n %{orgname}-everywhere-src-%{version} | |
129 | ||
130 | %build | |
131 | qmake-qt5 | |
132 | %{__make} | |
133 | %{?with_doc:%{__make} docs} | |
134 | ||
135 | %install | |
136 | rm -rf $RPM_BUILD_ROOT | |
934cdef2 | 137 | |
08f005c9 BS |
138 | %{__make} install \ |
139 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
140 | ||
141 | %if %{with doc} | |
142 | %{__make} install_docs \ | |
143 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
144 | %endif | |
145 | ||
146 | # useless symlinks | |
147 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? | |
148 | # actually drop *.la, follow policy of not packaging them when *.pc exist | |
149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
150 | ||
151 | # Prepare some files list | |
152 | ifecho() { | |
153 | r="$RPM_BUILD_ROOT$2" | |
154 | if [ -d "$r" ]; then | |
155 | echo "%%dir $2" >> $1.files | |
156 | elif [ -x "$r" ] ; then | |
157 | echo "%%attr(755,root,root) $2" >> $1.files | |
158 | elif [ -f "$r" ]; then | |
159 | echo "$2" >> $1.files | |
160 | else | |
161 | echo "Error generation $1 files list!" | |
162 | echo "$r: no such file or directory!" | |
163 | return 1 | |
164 | fi | |
165 | } | |
166 | ifecho_tree() { | |
167 | ifecho $1 $2 | |
168 | for f in `find $RPM_BUILD_ROOT$2 -printf "%%P "`; do | |
169 | ifecho $1 $2/$f | |
170 | done | |
171 | } | |
172 | ||
173 | echo "%defattr(644,root,root,755)" > examples.files | |
174 | ifecho_tree examples %{_examplesdir}/qt5/charts | |
175 | ||
176 | %clean | |
177 | rm -rf $RPM_BUILD_ROOT | |
178 | ||
179 | %post -n Qt5Charts -p /sbin/ldconfig | |
180 | %postun -n Qt5Charts -p /sbin/ldconfig | |
181 | ||
182 | %files -n Qt5Charts | |
183 | %defattr(644,root,root,755) | |
184 | %doc LICENSE.GPL3 dist/changes-* | |
934cdef2 | 185 | # R: Core Gui Widgets |
08f005c9 BS |
186 | %attr(755,root,root) %{_libdir}/libQt5Charts.so.*.*.* |
187 | %attr(755,root,root) %ghost %{_libdir}/libQt5Charts.so.5 | |
188 | %dir %{qt5dir}/qml/QtCharts | |
189 | %{qt5dir}/qml/QtCharts/designer | |
934cdef2 | 190 | # R: Core Gui Qml Quick Widgets |
08f005c9 BS |
191 | %attr(755,root,root) %{qt5dir}/qml/QtCharts/libqtchartsqml2.so |
192 | %{qt5dir}/qml/QtCharts/plugins.qmltypes | |
193 | %{qt5dir}/qml/QtCharts/qmldir | |
194 | ||
195 | %files -n Qt5Charts-devel | |
196 | %defattr(644,root,root,755) | |
197 | %attr(755,root,root) %{_libdir}/libQt5Charts.so | |
198 | %{_libdir}/libQt5Charts.prl | |
199 | %{_includedir}/qt5/QtCharts | |
200 | %{_pkgconfigdir}/Qt5Charts.pc | |
201 | %{_libdir}/cmake/Qt5Charts | |
202 | %{qt5dir}/mkspecs/modules/qt_lib_charts.pri | |
203 | %{qt5dir}/mkspecs/modules/qt_lib_charts_private.pri | |
204 | ||
205 | %if %{with doc} | |
206 | %files doc | |
207 | %defattr(644,root,root,755) | |
208 | %{_docdir}/qt5-doc/qtcharts | |
209 | ||
210 | %files doc-qch | |
211 | %defattr(644,root,root,755) | |
212 | %{_docdir}/qt5-doc/qtcharts.qch | |
213 | %endif | |
214 | ||
215 | %files examples -f examples.files | |
216 | %defattr(644,root,root,755) | |
217 | # XXX: dir shared with qt5-qtbase-examples | |
218 | %dir %{_examplesdir}/qt5 |