3 %bcond_without doc # Documentation
5 %define orgname qtx11extras
6 %define qtbase_ver %{version}
7 %define qttools_ver %{version}
8 Summary: The Qt5 X11 Extras library
9 Summary(pl.UTF-8): Biblioteka Qt5 X11 Extras
13 License: LGPL v3 or GPL v2 or GPL v3 or commercial
15 Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz
16 # Source0-md5: 92cf72015788bb4dcab14494f2835b32
17 URL: https://www.qt.io/
18 BuildRequires: Qt5Core-devel >= %{qtbase_ver}
19 BuildRequires: Qt5Gui-devel >= %{qtbase_ver}
21 BuildRequires: qt5-assistant >= %{qttools_ver}
23 BuildRequires: qt5-build >= %{qtbase_ver}
24 BuildRequires: qt5-qmake >= %{qtbase_ver}
25 BuildRequires: rpmbuild(macros) >= 1.752
26 BuildRequires: tar >= 1:1.22
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define specflags -fno-strict-aliasing
31 %define qt5dir %{_libdir}/qt5
34 Qt is a cross-platform application and UI framework. Using Qt, you can
35 write web-enabled applications once and deploy them across desktop,
36 mobile and embedded systems without rewriting the source code.
38 This package contains Qt5 X11 Extras library.
40 %description -l pl.UTF-8
41 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
42 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
43 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
46 Ten pakiet zawiera bibliotekę Qt5 X11 Extras.
48 %package -n Qt5X11Extras
49 Summary: The Qt5 X11 Extras library
50 Summary(pl.UTF-8): Biblioteka Qt5 X11 Extras
52 Requires: Qt5Core >= %{qtbase_ver}
53 Requires: Qt5Gui >= %{qtbase_ver}
54 Obsoletes: qt5-qtx11extras < 5.2.0-1
56 %description -n Qt5X11Extras
57 Qt5 X11 Extras library provides classes for developing for the X11
60 %description -n Qt5X11Extras -l pl.UTF-8
61 Biblioteka Qt5 X11 Extras dostarcza klasy do tworzenia oprogramowania
64 %package -n Qt5X11Extras-devel
65 Summary: Qt5 X11 Extras - development files
66 Summary(pl.UTF-8): Biblioteka Qt5 X11 Extras - pliki programistyczne
67 Group: X11/Development/Libraries
68 Requires: Qt5Core-devel >= %{qtbase_ver}
69 Requires: Qt5Gui-devel >= %{qtbase_ver}
70 Requires: Qt5X11Extras = %{version}-%{release}
71 Obsoletes: qt5-qtx11extras-devel < 5.2.0-1
73 %description -n Qt5X11Extras-devel
74 Qt5 X11 Extras - development files.
76 %description -n Qt5X11Extras-devel -l pl.UTF-8
77 Biblioteka Qt5 X11 Extras - pliki programistyczne.
80 Summary: Qt5 X11 Extras documentation in HTML format
81 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 X11 Extras w formacie HTML
83 Requires: qt5-doc-common >= %{qtbase_ver}
87 Qt5 X11 Extras documentation in HTML format.
89 %description doc -l pl.UTF-8
90 Dokumentacja do biblioteki Qt5 X11 Extras w formacie HTML.
93 Summary: Qt5 X11 Extras documentation in QCH format
94 Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 X11 Extras w formacie QCH
96 Requires: qt5-doc-common >= %{qtbase_ver}
100 Qt5 X11 Extras documentation in QCH format.
102 %description doc-qch -l pl.UTF-8
103 Dokumentacja do biblioteki Qt5 X11 Extras w formacie QCH.
106 %setup -q -n %{orgname}-everywhere-src-%{version}
111 %{?with_doc:%{__make} docs}
114 rm -rf $RPM_BUILD_ROOT
117 INSTALL_ROOT=$RPM_BUILD_ROOT
120 %{__make} install_docs \
121 INSTALL_ROOT=$RPM_BUILD_ROOT
125 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.??
126 # actually drop *.la, follow policy of not packaging them when *.pc exist
127 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la
130 rm -rf $RPM_BUILD_ROOT
132 %post -n Qt5X11Extras -p /sbin/ldconfig
133 %postun -n Qt5X11Extras -p /sbin/ldconfig
135 %files -n Qt5X11Extras
136 %defattr(644,root,root,755)
137 %doc LICENSE.GPL3-EXCEPT dist/changes-*
138 %attr(755,root,root) %{_libdir}/libQt5X11Extras.so.*.*.*
139 %attr(755,root,root) %ghost %{_libdir}/libQt5X11Extras.so.5
141 %files -n Qt5X11Extras-devel
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_libdir}/libQt5X11Extras.so
144 %{_libdir}/libQt5X11Extras.prl
145 %{_includedir}/qt5/QtX11Extras
146 %{_pkgconfigdir}/Qt5X11Extras.pc
147 %{_libdir}/cmake/Qt5X11Extras
148 %{qt5dir}/mkspecs/modules/qt_lib_x11extras.pri
149 %{qt5dir}/mkspecs/modules/qt_lib_x11extras_private.pri
153 %defattr(644,root,root,755)
154 %{_docdir}/qt5-doc/qtx11extras
157 %defattr(644,root,root,755)
158 %{_docdir}/qt5-doc/qtx11extras.qch