]>
Commit | Line | Data |
---|---|---|
9e6389db JB |
1 | # |
2 | # Conditional build: | |
c1d0f58b | 3 | %bcond_without doc # Documentation |
3fa6e4d5 WF |
4 | |
5 | %define orgname qtx11extras | |
9d319cbd JB |
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 | |
3fa6e4d5 | 10 | Name: qt5-%{orgname} |
89b72a4d | 11 | Version: 5.13.2 |
9e6389db JB |
12 | Release: 1 |
13 | License: LGPL v2.1 with Digia Qt LGPL Exception v1.1 or GPL v3.0 | |
3fa6e4d5 | 14 | Group: X11/Libraries |
0e5aec3f | 15 | Source0: http://download.qt.io/official_releases/qt/5.13/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
89b72a4d | 16 | # Source0-md5: bdad4b5e59fa9202db8117cf118dbb0a |
2f0741bb | 17 | URL: http://www.qt.io/ |
9e6389db JB |
18 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
19 | BuildRequires: Qt5Gui-devel >= %{qtbase_ver} | |
c1d0f58b | 20 | %if %{with doc} |
9d319cbd JB |
21 | BuildRequires: qt5-assistant >= %{qttools_ver} |
22 | %endif | |
23 | BuildRequires: qt5-build >= %{qtbase_ver} | |
24 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
3fa6e4d5 | 25 | BuildRequires: rpmbuild(macros) >= 1.654 |
d37a3266 ER |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
3fa6e4d5 WF |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
3fa6e4d5 | 30 | %define specflags -fno-strict-aliasing |
9d319cbd | 31 | %define qt5dir %{_libdir}/qt5 |
3fa6e4d5 WF |
32 | |
33 | %description | |
9d319cbd JB |
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. | |
37 | ||
38 | This package contains Qt5 X11 Extras library. | |
39 | ||
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 | |
44 | źródłowego. | |
45 | ||
46 | Ten pakiet zawiera bibliotekę Qt5 X11 Extras. | |
47 | ||
48 | %package -n Qt5X11Extras | |
49 | Summary: The Qt5 X11 Extras library | |
50 | Summary(pl.UTF-8): Biblioteka Qt5 X11 Extras | |
51 | Group: Libraries | |
52 | Requires: Qt5Core >= %{qtbase_ver} | |
9e6389db | 53 | Requires: Qt5Gui >= %{qtbase_ver} |
9d319cbd | 54 | Obsoletes: qt5-qtx11extas |
3fa6e4d5 | 55 | |
9d319cbd | 56 | %description -n Qt5X11Extras |
9e6389db JB |
57 | Qt5 X11 Extras library provides classes for developing for the X11 |
58 | platform. | |
9d319cbd | 59 | |
af0e3e01 | 60 | %description -n Qt5X11Extras -l pl.UTF-8 |
9e6389db JB |
61 | Biblioteka Qt5 X11 Extras dostarcza klasy do tworzenia oprogramowania |
62 | dla platformy X11. | |
9d319cbd JB |
63 | |
64 | %package -n Qt5X11Extras-devel | |
65 | Summary: Qt5 X11 Extras - development files | |
66 | Summary(pl.UTF-8): Biblioteka Qt5 X11 Extras - pliki programistyczne | |
3fa6e4d5 | 67 | Group: X11/Development/Libraries |
9e6389db | 68 | Requires: OpenGL-devel |
9d319cbd | 69 | Requires: Qt5Core-devel >= %{qtbase_ver} |
9e6389db | 70 | Requires: Qt5Gui-devel >= %{qtbase_ver} |
9d319cbd JB |
71 | Requires: Qt5X11Extras = %{version}-%{release} |
72 | Obsoletes: qt5-qtx11extas-devel | |
3fa6e4d5 | 73 | |
9d319cbd | 74 | %description -n Qt5X11Extras-devel |
3fa6e4d5 WF |
75 | Qt5 X11 Extras - development files. |
76 | ||
9d319cbd JB |
77 | %description -n Qt5X11Extras-devel -l pl.UTF-8 |
78 | Biblioteka Qt5 X11 Extras - pliki programistyczne. | |
79 | ||
3fa6e4d5 | 80 | %package doc |
9d319cbd JB |
81 | Summary: Qt5 X11 Extras documentation in HTML format |
82 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 X11 Extras w formacie HTML | |
3fa6e4d5 | 83 | Group: Documentation |
9d319cbd | 84 | Requires: qt5-doc-common >= %{qtbase_ver} |
f321e7bb ER |
85 | %if "%{_rpmversion}" >= "5" |
86 | BuildArch: noarch | |
87 | %endif | |
3fa6e4d5 WF |
88 | |
89 | %description doc | |
9d319cbd JB |
90 | Qt5 X11 Extras documentation in HTML format. |
91 | ||
92 | %description doc -l pl.UTF-8 | |
93 | Dokumentacja do biblioteki Qt5 X11 Extras w formacie HTML. | |
94 | ||
95 | %package doc-qch | |
96 | Summary: Qt5 X11 Extras documentation in QCH format | |
97 | Summary(pl.UTF-8): Dokumentacja do biblioteki Qt5 X11 Extras w formacie QCH | |
98 | Group: Documentation | |
99 | Requires: qt5-doc-common >= %{qtbase_ver} | |
100 | %if "%{_rpmversion}" >= "5" | |
101 | BuildArch: noarch | |
102 | %endif | |
103 | ||
104 | %description doc-qch | |
105 | Qt5 X11 Extras documentation in QCH format. | |
106 | ||
107 | %description doc-qch -l pl.UTF-8 | |
108 | Dokumentacja do biblioteki Qt5 X11 Extras w formacie QCH. | |
3fa6e4d5 WF |
109 | |
110 | %prep | |
078a64b0 | 111 | %setup -q -n %{orgname}-everywhere-src-%{version} |
3fa6e4d5 WF |
112 | |
113 | %build | |
114 | qmake-qt5 | |
115 | %{__make} | |
c1d0f58b | 116 | %{?with_doc:%{__make} docs} |
3fa6e4d5 WF |
117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | %{__make} install \ | |
121 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
122 | ||
c1d0f58b JR |
123 | %if %{with doc} |
124 | %{__make} install_docs \ | |
3fa6e4d5 | 125 | INSTALL_ROOT=$RPM_BUILD_ROOT |
c1d0f58b | 126 | %endif |
3fa6e4d5 | 127 | |
9d319cbd | 128 | # useless symlinks |
078a64b0 | 129 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.so.5.?? |
9d319cbd JB |
130 | # actually drop *.la, follow policy of not packaging them when *.pc exist |
131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libQt5*.la | |
132 | ||
3fa6e4d5 WF |
133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
9d319cbd JB |
136 | %post -n Qt5X11Extras -p /sbin/ldconfig |
137 | %postun -n Qt5X11Extras -p /sbin/ldconfig | |
3fa6e4d5 | 138 | |
9d319cbd | 139 | %files -n Qt5X11Extras |
3fa6e4d5 | 140 | %defattr(644,root,root,755) |
078a64b0 | 141 | %doc LICENSE.GPL3-EXCEPT dist/changes-* |
9d319cbd JB |
142 | %attr(755,root,root) %{_libdir}/libQt5X11Extras.so.*.*.* |
143 | %attr(755,root,root) %ghost %{_libdir}/libQt5X11Extras.so.5 | |
3fa6e4d5 | 144 | |
9d319cbd | 145 | %files -n Qt5X11Extras-devel |
3fa6e4d5 WF |
146 | %defattr(644,root,root,755) |
147 | %attr(755,root,root) %{_libdir}/libQt5X11Extras.so | |
3fa6e4d5 | 148 | %{_libdir}/libQt5X11Extras.prl |
3fa6e4d5 | 149 | %{_includedir}/qt5/QtX11Extras |
9d319cbd JB |
150 | %{_pkgconfigdir}/Qt5X11Extras.pc |
151 | %{_libdir}/cmake/Qt5X11Extras | |
9e6389db JB |
152 | %{qt5dir}/mkspecs/modules/qt_lib_x11extras.pri |
153 | %{qt5dir}/mkspecs/modules/qt_lib_x11extras_private.pri | |
3fa6e4d5 | 154 | |
c1d0f58b | 155 | %if %{with doc} |
3fa6e4d5 WF |
156 | %files doc |
157 | %defattr(644,root,root,755) | |
9d319cbd JB |
158 | %{_docdir}/qt5-doc/qtx11extras |
159 | ||
9d319cbd JB |
160 | %files doc-qch |
161 | %defattr(644,root,root,755) | |
162 | %{_docdir}/qt5-doc/qtx11extras.qch | |
163 | %endif |