5 %bcond_without qch # documentation in QCH format
7 %define orgname qtimageformats
8 %define qtbase_ver %{version}
9 %define qttools_ver %{version}
10 Summary: The Qt5 Image Formats plugins
11 Summary(pl.UTF-8): Wtyczki Qt5 Image Formats
15 License: LGPL v2.1 or GPL v3.0
17 Source0: http://download.qt-project.org/official_releases/qt/5.2/%{version}/submodules/%{orgname}-opensource-src-%{version}.tar.xz
18 # Source0-md5: fe9898272b3952e3d97eacbaca484b55
19 URL: http://qt-project.org/
20 BuildRequires: libmng-devel
21 BuildRequires: libtiff-devel
22 BuildRequires: qt5-qtbase-devel >= %{qtbase_ver}
23 BuildRequires: qt5-qttools-devel >= %{qttools_ver}
25 BuildRequires: qt5-assistant >= %{qttools_ver}
27 BuildRequires: qt5-build >= %{qtbase_ver}
28 BuildRequires: qt5-qmake >= %{qtbase_ver}
29 BuildRequires: rpmbuild(macros) >= 1.654
30 BuildRequires: tar >= 1:1.22
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define specflags -fno-strict-aliasing
35 %define qt5dir %{_libdir}/qt5
38 Qt is a cross-platform application and UI framework. Using Qt, you can
39 write web-enabled applications once and deploy them across desktop,
40 mobile and embedded systems without rewriting the source code.
42 This package contains Qt5 Image Formats plugins.
44 %description -l pl.UTF-8
45 Qt to wieloplatformowy szkielet aplikacji i interfejsów użytkownika.
46 Przy użyciu Qt można pisać aplikacje powiązane z WWW i wdrażać je w
47 systemach biurkowych, przenośnych i wbudowanych bez przepisywania kodu
50 Ten pakiet zawiera wtyczki Qt5 Image Formats.
53 Summary: The Qt5 Image Formats - development files
54 Group: X11/Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Qt5 Image Formats - development files.
61 Summary: Qt5 Image Formats documentation in HTML format
62 Summary(pl.UTF-8): Dokumentacja do wtyczek Qt5 Image Formats w formacie HTML
64 Requires: qt5-doc-common >= %{qtbase_ver}
65 %if "%{_rpmversion}" >= "5"
70 Qt5 Image Formats documentation in HTML format.
72 %description doc -l pl.UTF-8
73 Dokumentacja do wtyczek Qt5 Image Formats w formacie HTML.
76 Summary: Qt5 Image Formats documentation in QCH format
77 Summary(pl.UTF-8): Dokumentacja do wtyczek Qt5 Image Formats w formacie QCH
79 Requires: qt5-doc-common >= %{qtbase_ver}
80 %if "%{_rpmversion}" >= "5"
85 Qt5 Image Formats documentation in QCH format.
87 %description doc-qch -l pl.UTF-8
88 Dokumentacja do wtyczek Qt5 Image Formats w formacie QCH.
91 Summary: Qt5 Image Formats examples
92 Group: X11/Development/Libraries
93 %if "%{_rpmversion}" >= "5"
98 Qt5 Formats - examples.
101 %setup -q -n %{orgname}-opensource-src-%{version}
106 %{__make} %{!?with_qch:html_}docs
109 rm -rf $RPM_BUILD_ROOT
111 INSTALL_ROOT=$RPM_BUILD_ROOT
113 %{__make} install_%{!?with_qch:html_}docs \
114 INSTALL_ROOT=$RPM_BUILD_ROOT
117 rm -rf $RPM_BUILD_ROOT
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{qt5dir}/plugins/*
124 %defattr(644,root,root,755)
125 %{_libdir}/cmake/Qt5Gui/*.cmake
128 %defattr(644,root,root,755)
129 %{_docdir}/qt5-doc/qtimageformats