3 %bcond_without doc # Documentation
5 %define orgname qtscxml
6 %define qtbase_ver %{version}
7 %define qtdeclarative_ver %{version}
8 %define qttools_ver %{version}
9 Summary: The Qt5 Scxml library
10 Summary(pl.UTF-8): Biblioteka Qt5 Scxml
14 License: LGPL v3 or GPL v2+ or commercial
16 Source0: https://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
17 # Source0-md5: 5c52fd3e39707e46c6a37b4e13636ceb
18 URL: https://www.qt.io/
19 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
20 BuildRequires: Qt5Qml-devel >= %{qtdeclarative_ver}
22 BuildRequires: qt5-assistant >= %{qttools_ver}
23 BuildRequires: qt5-doc-common >= %{qttools_ver}
25 BuildRequires: qt5-build >= %{qtbase_ver}
26 BuildRequires: qt5-qmake >= %{qtbase_ver}
27 BuildRequires: rpm-build >= 4.6
28 BuildRequires: rpmbuild(macros) >= 1.752
29 BuildRequires: tar >= 1:1.22
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define specflags -fno-strict-aliasing
34 %define qt5dir %{_libdir}/qt5
37 Qt is a cross-platform application and UI framework. Using Qt, you can
38 write web-enabled applications once and deploy them across desktop,
39 mobile and embedded systems without rewriting the source code.
41 This package contains Qt5 Scxml library.
43 %description -l pl.UTF-8
44 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
45 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
46 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
49 Ten pakiet zawiera bibliotekę Qt5 Scxml.
52 Summary: The Qt5 Scxml library
53 Summary(pl.UTF-8): Biblioteka Qt5 Scxml
55 Requires: Qt5Core >= %{qtbase_ver}
56 Requires: Qt5Qml >= %{qtdeclarative_ver}
58 %description -n Qt5Scxml
61 %description -n Qt5Scxml -l pl.UTF-8
64 %package -n Qt5Scxml-devel
65 Summary: Qt5 Scxml - development files
66 Summary(pl.UTF-8): Biblioteka Qt5 Scxml - pliki programistyczne
67 Group: X11/Development/Libraries
68 Requires: Qt5Core-devel >= %{qtbase_ver}
69 Requires: Qt5Qml-devel >= %{qtdeclarative_ver}
71 %description -n Qt5Scxml-devel
72 Qt5 Scxml - development files.
74 %description -n Qt5Scxml-devel -l pl.UTF-8
75 Biblioteka Qt5 Scxml - pliki programistyczne.
78 Summary: Qt5 Scxml documentation in HTML format
79 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Scxml w formacie HTML
81 Requires: qt5-doc-common >= %{qtbase_ver}
85 Qt5 Scxml documentation in HTML format.
87 %description doc -l pl.UTF-8
88 Dokumentacja do biblioteki Qt5 Scxml w formacie HTML.
91 Summary: Qt5 Scxml documentation in QCH format
92 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Scxml w formacie QCH
94 Requires: qt5-doc-common >= %{qtbase_ver}
98 Qt5 Scxml documentation in QCH format.
100 %description doc-qch -l pl.UTF-8
101 Dokumentacja do biblioteki Qt5 Scxml w formacie QCH.
104 Summary: Qt5 Scxml examples
105 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Scxml
106 Group: X11/Development/Libraries
109 %description examples
112 %description examples -l pl.UTF-8
113 Przykłady do biblioteki Qt5 Scxml.
116 %setup -q -n %{orgname}-everywhere-src-%{version}
121 %{?with_doc:%{__make} docs}
124 rm -rf $RPM_BUILD_ROOT
127 INSTALL_ROOT=$RPM_BUILD_ROOT
130 %{__make} install_docs \
131 INSTALL_ROOT=$RPM_BUILD_ROOT
135 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
136 # obsoleted by pkg-config
137 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
139 # remove compiled examples (package only sources)
140 for d in $RPM_BUILD_ROOT%{_examplesdir}/qt5/scxml/* ; do
141 [ -d "$d" ] && %{__rm} "$d/$(basename $d)"
145 rm -rf $RPM_BUILD_ROOT
147 %post -n Qt5Scxml -p /sbin/ldconfig
148 %postun -n Qt5Scxml -p /sbin/ldconfig
151 %defattr(644,root,root,755)
152 %doc LICENSE.GPL3-EXCEPT dist/changes-*
154 %attr(755,root,root) %{_libdir}/libQt5Scxml.so.*.*.*
155 %attr(755,root,root) %ghost %{_libdir}/libQt5Scxml.so.5
157 %attr(755,root,root) %{qt5dir}/bin/qscxmlc
158 %dir %{qt5dir}/qml/QtScxml
159 # R: Qt5Core Qt5Qml Qt5Scxml
160 %attr(755,root,root) %{qt5dir}/qml/QtScxml/libdeclarative_scxml.so
161 %{qt5dir}/qml/QtScxml/plugins.qmltypes
162 %{qt5dir}/qml/QtScxml/qmldir
164 %files -n Qt5Scxml-devel
165 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_libdir}/libQt5Scxml.so
167 %{_libdir}/libQt5Scxml.prl
168 %{_includedir}/qt5/QtScxml
169 %{_pkgconfigdir}/Qt5Scxml.pc
170 %{_libdir}/cmake/Qt5Scxml
171 %{qt5dir}/mkspecs/features/qscxmlc.prf
172 %{qt5dir}/mkspecs/modules/qt_lib_scxml.pri
173 %{qt5dir}/mkspecs/modules/qt_lib_scxml_private.pri
177 %defattr(644,root,root,755)
178 %{_docdir}/qt5-doc/qtscxml
181 %defattr(644,root,root,755)
182 %{_docdir}/qt5-doc/qtscxml.qch
186 %defattr(644,root,root,755)
187 # XXX: dir shared with qt5-qtbase-examples
188 %dir %{_examplesdir}/qt5
189 %{_examplesdir}/qt5/scxml