]>
Commit | Line | Data |
---|---|---|
a23acca5 WF |
1 | # TODO: |
2 | # - cleanup | |
39ed99eb JB |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without qch # documentation in QCH format | |
a23acca5 WF |
6 | |
7 | %define orgname qtgraphicaleffects | |
39ed99eb JB |
8 | %define qtbase_ver %{version} |
9 | %define qtdeclarative_ver %{version} | |
10 | %define qtscript_ver %{version} | |
11 | %define qttools_ver %{version} | |
12 | Summary: The Qt5 Graphical Effects modules | |
13 | Summary(pl.UTF-8): Moduły Qt5 Graphical Effects | |
a23acca5 WF |
14 | Name: qt5-%{orgname} |
15 | Version: 5.2.0 | |
16 | Release: 0.1 | |
17 | License: LGPL v2.1 or GPL v3.0 | |
18 | Group: X11/Libraries | |
19 | Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz | |
20 | # Source0-md5: 85e94989bbc624f676102f0ea343b6dd | |
21 | URL: http://qt-project.org/ | |
39ed99eb JB |
22 | BuildRequires: qt5-qtbase-devel >= %{qtbase_ver} |
23 | BuildRequires: qt5-qtdeclarative-devel >= %{qtdeclarative_ver} | |
24 | BuildRequires: qt5-qtscript-devel >= %{qtscript_ver} | |
25 | BuildRequires: qt5-qttools-devel >= %{qttools_ver} | |
26 | %if %{with qch} | |
27 | BuildRequires: qt5-assistant >= %{qttools_ver} | |
28 | %endif | |
29 | BuildRequires: qt5-build >= %{qtbase_ver} | |
30 | BuildRequires: qt5-qmake >= %{qtbase_ver} | |
a23acca5 | 31 | BuildRequires: rpmbuild(macros) >= 1.654 |
e8949435 ER |
32 | BuildRequires: tar >= 1:1.22 |
33 | BuildRequires: xz | |
a23acca5 WF |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
a23acca5 | 36 | %define specflags -fno-strict-aliasing |
39ed99eb | 37 | %define qt5dir %{_libdir}/qt5 |
a23acca5 WF |
38 | |
39 | %description | |
39ed99eb JB |
40 | Qt is a cross-platform application and UI framework. Using Qt, you can |
41 | write web-enabled applications once and deploy them across desktop, | |
42 | mobile and embedded systems without rewriting the source code. | |
43 | ||
44 | This package contains Qt5 Graphical Effects modules. | |
45 | ||
46 | %description -l pl.UTF-8 | |
47 | Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika. | |
48 | Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w | |
49 | systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu | |
50 | źródłowego. | |
51 | ||
52 | Ten pakiet zawiera moduły Qt5 Graphical Effects. | |
a23acca5 WF |
53 | |
54 | %package devel | |
55 | Summary: The Qt5 Graphical Effects - development files | |
56 | Group: X11/Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description devel | |
60 | The Qt5 Graphical Effects - development files. | |
61 | ||
62 | %package doc | |
39ed99eb JB |
63 | Summary: Qt5 Graphical Effects documentation in HTML format |
64 | Summary(pl.UTF-8): Dokumentacja do modułów Qt5 Graphical Effects w formacie HTML | |
a23acca5 | 65 | Group: Documentation |
39ed99eb | 66 | Requires: qt5-doc-common >= %{qtbase_ver} |
e8949435 ER |
67 | %if "%{_rpmversion}" >= "5" |
68 | BuildArch: noarch | |
69 | %endif | |
a23acca5 WF |
70 | |
71 | %description doc | |
39ed99eb JB |
72 | Qt5 Graphical Effects documentation in HTML format. |
73 | ||
74 | %description doc -l pl.UTF-8 | |
75 | Dokumentacja do modułów Qt5 Graphical Effects w formacie HTML. | |
76 | ||
77 | %package doc-qch | |
78 | Summary: Qt5 Graphical Effects documentation in QCH format | |
79 | Summary(pl.UTF-8): Dokumentacja do modułów Qt5 Graphical Effects w formacie QCH | |
80 | Group: Documentation | |
81 | Requires: qt5-doc-common >= %{qtbase_ver} | |
82 | %if "%{_rpmversion}" >= "5" | |
83 | BuildArch: noarch | |
84 | %endif | |
85 | ||
86 | %description doc-qch | |
87 | Qt5 Graphical Effects documentation in QCH format. | |
88 | ||
89 | %description doc-qch -l pl.UTF-8 | |
90 | Dokumentacja do modułów Qt5 Graphical Effects w formacie QCH. | |
a23acca5 WF |
91 | |
92 | %package examples | |
93 | Summary: The Qt5 Graphical Effects examples | |
94 | Group: X11/Development/Libraries | |
e8949435 ER |
95 | %if "%{_rpmversion}" >= "5" |
96 | BuildArch: noarch | |
97 | %endif | |
a23acca5 WF |
98 | |
99 | %description examples | |
100 | The Qt5 Graphical Effects - examples. | |
101 | ||
102 | %prep | |
103 | %setup -q -n %{orgname}-opensource-src-%{version} | |
104 | ||
105 | %build | |
106 | qmake-qt5 | |
107 | %{__make} | |
39ed99eb | 108 | %{__make} %{!?with_qch:html_}docs |
a23acca5 WF |
109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | %{__make} install \ | |
113 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
114 | ||
39ed99eb | 115 | %{__make} install_%{!?with_qch:html_}docs \ |
a23acca5 WF |
116 | INSTALL_ROOT=$RPM_BUILD_ROOT |
117 | ||
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
a23acca5 WF |
121 | %files |
122 | %defattr(644,root,root,755) | |
39ed99eb | 123 | %{qt5dir}/qml/* |
a23acca5 WF |
124 | |
125 | %files doc | |
126 | %defattr(644,root,root,755) | |
39ed99eb JB |
127 | %{_docdir}/qt5-doc/qtgraphicaleffects |
128 | ||
129 | %if %{with qch} | |
130 | %files doc-qch | |
131 | %defattr(644,root,root,755) | |
132 | %{_docdir}/qt5-doc/qtgraphicaleffects.qch | |
133 | %endif |