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