/[packages]/cauldron/qtimageformats5/current/SPECS/qtimageformats5.spec
ViewVC logotype

Contents of /cauldron/qtimageformats5/current/SPECS/qtimageformats5.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1378535 - (show annotations) (download)
Mon Mar 18 01:20:42 2019 UTC (5 years, 1 month ago) by neoclust
File size: 2516 byte(s)
New version 5.12.0
1 %define snapshot 0
2 %define date 20130523
3
4 %ifarch %{arm}
5 %define build_docs 0
6 %else
7 %define build_docs 1
8 %endif
9
10 %define qtmajor 5
11 %define qtminor 12
12 %define qtsubminor 2
13
14 %define rel 1
15 %define pre rc
16 %define qtversion %{qtmajor}.%{qtminor}.%{qtsubminor}
17
18 %define libqtimageformats_d %mklibname qt5imageformats -d
19
20 %if %snapshot
21 %define qttarballdir qtimageformats-everywhere-src-%{qtversion}-%pre
22 %else
23 %define qttarballdir qtimageformats-everywhere-src-%{qtversion}
24 %endif
25
26 Name: qtimageformats5
27 Version: %{qtversion}
28 Release: %mkrel %{rel}
29 Summary: Qt ImageFormats component
30 Group: Development/KDE and Qt
31 License: LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
32 URL: http://www.qt.io
33 Source0: http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz
34 BuildRequires: qtbase5-devel = %{version}
35 # TRACK: https://bugreports.qt-project.org/browse/QTBUG-33116
36 #BuildRequires: libmng-devel
37 BuildRequires: pkgconfig(libtiff-4)
38
39 #Branch Patchs
40
41 #Trunk Patchs
42
43 #Patch from Mageia
44
45
46 %description
47 Qt5 ImageFormats component.
48
49 %files
50 %_qt5_plugindir/imageformats/*.so
51
52 #------------------------------------------------------------------------------
53
54 %package -n %{libqtimageformats_d}
55 Summary: Devel files needed to build apps based on QtImageFormats
56 Group: Development/KDE and Qt
57 Requires: %{name} = %{version}
58 Provides: %{name}-devel = %{version}-%{release}
59
60 %description -n %{libqtimageformats_d}
61 Devel files needed to build apps based on QtImageFormats.
62
63 %files -n %{libqtimageformats_d}
64 %{_qt5_libdir}/cmake/Qt5Gui/*.cmake
65
66 #------------------------------------------------------------------------------
67
68 %if %{build_docs}
69 %package doc
70 Summary: QtImageFormats%{qtmajor} APIs and tools docs
71 Group: Documentation
72 BuildArch: noarch
73 BuildRequires: qttools5
74 # This one is required to build QCH-format documentation
75 # for APIs and tools in this package set
76 BuildRequires: qttools5-assistant
77 Recommends: qttools5-assistant
78
79 %description doc
80 Documentation for APIs and tools in QtImageFormats5 package for use with
81 Qt Assistant.
82
83 %files doc
84 %{_qt5_docdir}/qtimageformats.qch
85 %{_qt5_docdir}/qtimageformats/
86 %endif
87
88 #------------------------------------------------------------------------------
89
90 %prep
91 %setup -q -n qtimageformats-everywhere-src-%{qtversion}
92
93 %build
94 %qmake_qt5
95
96 %make_build
97
98 %if %{build_docs}
99 %__make docs
100 %endif
101
102 %install
103 %make_install INSTALL_ROOT=%{buildroot}
104
105 %if %{build_docs}
106 %make_install install_docs INSTALL_ROOT=%{buildroot}
107 %endif

  ViewVC Help
Powered by ViewVC 1.1.30