]>
Commit | Line | Data |
---|---|---|
39ed99eb JB |
1 | # |
2 | # Conditional build: | |
3e4f3628 | 3 | %bcond_without doc # Documentation |
a23acca5 WF |
4 | |
5 | %define orgname qtgraphicaleffects | |
39ed99eb JB |
6 | %define qtbase_ver %{version} |
7 | %define qtdeclarative_ver %{version} | |
39ed99eb | 8 | %define qttools_ver %{version} |
6cf7cdc6 JB |
9 | Summary: The Qt5 Graphical Effects module |
10 | Summary(pl.UTF-8): Moduł Qt5 Graphical Effects | |
a23acca5 | 11 | Name: qt5-%{orgname} |
0287a4ea | 12 | Version: 5.15.0 |
6cf7cdc6 JB |
13 | Release: 1 |
14 | # pngdumper is LGPL+exception/GPL, all the qml code is BSD | |
15 | License: BSD | |
a23acca5 | 16 | Group: X11/Libraries |
0287a4ea JP |
17 | Source0: http://download.qt.io/official_releases/qt/5.15/%{version}/submodules/%{orgname}-everywhere-src-%{version}.tar.xz |
18 | # Source0-md5: 49b4c2b29624d30ce7196ca94cb11a6a | |
08314fea | 19 | URL: http://www.qt.io/ |
6cf7cdc6 JB |
20 | BuildRequires: Qt5Core-devel >= %{qtbase_ver} |
21 | BuildRequires: Qt5Quick-devel >= %{qtdeclarative_ver} | |
3e4f3628 | 22 | %if %{with doc} |
39ed99eb JB |
23 | BuildRequires: qt5-assistant >= %{qttools_ver} |
24 | %endif | |
cd4cf5f1 | 25 | BuildRequires: qt5-qtdeclarative >= %{qtdeclarative_ver} |
39ed99eb JB |
26 | BuildRequires: qt5-build >= %{qtbase_ver} |
27 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
a23acca5 | 28 | BuildRequires: rpmbuild(macros) >= 1.654 |
e8949435 ER |
29 | BuildRequires: tar >= 1:1.22 |
30 | BuildRequires: xz | |
a23acca5 WF |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
a23acca5 | 33 | %define specflags -fno-strict-aliasing |
39ed99eb | 34 | %define qt5dir %{_libdir}/qt5 |
a23acca5 WF |
35 | |
36 | %description | |
39ed99eb JB |
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. | |
40 | ||
6cf7cdc6 | 41 | This package contains Qt5 Graphical Effects module. |
39ed99eb JB |
42 | |
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 | |
47 | źródłowego. | |
48 | ||
6cf7cdc6 | 49 | Ten pakiet zawiera moduł Qt5 Graphical Effects. |
a23acca5 | 50 | |
6cf7cdc6 JB |
51 | %package -n Qt5Quick-graphicaleffects |
52 | Summary: Qt5 Graphical Effects module for Qt5Quick library | |
53 | Summary(pl.UTF-8): Moduł Qt5 Graphical Effects dla biblioteki Qt5Quick | |
54 | Group: X11/Libraries | |
55 | Requires: Qt5Quick >= %{qtdeclarative_ver} | |
56 | Obsoletes: qt5-qtgraphicaleffects | |
57 | ||
58 | %description -n Qt5Quick-graphicaleffects | |
59 | The Qt Graphical Effects module for Qt5Quick provides a set of QML | |
60 | types for adding visually impressive and configurable effects to user | |
61 | interfaces. Effects are visual items that can be added to Qt Quick | |
62 | user interface as UI components. | |
a23acca5 | 63 | |
6cf7cdc6 JB |
64 | %description -n Qt5Quick-graphicaleffects -l pl.UTF-8 |
65 | Moduł Qt Graphical Effects dla biblioteki Qt5Quick udostępnia zbiór | |
66 | typów QML do dodawania robiących wrażenie, konfigurowalnych efektów | |
67 | wizualnych do interfejsów użytkownika. Efekty to elementy wizualne, | |
68 | które można dodać do interfejsu użytkownika jako komponenty UI. | |
a23acca5 WF |
69 | |
70 | %package doc | |
39ed99eb JB |
71 | Summary: Qt5 Graphical Effects documentation in HTML format |
72 | Summary(pl.UTF-8): Dokumentacja do modułów Qt5 Graphical Effects w formacie HTML | |
a23acca5 | 73 | Group: Documentation |
39ed99eb | 74 | Requires: qt5-doc-common >= %{qtbase_ver} |
e8949435 ER |
75 | %if "%{_rpmversion}" >= "5" |
76 | BuildArch: noarch | |
77 | %endif | |
a23acca5 WF |
78 | |
79 | %description doc | |
39ed99eb JB |
80 | Qt5 Graphical Effects documentation in HTML format. |
81 | ||
82 | %description doc -l pl.UTF-8 | |
83 | Dokumentacja do modułów Qt5 Graphical Effects w formacie HTML. | |
84 | ||
85 | %package doc-qch | |
86 | Summary: Qt5 Graphical Effects documentation in QCH format | |
87 | Summary(pl.UTF-8): Dokumentacja do modułów Qt5 Graphical Effects w formacie QCH | |
88 | Group: Documentation | |
89 | Requires: qt5-doc-common >= %{qtbase_ver} | |
90 | %if "%{_rpmversion}" >= "5" | |
91 | BuildArch: noarch | |
92 | %endif | |
93 | ||
94 | %description doc-qch | |
95 | Qt5 Graphical Effects documentation in QCH format. | |
96 | ||
97 | %description doc-qch -l pl.UTF-8 | |
98 | Dokumentacja do modułów Qt5 Graphical Effects w formacie QCH. | |
a23acca5 | 99 | |
a23acca5 | 100 | %prep |
cd4cf5f1 | 101 | %setup -q -n %{orgname}-everywhere-src-%{version} |
a23acca5 WF |
102 | |
103 | %build | |
104 | qmake-qt5 | |
105 | %{__make} | |
3e4f3628 | 106 | %{?with_doc:%{__make} docs} |
a23acca5 WF |
107 | |
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | %{__make} install \ | |
111 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
112 | ||
3e4f3628 JR |
113 | %if %{with doc} |
114 | %{__make} install_docs \ | |
a23acca5 WF |
115 | INSTALL_ROOT=$RPM_BUILD_ROOT |
116 | ||
3e4f3628 JR |
117 | %endif |
118 | ||
a23acca5 WF |
119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
6cf7cdc6 | 122 | %files -n Qt5Quick-graphicaleffects |
a23acca5 | 123 | %defattr(644,root,root,755) |
6cf7cdc6 JB |
124 | %doc dist/changes-* |
125 | %{qt5dir}/qml/QtGraphicalEffects | |
a23acca5 | 126 | |
3e4f3628 | 127 | %if %{with doc} |
a23acca5 WF |
128 | %files doc |
129 | %defattr(644,root,root,755) | |
39ed99eb JB |
130 | %{_docdir}/qt5-doc/qtgraphicaleffects |
131 | ||
39ed99eb JB |
132 | %files doc-qch |
133 | %defattr(644,root,root,755) | |
134 | %{_docdir}/qt5-doc/qtgraphicaleffects.qch | |
135 | %endif |