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-opensource-src-%{version}.tar.xz
17 # Source0-md5: 7b3a31a1063a320a110107d1f7c51812
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) >= 2.016
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}
70 Requires: Qt5Scxml = %{version}-%{release}
72 %description -n Qt5Scxml-devel
73 Qt5 Scxml - development files.
75 %description -n Qt5Scxml-devel -l pl.UTF-8
76 Biblioteka Qt5 Scxml - pliki programistyczne.
79 Summary: Qt5 Scxml documentation in HTML format
80 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Scxml w formacie HTML
82 Requires: qt5-doc-common >= %{qtbase_ver}
86 Qt5 Scxml documentation in HTML format.
88 %description doc -l pl.UTF-8
89 Dokumentacja do biblioteki Qt5 Scxml w formacie HTML.
92 Summary: Qt5 Scxml documentation in QCH format
93 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 Scxml w formacie QCH
95 Requires: qt5-doc-common >= %{qtbase_ver}
99 Qt5 Scxml documentation in QCH format.
101 %description doc-qch -l pl.UTF-8
102 Dokumentacja do biblioteki Qt5 Scxml w formacie QCH.
105 Summary: Qt5 Scxml examples
106 Summary(pl.UTF-8): Przykłady do biblioteki Qt5 Scxml
107 Group: X11/Development/Libraries
110 %description examples
113 %description examples -l pl.UTF-8
114 Przykłady do biblioteki Qt5 Scxml.
117 %setup -q -n %{orgname}-everywhere-src-%{version}
122 %{?with_doc:%{__make} docs}
125 rm -rf $RPM_BUILD_ROOT
128 INSTALL_ROOT=$RPM_BUILD_ROOT
131 %{__make} install_docs \
132 INSTALL_ROOT=$RPM_BUILD_ROOT
136 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
137 # obsoleted by pkg-config
138 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
141 rm -rf $RPM_BUILD_ROOT
143 %post -n Qt5Scxml -p /sbin/ldconfig
144 %postun -n Qt5Scxml -p /sbin/ldconfig
147 %defattr(644,root,root,755)
148 %doc LICENSE.GPL3-EXCEPT dist/changes-*
150 %attr(755,root,root) %{_libdir}/libQt5Scxml.so.*.*.*
151 %attr(755,root,root) %ghost %{_libdir}/libQt5Scxml.so.5
153 %attr(755,root,root) %{qt5dir}/bin/qscxmlc
154 %dir %{qt5dir}/qml/QtScxml
155 # R: Qt5Core Qt5Qml Qt5Scxml
156 %attr(755,root,root) %{qt5dir}/qml/QtScxml/libdeclarative_scxml.so
157 %{qt5dir}/qml/QtScxml/plugins.qmltypes
158 %{qt5dir}/qml/QtScxml/qmldir
160 %files -n Qt5Scxml-devel
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/libQt5Scxml.so
163 %{_libdir}/libQt5Scxml.prl
164 %{_includedir}/qt5/QtScxml
165 %{_pkgconfigdir}/Qt5Scxml.pc
166 %{_libdir}/cmake/Qt5Scxml
167 %{qt5dir}/mkspecs/features/qscxmlc.prf
168 %{qt5dir}/mkspecs/modules/qt_lib_scxml.pri
169 %{qt5dir}/mkspecs/modules/qt_lib_scxml_private.pri
173 %defattr(644,root,root,755)
174 %{_docdir}/qt5-doc/qtscxml
177 %defattr(644,root,root,755)
178 %{_docdir}/qt5-doc/qtscxml.qch
182 %defattr(644,root,root,755)
183 # XXX: dir shared with qt5-qtbase-examples
184 %dir %{_examplesdir}/qt5
185 %{_examplesdir}/qt5/scxml